kbcloud

package
v0.28.48 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

List of APIs:

  • [accountApi.createAccount]
  • [accountApi.deleteAccount]
  • [accountApi.getDSN]
  • [accountApi.listAccounts]
  • [accountApi.updateAccount]
  • [accountApi.updateAccountPrivileges]
  • [alertConfigApi.getAlertConfig]
  • [alertConfigApi.setAlertConfig]
  • [alertInhibitApi.createAlertInhibit]
  • [alertInhibitApi.deleteAlertInhibit]
  • [alertInhibitApi.getAlertInhibit]
  • [alertInhibitApi.listAlertInhibits]
  • [alertInhibitApi.patchAlertInhibit]
  • [alertMetricsApi.listAlertMetrics]
  • [alertObjectApi.listAlertObjects]
  • [alertObjectApi.setAlertObjectStatus]
  • [alertObjectApi.setAlertObjectsStatus]
  • [alertReceiverApi.createAlertReceiver]
  • [alertReceiverApi.deleteAlertReceiver]
  • [alertReceiverApi.getAlertReceiver]
  • [alertReceiverApi.listAlertReceivers]
  • [alertReceiverApi.patchAlertReceiver]
  • [alertRuleApi.createAlertRule]
  • [alertRuleApi.deleteAlertRule]
  • [alertRuleApi.getAlertRule]
  • [alertRuleApi.listAlertRules]
  • [alertRuleApi.updateAlertRule]
  • [alertStrategyApi.createAlertStrategy]
  • [alertStrategyApi.deleteAlertStrategy]
  • [alertStrategyApi.listAlertStrategies]
  • [alertStrategyApi.patchAlertStrategy]
  • [alertStrategyApi.updateAlertStrategy]
  • [analyzeApi.analyzeBackup]
  • [analyzeApi.analyzeClusterParam]
  • [analyzeApi.analyzeClusterRestore]
  • [analyzeApi.analyzeLogs]
  • [analyzeApi.analyzeOps]
  • [analyzeApi.analyzeParam]
  • [analyzeApi.analyzeService]
  • [analyzeApi.analyzeSlowLogs]
  • [analyzeApi.analyzeView]
  • [autohealingApi.getAutohealing]
  • [backupApi.createClusterBackup]
  • [backupApi.deleteBackup]
  • [backupApi.downloadBackup]
  • [backupApi.downloadMutipleBackups]
  • [backupApi.getBackup]
  • [backupApi.getBackupLog]
  • [backupApi.getBackupStats]
  • [backupApi.getClusterBackupPolicy]
  • [backupApi.listBackups]
  • [backupApi.patchBackupPolicy]
  • [backupApi.viewBackup]
  • [backupRepoApi.deleteBackupRepo]
  • [backupRepoApi.getBackupRepo]
  • [backupRepoApi.listBackupRepos]
  • [backupRepoApi.updateBackupRepo]
  • [benchmarkApi.createPgbench]
  • [benchmarkApi.createSysbench]
  • [benchmarkApi.createTpcc]
  • [benchmarkApi.createYcsb]
  • [benchmarkApi.deleteBenchmark]
  • [benchmarkApi.getBenchmark]
  • [benchmarkApi.listBenchmark]
  • [classApi.createClass]
  • [classApi.deleteClass]
  • [classApi.listClasses]
  • [classApi.patchClass]
  • [clusterApi.createCluster]
  • [clusterApi.deleteCluster]
  • [clusterApi.describeClusterHaHistory]
  • [clusterApi.getCluster]
  • [clusterApi.getClusterByID]
  • [clusterApi.getClusterInstanceLog]
  • [clusterApi.getClusterManifest]
  • [clusterApi.getInstacesMetrics]
  • [clusterApi.listCluster]
  • [clusterApi.listEndpoints]
  • [clusterApi.listInstance]
  • [clusterApi.patchCluster]
  • [clusterAlertSwitchApi.getClusterAlertDisabled]
  • [clusterAlertSwitchApi.setClusterAlertDisabled]
  • [clusterLogApi.queryAuditLogs]
  • [clusterLogApi.queryErrorLogs]
  • [clusterLogApi.queryPodLogs]
  • [clusterLogApi.queryRunningLogs]
  • [clusterLogApi.querySlowLogs]
  • [databaseApi.createDatabase]
  • [databaseApi.deleteDatabase]
  • [databaseApi.listDatabases]
  • [dmsApi.AlterVolumes]
  • [dmsApi.CreateVolumes]
  • [dmsApi.DataExport]
  • [dmsApi.DataImport]
  • [dmsApi.DropVolumes]
  • [dmsApi.GetObjectInfo]
  • [dmsApi.GetTaskList]
  • [dmsApi.GetTaskProgress]
  • [dmsApi.ListObjectNamesByType]
  • [dmsApi.ListObjectTypesInSchema]
  • [dmsApi.ListVolumes]
  • [dmsApi.SetDefaultVolumes]
  • [dmsApi.alterParameter]
  • [dmsApi.closeSessions]
  • [dmsApi.createDataSourceV2]
  • [dmsApi.deleteDataSourceV2]
  • [dmsApi.generateDDL]
  • [dmsApi.getDataSourceV2]
  • [dmsApi.getSchemaList]
  • [dmsApi.listDataSourceV2]
  • [dmsApi.listParameters]
  • [dmsApi.listQueryHistory]
  • [dmsApi.listSessions]
  • [dmsApi.query]
  • [dmsApi.showData]
  • [dmsApi.sqlExplain]
  • [dmsApi.tenantParameterHistory]
  • [dmsApi.testDataSourceV2]
  • [dmsApi.updateDataSourceV2]
  • [engineApi.engineActionInOrg]
  • [engineApi.listEnginesInEnv]
  • [engineApi.listEnginesInOrg]
  • [engineLicenseApi.listEngineLicenses]
  • [engineOptionApi.ListUpgradeableServiceVersion]
  • [engineOptionApi.getEngineOption]
  • [engineOptionApi.listEngineOptions]
  • [environmentApi.filterEnvironment]
  • [environmentApi.getEnvironment]
  • [environmentApi.listEnvNodeZone]
  • [environmentApi.listEnvironment]
  • [environmentApi.listNodeGroup]
  • [eventApi.queryClusterEvents]
  • [featureApi.listFeature]
  • [featureApi.readFeature]
  • [inspectionApi.createAutoInspection]
  • [inspectionApi.createInspectionScript]
  • [inspectionApi.deleteInspectionScript]
  • [inspectionApi.listAutoInspection]
  • [inspectionApi.listInspectionScripts]
  • [inspectionApi.listInspections]
  • [inspectionApi.updateAutoInspection]
  • [inspectionApi.updateInspection]
  • [inspectionApi.updateInspectionScript]
  • [invitationApi.acceptInvitation]
  • [invitationApi.createInvitation]
  • [invitationApi.deleteInvitation]
  • [invitationApi.listInvitation]
  • [invitationApi.readInvitation]
  • [invitationApi.rejectInvitation]
  • [invitationApi.resendInvitation]
  • [ipWhitelistApi.createIPWhitelist]
  • [ipWhitelistApi.listIPWhitelist]
  • [ipWhitelistApi.updateIPWhitelist]
  • [loadBalancerApi.getLoadBalancer]
  • [markClusterApi.markClusterRestoreCompleted]
  • [memberApi.addOrgMember]
  • [memberApi.deleteOrgMember]
  • [memberApi.listOrgMember]
  • [memberApi.listOrgMemberPermission]
  • [memberApi.patchOrgMember]
  • [memberApi.readOrgMember]
  • [metricsApi.queryClusterMetrics]
  • [oceanbaseApi.getTenant]
  • [oceanbaseApi.listTenants]
  • [opsrequestApi.cancelOps]
  • [opsrequestApi.clusterVolumeExpand]
  • [opsrequestApi.customOps]
  • [opsrequestApi.exposeCluster]
  • [opsrequestApi.horizontalScaleCluster]
  • [opsrequestApi.promoteCluster]
  • [opsrequestApi.rebuildInstance]
  • [opsrequestApi.reconfigureCluster]
  • [opsrequestApi.restartCluster]
  • [opsrequestApi.startCluster]
  • [opsrequestApi.stopCluster]
  • [opsrequestApi.updateClusterLicense]
  • [opsrequestApi.upgradeCluster]
  • [opsrequestApi.verticalScaleCluster]
  • [organizationApi.createOrg]
  • [organizationApi.freezeMember]
  • [organizationApi.listOrg]
  • [organizationApi.patchOrg]
  • [organizationApi.readOrg]
  • [organizationApi.unfreezeMember]
  • [paramTplApi.createParamTpl]
  • [paramTplApi.createParamTplFromCluster]
  • [paramTplApi.deleteParamTpl]
  • [paramTplApi.getClusterParamTpls]
  • [paramTplApi.listParamTpl]
  • [paramTplApi.patchParamTpl]
  • [paramTplApi.readParamTpl]
  • [parameterApi.listConfigurations]
  • [parameterApi.listParameterSpecs]
  • [parameterApi.listParametersHistory]
  • [providerApi.getCloudProvider]
  • [providerApi.listCloudProviders]
  • [recycleBinClusterApi.deleteRecycleBinCluster]
  • [recycleBinClusterApi.getRecycleBinCluster]
  • [recycleBinClusterApi.listRecycleBinCluster]
  • [recycleBinClusterApi.restoreRecycleBinCluster]
  • [regionApi.getRegion]
  • [regionApi.listRegions]
  • [restoreApi.GetRestoreLog]
  • [restoreApi.deleteRestoreObject]
  • [restoreApi.doRestore]
  • [restoreApi.getRestoreTimeRange]
  • [restoreApi.listClusterRestore]
  • [restoreApi.listRestores]
  • [restoreApi.restoreCluster]
  • [roleApi.batchAddRolePermissions]
  • [roleApi.batchRemoveRolePermissions]
  • [roleApi.createRole]
  • [roleApi.deleteRoleByName]
  • [roleApi.getRoleByName]
  • [roleApi.listPermissions]
  • [roleApi.listRolePermissions]
  • [roleApi.listRoles]
  • [roleApi.updateRoleByName]
  • [serviceVersionApi.ListServiceVersion]
  • [sqlEditorApi.runSQLOnCluster]
  • [storageClassApi.getStorageClassStats]
  • [tagApi.createTag]
  • [tagApi.deleteTags]
  • [tagApi.getTags]
  • [tagApi.listOrgTags]
  • [tagApi.updateTag]
  • [tlsApi.getTLSCertificate]
  • [tlsApi.tlsSwitcher]
  • [userApi.createUserApikey]
  • [userApi.deleteApikey]
  • [userApi.patchAPIkey]
  • [userApi.patchUser]
  • [userApi.phoneVerification]
  • [userApi.readUser]
  • [userApi.readUserApikeys]
  • [userApi.sendVerificationEmail]
  • [userApi.updateUserPassword]
  • [viewApi.getTreeView]
  • [viewApi.getViewByCluster]
  • [whitelistApi.deleteIPWhiteList]
  • [zoneApi.getZones]
  • [zoneApi.listZones]

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIErrorResponse

type APIErrorResponse struct {
	// The HTTP status code.
	Code int32 `json:"code"`
	// The reason for the error.
	Reason *string `json:"reason,omitempty"`
	// The message for the error.
	Message *string `json:"message,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

APIErrorResponse API error response.

func NewAPIErrorResponse

func NewAPIErrorResponse(code int32) *APIErrorResponse

NewAPIErrorResponse instantiates a new APIErrorResponse 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 NewAPIErrorResponseWithDefaults

func NewAPIErrorResponseWithDefaults() *APIErrorResponse

NewAPIErrorResponseWithDefaults instantiates a new APIErrorResponse 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 (*APIErrorResponse) GetCode

func (o *APIErrorResponse) GetCode() int32

GetCode returns the Code field value.

func (*APIErrorResponse) GetCodeOk

func (o *APIErrorResponse) GetCodeOk() (*int32, bool)

GetCodeOk returns a tuple with the Code field value and a boolean to check if the value has been set.

func (*APIErrorResponse) GetMessage

func (o *APIErrorResponse) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*APIErrorResponse) GetMessageOk

func (o *APIErrorResponse) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.

func (*APIErrorResponse) GetReason

func (o *APIErrorResponse) GetReason() string

GetReason returns the Reason field value if set, zero value otherwise.

func (*APIErrorResponse) GetReasonOk

func (o *APIErrorResponse) GetReasonOk() (*string, bool)

GetReasonOk returns a tuple with the Reason field value if set, nil otherwise and a boolean to check if the value has been set.

func (*APIErrorResponse) HasMessage

func (o *APIErrorResponse) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*APIErrorResponse) HasReason

func (o *APIErrorResponse) HasReason() bool

HasReason returns a boolean if a field has been set.

func (APIErrorResponse) MarshalJSON

func (o APIErrorResponse) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*APIErrorResponse) SetCode

func (o *APIErrorResponse) SetCode(v int32)

SetCode sets field value.

func (*APIErrorResponse) SetMessage

func (o *APIErrorResponse) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (*APIErrorResponse) SetReason

func (o *APIErrorResponse) SetReason(v string)

SetReason gets a reference to the given string and assigns it to the Reason field.

func (*APIErrorResponse) UnmarshalJSON

func (o *APIErrorResponse) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type Account

type Account struct {
	// A list of privileges and their databases.
	PrivilegesList []PrivilegeListItem `json:"privilegesList,omitempty"`
	// Specify the name of component to be connected. If not specified, pick the first one.
	Component *string `json:"component,omitempty"`
	// Specify the name of instance to be connected.
	Instance *string `json:"instance,omitempty"`
	// Specify the name of user, which must be unique.
	Name string `json:"name"`
	// Specify the password of user. The default value is empty, which means a random password will be generated.
	Password *string `json:"password,omitempty"`
	// Role name should be one of [SUPERUSER, BASICUSER].
	Role AccountRoleType `json:"role"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

Account Cluster account information

func NewAccount

func NewAccount(name string, role AccountRoleType) *Account

NewAccount instantiates a new Account 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 NewAccountWithDefaults

func NewAccountWithDefaults() *Account

NewAccountWithDefaults instantiates a new Account 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 (*Account) GetComponent

func (o *Account) GetComponent() string

GetComponent returns the Component field value if set, zero value otherwise.

func (*Account) GetComponentOk

func (o *Account) GetComponentOk() (*string, bool)

GetComponentOk returns a tuple with the Component field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Account) GetInstance

func (o *Account) GetInstance() string

GetInstance returns the Instance field value if set, zero value otherwise.

func (*Account) GetInstanceOk

func (o *Account) GetInstanceOk() (*string, bool)

GetInstanceOk returns a tuple with the Instance field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Account) GetName

func (o *Account) GetName() string

GetName returns the Name field value.

func (*Account) GetNameOk

func (o *Account) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*Account) GetPassword

func (o *Account) GetPassword() string

GetPassword returns the Password field value if set, zero value otherwise.

func (*Account) GetPasswordOk

func (o *Account) GetPasswordOk() (*string, bool)

GetPasswordOk returns a tuple with the Password field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Account) GetPrivilegesList

func (o *Account) GetPrivilegesList() []PrivilegeListItem

GetPrivilegesList returns the PrivilegesList field value if set, zero value otherwise.

func (*Account) GetPrivilegesListOk

func (o *Account) GetPrivilegesListOk() (*[]PrivilegeListItem, bool)

GetPrivilegesListOk returns a tuple with the PrivilegesList field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Account) GetRole

func (o *Account) GetRole() AccountRoleType

GetRole returns the Role field value.

func (*Account) GetRoleOk

func (o *Account) GetRoleOk() (*AccountRoleType, bool)

GetRoleOk returns a tuple with the Role field value and a boolean to check if the value has been set.

func (*Account) HasComponent

func (o *Account) HasComponent() bool

HasComponent returns a boolean if a field has been set.

func (*Account) HasInstance

func (o *Account) HasInstance() bool

HasInstance returns a boolean if a field has been set.

func (*Account) HasPassword

func (o *Account) HasPassword() bool

HasPassword returns a boolean if a field has been set.

func (*Account) HasPrivilegesList

func (o *Account) HasPrivilegesList() bool

HasPrivilegesList returns a boolean if a field has been set.

func (Account) MarshalJSON

func (o Account) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*Account) SetComponent

func (o *Account) SetComponent(v string)

SetComponent gets a reference to the given string and assigns it to the Component field.

func (*Account) SetInstance

func (o *Account) SetInstance(v string)

SetInstance gets a reference to the given string and assigns it to the Instance field.

func (*Account) SetName

func (o *Account) SetName(v string)

SetName sets field value.

func (*Account) SetPassword

func (o *Account) SetPassword(v string)

SetPassword gets a reference to the given string and assigns it to the Password field.

func (*Account) SetPrivilegesList

func (o *Account) SetPrivilegesList(v []PrivilegeListItem)

SetPrivilegesList gets a reference to the given []PrivilegeListItem and assigns it to the PrivilegesList field.

func (*Account) SetRole

func (o *Account) SetRole(v AccountRoleType)

SetRole sets field value.

func (*Account) UnmarshalJSON

func (o *Account) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type AccountApi

type AccountApi common.Service

AccountApi service type

func NewAccountApi

func NewAccountApi(client *common.APIClient) *AccountApi

NewAccountApi Returns NewAccountApi.

func (*AccountApi) CreateAccount

func (a *AccountApi) CreateAccount(ctx _context.Context, orgName string, clusterName string, body Account) (*_nethttp.Response, error)

CreateAccount Create cluster account. create an account in cluster

func (*AccountApi) DeleteAccount

func (a *AccountApi) DeleteAccount(ctx _context.Context, orgName string, clusterName string, accountName string) (*_nethttp.Response, error)

DeleteAccount Delete cluster account. delete an account in cluster

func (*AccountApi) GetDSN

func (a *AccountApi) GetDSN(ctx _context.Context, orgName string, clusterName string, accountName string) (string, *_nethttp.Response, error)

GetDSN Get cluster dsn. get dsn by username

func (*AccountApi) ListAccounts

func (a *AccountApi) ListAccounts(ctx _context.Context, orgName string, clusterName string, o ...ListAccountsOptionalParameters) ([]AccountListItem, *_nethttp.Response, error)

ListAccounts List cluster accounts. list accounts in cluster

func (*AccountApi) UpdateAccount

func (a *AccountApi) UpdateAccount(ctx _context.Context, orgName string, clusterName string, accountName string, body Account) (*_nethttp.Response, error)

UpdateAccount update cluster account. update an account in cluster

func (*AccountApi) UpdateAccountPrivileges

func (a *AccountApi) UpdateAccountPrivileges(ctx _context.Context, orgName string, clusterName string, accountName string, body []PrivilegeListItem) (*_nethttp.Response, error)

UpdateAccountPrivileges update account privileges. update privileges of account

type AccountListItem

type AccountListItem struct {
	// Component type.
	Component *string `json:"component,omitempty"`
	// The name of user.
	Name string `json:"name"`
	// The password of user.
	Password *string `json:"password,omitempty"`
	// The user role name, should be one of [ROOT, SUPERUSER, BASICUSER].
	Role *AccountListRoleType `json:"role,omitempty"`
	// A list of privileges and their databases.
	PrivilegesList []PrivilegeListItem `json:"privilegesList,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

AccountListItem Cluster account information.

func NewAccountListItem

func NewAccountListItem(name string) *AccountListItem

NewAccountListItem instantiates a new AccountListItem 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 NewAccountListItemWithDefaults

func NewAccountListItemWithDefaults() *AccountListItem

NewAccountListItemWithDefaults instantiates a new AccountListItem 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 (*AccountListItem) GetComponent

func (o *AccountListItem) GetComponent() string

GetComponent returns the Component field value if set, zero value otherwise.

func (*AccountListItem) GetComponentOk

func (o *AccountListItem) GetComponentOk() (*string, bool)

GetComponentOk returns a tuple with the Component field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountListItem) GetName

func (o *AccountListItem) GetName() string

GetName returns the Name field value.

func (*AccountListItem) GetNameOk

func (o *AccountListItem) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*AccountListItem) GetPassword

func (o *AccountListItem) GetPassword() string

GetPassword returns the Password field value if set, zero value otherwise.

func (*AccountListItem) GetPasswordOk

func (o *AccountListItem) GetPasswordOk() (*string, bool)

GetPasswordOk returns a tuple with the Password field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountListItem) GetPrivilegesList

func (o *AccountListItem) GetPrivilegesList() []PrivilegeListItem

GetPrivilegesList returns the PrivilegesList field value if set, zero value otherwise.

func (*AccountListItem) GetPrivilegesListOk

func (o *AccountListItem) GetPrivilegesListOk() (*[]PrivilegeListItem, bool)

GetPrivilegesListOk returns a tuple with the PrivilegesList field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountListItem) GetRole

func (o *AccountListItem) GetRole() AccountListRoleType

GetRole returns the Role field value if set, zero value otherwise.

func (*AccountListItem) GetRoleOk

func (o *AccountListItem) GetRoleOk() (*AccountListRoleType, bool)

GetRoleOk returns a tuple with the Role field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountListItem) HasComponent

func (o *AccountListItem) HasComponent() bool

HasComponent returns a boolean if a field has been set.

func (*AccountListItem) HasPassword

func (o *AccountListItem) HasPassword() bool

HasPassword returns a boolean if a field has been set.

func (*AccountListItem) HasPrivilegesList

func (o *AccountListItem) HasPrivilegesList() bool

HasPrivilegesList returns a boolean if a field has been set.

func (*AccountListItem) HasRole

func (o *AccountListItem) HasRole() bool

HasRole returns a boolean if a field has been set.

func (AccountListItem) MarshalJSON

func (o AccountListItem) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*AccountListItem) SetComponent

func (o *AccountListItem) SetComponent(v string)

SetComponent gets a reference to the given string and assigns it to the Component field.

func (*AccountListItem) SetName

func (o *AccountListItem) SetName(v string)

SetName sets field value.

func (*AccountListItem) SetPassword

func (o *AccountListItem) SetPassword(v string)

SetPassword gets a reference to the given string and assigns it to the Password field.

func (*AccountListItem) SetPrivilegesList

func (o *AccountListItem) SetPrivilegesList(v []PrivilegeListItem)

SetPrivilegesList gets a reference to the given []PrivilegeListItem and assigns it to the PrivilegesList field.

func (*AccountListItem) SetRole

func (o *AccountListItem) SetRole(v AccountListRoleType)

SetRole gets a reference to the given AccountListRoleType and assigns it to the Role field.

func (*AccountListItem) UnmarshalJSON

func (o *AccountListItem) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type AccountListRoleType

type AccountListRoleType string

AccountListRoleType The user role name, should be one of [ROOT, SUPERUSER, BASICUSER].

const (
	AccountListRoleTypeSuperuser AccountListRoleType = "SUPERUSER"
	AccountListRoleTypeBasicuser AccountListRoleType = "BASICUSER"
	AccountListRoleTypeRoot      AccountListRoleType = "ROOT"
)

List of AccountListRoleType.

func NewAccountListRoleTypeFromValue

func NewAccountListRoleTypeFromValue(v string) (*AccountListRoleType, error)

NewAccountListRoleTypeFromValue returns a pointer to a valid AccountListRoleType for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*AccountListRoleType) GetAllowedValues

func (v *AccountListRoleType) GetAllowedValues() []AccountListRoleType

GetAllowedValues returns the list of possible values.

func (AccountListRoleType) IsValid

func (v AccountListRoleType) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (AccountListRoleType) Ptr

Ptr returns reference to AccountListRoleType value.

func (*AccountListRoleType) UnmarshalJSON

func (v *AccountListRoleType) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type AccountOption

type AccountOption struct {
	Enabled            bool     `json:"enabled"`
	Privileges         []string `json:"privileges,omitempty"`
	AccountNamePattern string   `json:"accountNamePattern"`
	Create             bool     `json:"create"`
	ResetPassword      bool     `json:"resetPassword"`
	Delete             bool     `json:"delete"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewAccountOption

func NewAccountOption(enabled bool, accountNamePattern string, create bool, resetPassword bool, delete bool) *AccountOption

NewAccountOption instantiates a new AccountOption 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 NewAccountOptionWithDefaults

func NewAccountOptionWithDefaults() *AccountOption

NewAccountOptionWithDefaults instantiates a new AccountOption 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 (*AccountOption) GetAccountNamePattern

func (o *AccountOption) GetAccountNamePattern() string

GetAccountNamePattern returns the AccountNamePattern field value.

func (*AccountOption) GetAccountNamePatternOk

func (o *AccountOption) GetAccountNamePatternOk() (*string, bool)

GetAccountNamePatternOk returns a tuple with the AccountNamePattern field value and a boolean to check if the value has been set.

func (*AccountOption) GetCreate

func (o *AccountOption) GetCreate() bool

GetCreate returns the Create field value.

func (*AccountOption) GetCreateOk

func (o *AccountOption) GetCreateOk() (*bool, bool)

GetCreateOk returns a tuple with the Create field value and a boolean to check if the value has been set.

func (*AccountOption) GetDelete

func (o *AccountOption) GetDelete() bool

GetDelete returns the Delete field value.

func (*AccountOption) GetDeleteOk

func (o *AccountOption) GetDeleteOk() (*bool, bool)

GetDeleteOk returns a tuple with the Delete field value and a boolean to check if the value has been set.

func (*AccountOption) GetEnabled

func (o *AccountOption) GetEnabled() bool

GetEnabled returns the Enabled field value.

func (*AccountOption) GetEnabledOk

func (o *AccountOption) GetEnabledOk() (*bool, bool)

GetEnabledOk returns a tuple with the Enabled field value and a boolean to check if the value has been set.

func (*AccountOption) GetPrivileges

func (o *AccountOption) GetPrivileges() []string

GetPrivileges returns the Privileges field value if set, zero value otherwise.

func (*AccountOption) GetPrivilegesOk

func (o *AccountOption) GetPrivilegesOk() (*[]string, bool)

GetPrivilegesOk returns a tuple with the Privileges field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccountOption) GetResetPassword

func (o *AccountOption) GetResetPassword() bool

GetResetPassword returns the ResetPassword field value.

func (*AccountOption) GetResetPasswordOk

func (o *AccountOption) GetResetPasswordOk() (*bool, bool)

GetResetPasswordOk returns a tuple with the ResetPassword field value and a boolean to check if the value has been set.

func (*AccountOption) HasPrivileges added in v0.28.40

func (o *AccountOption) HasPrivileges() bool

HasPrivileges returns a boolean if a field has been set.

func (AccountOption) MarshalJSON

func (o AccountOption) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*AccountOption) SetAccountNamePattern

func (o *AccountOption) SetAccountNamePattern(v string)

SetAccountNamePattern sets field value.

func (*AccountOption) SetCreate

func (o *AccountOption) SetCreate(v bool)

SetCreate sets field value.

func (*AccountOption) SetDelete

func (o *AccountOption) SetDelete(v bool)

SetDelete sets field value.

func (*AccountOption) SetEnabled

func (o *AccountOption) SetEnabled(v bool)

SetEnabled sets field value.

func (*AccountOption) SetPrivileges

func (o *AccountOption) SetPrivileges(v []string)

SetPrivileges gets a reference to the given []string and assigns it to the Privileges field.

func (*AccountOption) SetResetPassword

func (o *AccountOption) SetResetPassword(v bool)

SetResetPassword sets field value.

func (*AccountOption) UnmarshalJSON

func (o *AccountOption) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type AccountRoleType

type AccountRoleType string

AccountRoleType Role name should be one of [SUPERUSER, BASICUSER].

const (
	AccountRoleTypeSuperuser AccountRoleType = "SUPERUSER"
	AccountRoleTypeBasicuser AccountRoleType = "BASICUSER"
)

List of AccountRoleType.

func NewAccountRoleTypeFromValue

func NewAccountRoleTypeFromValue(v string) (*AccountRoleType, error)

NewAccountRoleTypeFromValue returns a pointer to a valid AccountRoleType for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*AccountRoleType) GetAllowedValues

func (v *AccountRoleType) GetAllowedValues() []AccountRoleType

GetAllowedValues returns the list of possible values.

func (AccountRoleType) IsValid

func (v AccountRoleType) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (AccountRoleType) Ptr

Ptr returns reference to AccountRoleType value.

func (*AccountRoleType) UnmarshalJSON

func (v *AccountRoleType) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type AlertCluster

type AlertCluster struct {
	Disabled bool `json:"disabled"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewAlertCluster

func NewAlertCluster(disabled bool) *AlertCluster

NewAlertCluster instantiates a new AlertCluster 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 NewAlertClusterWithDefaults

func NewAlertClusterWithDefaults() *AlertCluster

NewAlertClusterWithDefaults instantiates a new AlertCluster 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 (*AlertCluster) GetDisabled

func (o *AlertCluster) GetDisabled() bool

GetDisabled returns the Disabled field value.

func (*AlertCluster) GetDisabledOk

func (o *AlertCluster) GetDisabledOk() (*bool, bool)

GetDisabledOk returns a tuple with the Disabled field value and a boolean to check if the value has been set.

func (AlertCluster) MarshalJSON

func (o AlertCluster) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*AlertCluster) SetDisabled

func (o *AlertCluster) SetDisabled(v bool)

SetDisabled sets field value.

func (*AlertCluster) UnmarshalJSON

func (o *AlertCluster) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type AlertConfig

type AlertConfig struct {
	// Time zone offset in seconds, e.g. offset of UTC+08:00 is +8 * 60 * 60
	TimeZoneOffset int32 `json:"timeZoneOffset"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewAlertConfig

func NewAlertConfig(timeZoneOffset int32) *AlertConfig

NewAlertConfig instantiates a new AlertConfig 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 NewAlertConfigWithDefaults

func NewAlertConfigWithDefaults() *AlertConfig

NewAlertConfigWithDefaults instantiates a new AlertConfig 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 (*AlertConfig) GetTimeZoneOffset

func (o *AlertConfig) GetTimeZoneOffset() int32

GetTimeZoneOffset returns the TimeZoneOffset field value.

func (*AlertConfig) GetTimeZoneOffsetOk

func (o *AlertConfig) GetTimeZoneOffsetOk() (*int32, bool)

GetTimeZoneOffsetOk returns a tuple with the TimeZoneOffset field value and a boolean to check if the value has been set.

func (AlertConfig) MarshalJSON

func (o AlertConfig) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*AlertConfig) SetTimeZoneOffset

func (o *AlertConfig) SetTimeZoneOffset(v int32)

SetTimeZoneOffset sets field value.

func (*AlertConfig) UnmarshalJSON

func (o *AlertConfig) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type AlertConfigApi

type AlertConfigApi common.Service

AlertConfigApi service type

func NewAlertConfigApi

func NewAlertConfigApi(client *common.APIClient) *AlertConfigApi

NewAlertConfigApi Returns NewAlertConfigApi.

func (*AlertConfigApi) GetAlertConfig

func (a *AlertConfigApi) GetAlertConfig(ctx _context.Context, orgName string) (AlertConfig, *_nethttp.Response, error)

GetAlertConfig Get alert config.

func (*AlertConfigApi) SetAlertConfig

SetAlertConfig Set alert config.

type AlertInhibit

type AlertInhibit struct {
	Id          *int32              `json:"id,omitempty"`
	Name        *string             `json:"name,omitempty"`
	Description *string             `json:"description,omitempty"`
	OrgName     *string             `json:"orgName,omitempty"`
	SourceMatch map[string][]string `json:"sourceMatch,omitempty"`
	TargetMatch map[string][]string `json:"targetMatch,omitempty"`
	Equal       []string            `json:"equal,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

AlertInhibit Alert object information

func NewAlertInhibit

func NewAlertInhibit() *AlertInhibit

NewAlertInhibit instantiates a new AlertInhibit 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 NewAlertInhibitWithDefaults

func NewAlertInhibitWithDefaults() *AlertInhibit

NewAlertInhibitWithDefaults instantiates a new AlertInhibit 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 (*AlertInhibit) GetDescription

func (o *AlertInhibit) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*AlertInhibit) GetDescriptionOk

func (o *AlertInhibit) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertInhibit) GetEqual

func (o *AlertInhibit) GetEqual() []string

GetEqual returns the Equal field value if set, zero value otherwise.

func (*AlertInhibit) GetEqualOk

func (o *AlertInhibit) GetEqualOk() (*[]string, bool)

GetEqualOk returns a tuple with the Equal field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertInhibit) GetId

func (o *AlertInhibit) GetId() int32

GetId returns the Id field value if set, zero value otherwise.

func (*AlertInhibit) GetIdOk

func (o *AlertInhibit) GetIdOk() (*int32, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertInhibit) GetName

func (o *AlertInhibit) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*AlertInhibit) GetNameOk

func (o *AlertInhibit) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertInhibit) GetOrgName

func (o *AlertInhibit) GetOrgName() string

GetOrgName returns the OrgName field value if set, zero value otherwise.

func (*AlertInhibit) GetOrgNameOk

func (o *AlertInhibit) GetOrgNameOk() (*string, bool)

GetOrgNameOk returns a tuple with the OrgName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertInhibit) GetSourceMatch

func (o *AlertInhibit) GetSourceMatch() map[string][]string

GetSourceMatch returns the SourceMatch field value if set, zero value otherwise.

func (*AlertInhibit) GetSourceMatchOk

func (o *AlertInhibit) GetSourceMatchOk() (*map[string][]string, bool)

GetSourceMatchOk returns a tuple with the SourceMatch field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertInhibit) GetTargetMatch

func (o *AlertInhibit) GetTargetMatch() map[string][]string

GetTargetMatch returns the TargetMatch field value if set, zero value otherwise.

func (*AlertInhibit) GetTargetMatchOk

func (o *AlertInhibit) GetTargetMatchOk() (*map[string][]string, bool)

GetTargetMatchOk returns a tuple with the TargetMatch field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertInhibit) HasDescription

func (o *AlertInhibit) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*AlertInhibit) HasEqual

func (o *AlertInhibit) HasEqual() bool

HasEqual returns a boolean if a field has been set.

func (*AlertInhibit) HasId

func (o *AlertInhibit) HasId() bool

HasId returns a boolean if a field has been set.

func (*AlertInhibit) HasName

func (o *AlertInhibit) HasName() bool

HasName returns a boolean if a field has been set.

func (*AlertInhibit) HasOrgName

func (o *AlertInhibit) HasOrgName() bool

HasOrgName returns a boolean if a field has been set.

func (*AlertInhibit) HasSourceMatch

func (o *AlertInhibit) HasSourceMatch() bool

HasSourceMatch returns a boolean if a field has been set.

func (*AlertInhibit) HasTargetMatch

func (o *AlertInhibit) HasTargetMatch() bool

HasTargetMatch returns a boolean if a field has been set.

func (AlertInhibit) MarshalJSON

func (o AlertInhibit) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*AlertInhibit) SetDescription

func (o *AlertInhibit) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*AlertInhibit) SetEqual

func (o *AlertInhibit) SetEqual(v []string)

SetEqual gets a reference to the given []string and assigns it to the Equal field.

func (*AlertInhibit) SetId

func (o *AlertInhibit) SetId(v int32)

SetId gets a reference to the given int32 and assigns it to the Id field.

func (*AlertInhibit) SetName

func (o *AlertInhibit) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*AlertInhibit) SetOrgName

func (o *AlertInhibit) SetOrgName(v string)

SetOrgName gets a reference to the given string and assigns it to the OrgName field.

func (*AlertInhibit) SetSourceMatch

func (o *AlertInhibit) SetSourceMatch(v map[string][]string)

SetSourceMatch gets a reference to the given map[string][]string and assigns it to the SourceMatch field.

func (*AlertInhibit) SetTargetMatch

func (o *AlertInhibit) SetTargetMatch(v map[string][]string)

SetTargetMatch gets a reference to the given map[string][]string and assigns it to the TargetMatch field.

func (*AlertInhibit) UnmarshalJSON

func (o *AlertInhibit) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type AlertInhibitApi

type AlertInhibitApi common.Service

AlertInhibitApi service type

func NewAlertInhibitApi

func NewAlertInhibitApi(client *common.APIClient) *AlertInhibitApi

NewAlertInhibitApi Returns NewAlertInhibitApi.

func (*AlertInhibitApi) CreateAlertInhibit

CreateAlertInhibit Create alert inhibit.

func (*AlertInhibitApi) DeleteAlertInhibit

func (a *AlertInhibitApi) DeleteAlertInhibit(ctx _context.Context, orgName string, inhibitId string) (interface{}, *_nethttp.Response, error)

DeleteAlertInhibit Delete alert inhibit.

func (*AlertInhibitApi) GetAlertInhibit

func (a *AlertInhibitApi) GetAlertInhibit(ctx _context.Context, orgName string, inhibitId string) (AlertInhibit, *_nethttp.Response, error)

GetAlertInhibit Get alert inhibit.

func (*AlertInhibitApi) ListAlertInhibits

func (a *AlertInhibitApi) ListAlertInhibits(ctx _context.Context, orgName string) (AlertInhibitList, *_nethttp.Response, error)

ListAlertInhibits List alert inhibits.

func (*AlertInhibitApi) PatchAlertInhibit

PatchAlertInhibit Patch alert inhibit.

type AlertInhibitList

type AlertInhibitList struct {
	// Items is the list of alert inhibits in the list
	Items []AlertInhibit `json:"items"`
	// PageResult info
	PageResult *PageResult `json:"pageResult,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

AlertInhibitList AlertInhibitList is a list of alert inhibit

func NewAlertInhibitList

func NewAlertInhibitList(items []AlertInhibit) *AlertInhibitList

NewAlertInhibitList instantiates a new AlertInhibitList 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 NewAlertInhibitListWithDefaults

func NewAlertInhibitListWithDefaults() *AlertInhibitList

NewAlertInhibitListWithDefaults instantiates a new AlertInhibitList 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 (*AlertInhibitList) GetItems

func (o *AlertInhibitList) GetItems() []AlertInhibit

GetItems returns the Items field value.

func (*AlertInhibitList) GetItemsOk

func (o *AlertInhibitList) GetItemsOk() (*[]AlertInhibit, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (*AlertInhibitList) GetPageResult

func (o *AlertInhibitList) GetPageResult() PageResult

GetPageResult returns the PageResult field value if set, zero value otherwise.

func (*AlertInhibitList) GetPageResultOk

func (o *AlertInhibitList) GetPageResultOk() (*PageResult, bool)

GetPageResultOk returns a tuple with the PageResult field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertInhibitList) HasPageResult

func (o *AlertInhibitList) HasPageResult() bool

HasPageResult returns a boolean if a field has been set.

func (AlertInhibitList) MarshalJSON

func (o AlertInhibitList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*AlertInhibitList) SetItems

func (o *AlertInhibitList) SetItems(v []AlertInhibit)

SetItems sets field value.

func (*AlertInhibitList) SetPageResult

func (o *AlertInhibitList) SetPageResult(v PageResult)

SetPageResult gets a reference to the given PageResult and assigns it to the PageResult field.

func (*AlertInhibitList) UnmarshalJSON

func (o *AlertInhibitList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type AlertMetric

type AlertMetric struct {
	Key       string  `json:"key"`
	Threshold int32   `json:"threshold"`
	Notation  string  `json:"notation"`
	Category  *string `json:"category,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

AlertMetric Alert metric information

func NewAlertMetric

func NewAlertMetric(key string, threshold int32, notation string) *AlertMetric

NewAlertMetric instantiates a new AlertMetric 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 NewAlertMetricWithDefaults

func NewAlertMetricWithDefaults() *AlertMetric

NewAlertMetricWithDefaults instantiates a new AlertMetric 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 (*AlertMetric) GetCategory

func (o *AlertMetric) GetCategory() string

GetCategory returns the Category field value if set, zero value otherwise.

func (*AlertMetric) GetCategoryOk

func (o *AlertMetric) GetCategoryOk() (*string, bool)

GetCategoryOk returns a tuple with the Category field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertMetric) GetKey

func (o *AlertMetric) GetKey() string

GetKey returns the Key field value.

func (*AlertMetric) GetKeyOk

func (o *AlertMetric) GetKeyOk() (*string, bool)

GetKeyOk returns a tuple with the Key field value and a boolean to check if the value has been set.

func (*AlertMetric) GetNotation

func (o *AlertMetric) GetNotation() string

GetNotation returns the Notation field value.

func (*AlertMetric) GetNotationOk

func (o *AlertMetric) GetNotationOk() (*string, bool)

GetNotationOk returns a tuple with the Notation field value and a boolean to check if the value has been set.

func (*AlertMetric) GetThreshold

func (o *AlertMetric) GetThreshold() int32

GetThreshold returns the Threshold field value.

func (*AlertMetric) GetThresholdOk

func (o *AlertMetric) GetThresholdOk() (*int32, bool)

GetThresholdOk returns a tuple with the Threshold field value and a boolean to check if the value has been set.

func (*AlertMetric) HasCategory

func (o *AlertMetric) HasCategory() bool

HasCategory returns a boolean if a field has been set.

func (AlertMetric) MarshalJSON

func (o AlertMetric) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*AlertMetric) SetCategory

func (o *AlertMetric) SetCategory(v string)

SetCategory gets a reference to the given string and assigns it to the Category field.

func (*AlertMetric) SetKey

func (o *AlertMetric) SetKey(v string)

SetKey sets field value.

func (*AlertMetric) SetNotation

func (o *AlertMetric) SetNotation(v string)

SetNotation sets field value.

func (*AlertMetric) SetThreshold

func (o *AlertMetric) SetThreshold(v int32)

SetThreshold sets field value.

func (*AlertMetric) UnmarshalJSON

func (o *AlertMetric) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type AlertMetricList

type AlertMetricList struct {
	// Items is the list of alert metric objects in the list
	Items []AlertMetric `json:"items"`
	// PageResult info
	PageResult *PageResult `json:"pageResult,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

AlertMetricList AlertMetricList is a list of alert metric

func NewAlertMetricList

func NewAlertMetricList(items []AlertMetric) *AlertMetricList

NewAlertMetricList instantiates a new AlertMetricList 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 NewAlertMetricListWithDefaults

func NewAlertMetricListWithDefaults() *AlertMetricList

NewAlertMetricListWithDefaults instantiates a new AlertMetricList 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 (*AlertMetricList) GetItems

func (o *AlertMetricList) GetItems() []AlertMetric

GetItems returns the Items field value.

func (*AlertMetricList) GetItemsOk

func (o *AlertMetricList) GetItemsOk() (*[]AlertMetric, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (*AlertMetricList) GetPageResult

func (o *AlertMetricList) GetPageResult() PageResult

GetPageResult returns the PageResult field value if set, zero value otherwise.

func (*AlertMetricList) GetPageResultOk

func (o *AlertMetricList) GetPageResultOk() (*PageResult, bool)

GetPageResultOk returns a tuple with the PageResult field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertMetricList) HasPageResult

func (o *AlertMetricList) HasPageResult() bool

HasPageResult returns a boolean if a field has been set.

func (AlertMetricList) MarshalJSON

func (o AlertMetricList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*AlertMetricList) SetItems

func (o *AlertMetricList) SetItems(v []AlertMetric)

SetItems sets field value.

func (*AlertMetricList) SetPageResult

func (o *AlertMetricList) SetPageResult(v PageResult)

SetPageResult gets a reference to the given PageResult and assigns it to the PageResult field.

func (*AlertMetricList) UnmarshalJSON

func (o *AlertMetricList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type AlertMetricsApi

type AlertMetricsApi common.Service

AlertMetricsApi service type

func NewAlertMetricsApi

func NewAlertMetricsApi(client *common.APIClient) *AlertMetricsApi

NewAlertMetricsApi Returns NewAlertMetricsApi.

func (*AlertMetricsApi) ListAlertMetrics

ListAlertMetrics List alert metric types.

type AlertObject

type AlertObject struct {
	Id          *int32         `json:"id,omitempty"`
	AlertName   *string        `json:"alertName,omitempty"`
	GroupName   *string        `json:"groupName,omitempty"`
	Expr        *string        `json:"expr,omitempty"`
	ClusterName *string        `json:"clusterName,omitempty"`
	Engine      *string        `json:"engine,omitempty"`
	Namespace   *string        `json:"namespace,omitempty"`
	Pod         *string        `json:"pod,omitempty"`
	Severity    *AlertSeverity `json:"severity,omitempty"`
	Description *string        `json:"description,omitempty"`
	Fingerprint *string        `json:"fingerprint,omitempty"`
	StartsAt    *time.Time     `json:"startsAt,omitempty"`
	EndsAt      *time.Time     `json:"endsAt,omitempty"`
	Status      *AlertStatus   `json:"status,omitempty"`
	Count       *int32         `json:"count,omitempty"`
	OrgName     *string        `json:"orgName,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

AlertObject Alert object information

func NewAlertObject

func NewAlertObject() *AlertObject

NewAlertObject instantiates a new AlertObject 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 NewAlertObjectWithDefaults

func NewAlertObjectWithDefaults() *AlertObject

NewAlertObjectWithDefaults instantiates a new AlertObject 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 (*AlertObject) GetAlertName

func (o *AlertObject) GetAlertName() string

GetAlertName returns the AlertName field value if set, zero value otherwise.

func (*AlertObject) GetAlertNameOk

func (o *AlertObject) GetAlertNameOk() (*string, bool)

GetAlertNameOk returns a tuple with the AlertName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertObject) GetClusterName

func (o *AlertObject) GetClusterName() string

GetClusterName returns the ClusterName field value if set, zero value otherwise.

func (*AlertObject) GetClusterNameOk

func (o *AlertObject) GetClusterNameOk() (*string, bool)

GetClusterNameOk returns a tuple with the ClusterName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertObject) GetCount

func (o *AlertObject) GetCount() int32

GetCount returns the Count field value if set, zero value otherwise.

func (*AlertObject) GetCountOk

func (o *AlertObject) GetCountOk() (*int32, bool)

GetCountOk returns a tuple with the Count field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertObject) GetDescription

func (o *AlertObject) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*AlertObject) GetDescriptionOk

func (o *AlertObject) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertObject) GetEndsAt

func (o *AlertObject) GetEndsAt() time.Time

GetEndsAt returns the EndsAt field value if set, zero value otherwise.

func (*AlertObject) GetEndsAtOk

func (o *AlertObject) GetEndsAtOk() (*time.Time, bool)

GetEndsAtOk returns a tuple with the EndsAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertObject) GetEngine

func (o *AlertObject) GetEngine() string

GetEngine returns the Engine field value if set, zero value otherwise.

func (*AlertObject) GetEngineOk

func (o *AlertObject) GetEngineOk() (*string, bool)

GetEngineOk returns a tuple with the Engine field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertObject) GetExpr

func (o *AlertObject) GetExpr() string

GetExpr returns the Expr field value if set, zero value otherwise.

func (*AlertObject) GetExprOk

func (o *AlertObject) GetExprOk() (*string, bool)

GetExprOk returns a tuple with the Expr field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertObject) GetFingerprint

func (o *AlertObject) GetFingerprint() string

GetFingerprint returns the Fingerprint field value if set, zero value otherwise.

func (*AlertObject) GetFingerprintOk

func (o *AlertObject) GetFingerprintOk() (*string, bool)

GetFingerprintOk returns a tuple with the Fingerprint field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertObject) GetGroupName

func (o *AlertObject) GetGroupName() string

GetGroupName returns the GroupName field value if set, zero value otherwise.

func (*AlertObject) GetGroupNameOk

func (o *AlertObject) GetGroupNameOk() (*string, bool)

GetGroupNameOk returns a tuple with the GroupName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertObject) GetId

func (o *AlertObject) GetId() int32

GetId returns the Id field value if set, zero value otherwise.

func (*AlertObject) GetIdOk

func (o *AlertObject) GetIdOk() (*int32, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertObject) GetNamespace

func (o *AlertObject) GetNamespace() string

GetNamespace returns the Namespace field value if set, zero value otherwise.

func (*AlertObject) GetNamespaceOk

func (o *AlertObject) GetNamespaceOk() (*string, bool)

GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertObject) GetOrgName

func (o *AlertObject) GetOrgName() string

GetOrgName returns the OrgName field value if set, zero value otherwise.

func (*AlertObject) GetOrgNameOk

func (o *AlertObject) GetOrgNameOk() (*string, bool)

GetOrgNameOk returns a tuple with the OrgName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertObject) GetPod

func (o *AlertObject) GetPod() string

GetPod returns the Pod field value if set, zero value otherwise.

func (*AlertObject) GetPodOk

func (o *AlertObject) GetPodOk() (*string, bool)

GetPodOk returns a tuple with the Pod field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertObject) GetSeverity

func (o *AlertObject) GetSeverity() AlertSeverity

GetSeverity returns the Severity field value if set, zero value otherwise.

func (*AlertObject) GetSeverityOk

func (o *AlertObject) GetSeverityOk() (*AlertSeverity, bool)

GetSeverityOk returns a tuple with the Severity field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertObject) GetStartsAt

func (o *AlertObject) GetStartsAt() time.Time

GetStartsAt returns the StartsAt field value if set, zero value otherwise.

func (*AlertObject) GetStartsAtOk

func (o *AlertObject) GetStartsAtOk() (*time.Time, bool)

GetStartsAtOk returns a tuple with the StartsAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertObject) GetStatus

func (o *AlertObject) GetStatus() AlertStatus

GetStatus returns the Status field value if set, zero value otherwise.

func (*AlertObject) GetStatusOk

func (o *AlertObject) GetStatusOk() (*AlertStatus, bool)

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 (*AlertObject) HasAlertName

func (o *AlertObject) HasAlertName() bool

HasAlertName returns a boolean if a field has been set.

func (*AlertObject) HasClusterName

func (o *AlertObject) HasClusterName() bool

HasClusterName returns a boolean if a field has been set.

func (*AlertObject) HasCount

func (o *AlertObject) HasCount() bool

HasCount returns a boolean if a field has been set.

func (*AlertObject) HasDescription

func (o *AlertObject) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*AlertObject) HasEndsAt

func (o *AlertObject) HasEndsAt() bool

HasEndsAt returns a boolean if a field has been set.

func (*AlertObject) HasEngine

func (o *AlertObject) HasEngine() bool

HasEngine returns a boolean if a field has been set.

func (*AlertObject) HasExpr

func (o *AlertObject) HasExpr() bool

HasExpr returns a boolean if a field has been set.

func (*AlertObject) HasFingerprint

func (o *AlertObject) HasFingerprint() bool

HasFingerprint returns a boolean if a field has been set.

func (*AlertObject) HasGroupName

func (o *AlertObject) HasGroupName() bool

HasGroupName returns a boolean if a field has been set.

func (*AlertObject) HasId

func (o *AlertObject) HasId() bool

HasId returns a boolean if a field has been set.

func (*AlertObject) HasNamespace

func (o *AlertObject) HasNamespace() bool

HasNamespace returns a boolean if a field has been set.

func (*AlertObject) HasOrgName

func (o *AlertObject) HasOrgName() bool

HasOrgName returns a boolean if a field has been set.

func (*AlertObject) HasPod

func (o *AlertObject) HasPod() bool

HasPod returns a boolean if a field has been set.

func (*AlertObject) HasSeverity

func (o *AlertObject) HasSeverity() bool

HasSeverity returns a boolean if a field has been set.

func (*AlertObject) HasStartsAt

func (o *AlertObject) HasStartsAt() bool

HasStartsAt returns a boolean if a field has been set.

func (*AlertObject) HasStatus

func (o *AlertObject) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (AlertObject) MarshalJSON

func (o AlertObject) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*AlertObject) SetAlertName

func (o *AlertObject) SetAlertName(v string)

SetAlertName gets a reference to the given string and assigns it to the AlertName field.

func (*AlertObject) SetClusterName

func (o *AlertObject) SetClusterName(v string)

SetClusterName gets a reference to the given string and assigns it to the ClusterName field.

func (*AlertObject) SetCount

func (o *AlertObject) SetCount(v int32)

SetCount gets a reference to the given int32 and assigns it to the Count field.

func (*AlertObject) SetDescription

func (o *AlertObject) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*AlertObject) SetEndsAt

func (o *AlertObject) SetEndsAt(v time.Time)

SetEndsAt gets a reference to the given time.Time and assigns it to the EndsAt field.

func (*AlertObject) SetEngine

func (o *AlertObject) SetEngine(v string)

SetEngine gets a reference to the given string and assigns it to the Engine field.

func (*AlertObject) SetExpr

func (o *AlertObject) SetExpr(v string)

SetExpr gets a reference to the given string and assigns it to the Expr field.

func (*AlertObject) SetFingerprint

func (o *AlertObject) SetFingerprint(v string)

SetFingerprint gets a reference to the given string and assigns it to the Fingerprint field.

func (*AlertObject) SetGroupName

func (o *AlertObject) SetGroupName(v string)

SetGroupName gets a reference to the given string and assigns it to the GroupName field.

func (*AlertObject) SetId

func (o *AlertObject) SetId(v int32)

SetId gets a reference to the given int32 and assigns it to the Id field.

func (*AlertObject) SetNamespace

func (o *AlertObject) SetNamespace(v string)

SetNamespace gets a reference to the given string and assigns it to the Namespace field.

func (*AlertObject) SetOrgName

func (o *AlertObject) SetOrgName(v string)

SetOrgName gets a reference to the given string and assigns it to the OrgName field.

func (*AlertObject) SetPod

func (o *AlertObject) SetPod(v string)

SetPod gets a reference to the given string and assigns it to the Pod field.

func (*AlertObject) SetSeverity

func (o *AlertObject) SetSeverity(v AlertSeverity)

SetSeverity gets a reference to the given AlertSeverity and assigns it to the Severity field.

func (*AlertObject) SetStartsAt

func (o *AlertObject) SetStartsAt(v time.Time)

SetStartsAt gets a reference to the given time.Time and assigns it to the StartsAt field.

func (*AlertObject) SetStatus

func (o *AlertObject) SetStatus(v AlertStatus)

SetStatus gets a reference to the given AlertStatus and assigns it to the Status field.

func (*AlertObject) UnmarshalJSON

func (o *AlertObject) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type AlertObjectApi

type AlertObjectApi common.Service

AlertObjectApi service type

func NewAlertObjectApi

func NewAlertObjectApi(client *common.APIClient) *AlertObjectApi

NewAlertObjectApi Returns NewAlertObjectApi.

func (*AlertObjectApi) ListAlertObjects

func (a *AlertObjectApi) ListAlertObjects(ctx _context.Context, orgName string) (AlertObjectList, *_nethttp.Response, error)

ListAlertObjects List alert objects.

func (*AlertObjectApi) SetAlertObjectStatus

func (a *AlertObjectApi) SetAlertObjectStatus(ctx _context.Context, orgName string, alertId string, status string) (AlertObject, *_nethttp.Response, error)

SetAlertObjectStatus Set alert object status.

func (*AlertObjectApi) SetAlertObjectsStatus

SetAlertObjectsStatus Set alert objects status.

type AlertObjectList

type AlertObjectList struct {
	// Items is the list of alert objects in the list
	Items []AlertObject `json:"items"`
	// PageResult info
	PageResult *PageResult `json:"pageResult,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

AlertObjectList AlertObjectList is a list of alert object

func NewAlertObjectList

func NewAlertObjectList(items []AlertObject) *AlertObjectList

NewAlertObjectList instantiates a new AlertObjectList 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 NewAlertObjectListWithDefaults

func NewAlertObjectListWithDefaults() *AlertObjectList

NewAlertObjectListWithDefaults instantiates a new AlertObjectList 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 (*AlertObjectList) GetItems

func (o *AlertObjectList) GetItems() []AlertObject

GetItems returns the Items field value.

func (*AlertObjectList) GetItemsOk

func (o *AlertObjectList) GetItemsOk() (*[]AlertObject, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (*AlertObjectList) GetPageResult

func (o *AlertObjectList) GetPageResult() PageResult

GetPageResult returns the PageResult field value if set, zero value otherwise.

func (*AlertObjectList) GetPageResultOk

func (o *AlertObjectList) GetPageResultOk() (*PageResult, bool)

GetPageResultOk returns a tuple with the PageResult field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertObjectList) HasPageResult

func (o *AlertObjectList) HasPageResult() bool

HasPageResult returns a boolean if a field has been set.

func (AlertObjectList) MarshalJSON

func (o AlertObjectList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*AlertObjectList) SetItems

func (o *AlertObjectList) SetItems(v []AlertObject)

SetItems sets field value.

func (*AlertObjectList) SetPageResult

func (o *AlertObjectList) SetPageResult(v PageResult)

SetPageResult gets a reference to the given PageResult and assigns it to the PageResult field.

func (*AlertObjectList) UnmarshalJSON

func (o *AlertObjectList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type AlertReceiver

type AlertReceiver struct {
	CreatedAt *time.Time              `json:"createdAt,omitempty"`
	Id        *string                 `json:"id,omitempty"`
	Name      *string                 `json:"name,omitempty"`
	Category  *AlertReceiverCategory  `json:"category,omitempty"`
	UpdatedAt *time.Time              `json:"updatedAt,omitempty"`
	UserGroup *AlertReceiverUserGroup `json:"userGroup,omitempty"`
	// Webhook config of alert receiver
	WebhookConfig *WebhookConfig `json:"webhookConfig,omitempty"`
	OrgName       *string        `json:"orgName,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

AlertReceiver Alert receiver information

func NewAlertReceiver

func NewAlertReceiver() *AlertReceiver

NewAlertReceiver instantiates a new AlertReceiver 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 NewAlertReceiverWithDefaults

func NewAlertReceiverWithDefaults() *AlertReceiver

NewAlertReceiverWithDefaults instantiates a new AlertReceiver 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 (*AlertReceiver) GetCategory

func (o *AlertReceiver) GetCategory() AlertReceiverCategory

GetCategory returns the Category field value if set, zero value otherwise.

func (*AlertReceiver) GetCategoryOk

func (o *AlertReceiver) GetCategoryOk() (*AlertReceiverCategory, bool)

GetCategoryOk returns a tuple with the Category field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertReceiver) GetCreatedAt

func (o *AlertReceiver) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.

func (*AlertReceiver) GetCreatedAtOk

func (o *AlertReceiver) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertReceiver) GetId

func (o *AlertReceiver) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*AlertReceiver) GetIdOk

func (o *AlertReceiver) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertReceiver) GetName

func (o *AlertReceiver) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*AlertReceiver) GetNameOk

func (o *AlertReceiver) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertReceiver) GetOrgName

func (o *AlertReceiver) GetOrgName() string

GetOrgName returns the OrgName field value if set, zero value otherwise.

func (*AlertReceiver) GetOrgNameOk

func (o *AlertReceiver) GetOrgNameOk() (*string, bool)

GetOrgNameOk returns a tuple with the OrgName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertReceiver) GetUpdatedAt

func (o *AlertReceiver) GetUpdatedAt() time.Time

GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.

func (*AlertReceiver) GetUpdatedAtOk

func (o *AlertReceiver) GetUpdatedAtOk() (*time.Time, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertReceiver) GetUserGroup

func (o *AlertReceiver) GetUserGroup() AlertReceiverUserGroup

GetUserGroup returns the UserGroup field value if set, zero value otherwise.

func (*AlertReceiver) GetUserGroupOk

func (o *AlertReceiver) GetUserGroupOk() (*AlertReceiverUserGroup, bool)

GetUserGroupOk returns a tuple with the UserGroup field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertReceiver) GetWebhookConfig

func (o *AlertReceiver) GetWebhookConfig() WebhookConfig

GetWebhookConfig returns the WebhookConfig field value if set, zero value otherwise.

func (*AlertReceiver) GetWebhookConfigOk

func (o *AlertReceiver) GetWebhookConfigOk() (*WebhookConfig, bool)

GetWebhookConfigOk returns a tuple with the WebhookConfig field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertReceiver) HasCategory

func (o *AlertReceiver) HasCategory() bool

HasCategory returns a boolean if a field has been set.

func (*AlertReceiver) HasCreatedAt

func (o *AlertReceiver) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*AlertReceiver) HasId

func (o *AlertReceiver) HasId() bool

HasId returns a boolean if a field has been set.

func (*AlertReceiver) HasName

func (o *AlertReceiver) HasName() bool

HasName returns a boolean if a field has been set.

func (*AlertReceiver) HasOrgName

func (o *AlertReceiver) HasOrgName() bool

HasOrgName returns a boolean if a field has been set.

func (*AlertReceiver) HasUpdatedAt

func (o *AlertReceiver) HasUpdatedAt() bool

HasUpdatedAt returns a boolean if a field has been set.

func (*AlertReceiver) HasUserGroup

func (o *AlertReceiver) HasUserGroup() bool

HasUserGroup returns a boolean if a field has been set.

func (*AlertReceiver) HasWebhookConfig

func (o *AlertReceiver) HasWebhookConfig() bool

HasWebhookConfig returns a boolean if a field has been set.

func (AlertReceiver) MarshalJSON

func (o AlertReceiver) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*AlertReceiver) SetCategory

func (o *AlertReceiver) SetCategory(v AlertReceiverCategory)

SetCategory gets a reference to the given AlertReceiverCategory and assigns it to the Category field.

func (*AlertReceiver) SetCreatedAt

func (o *AlertReceiver) SetCreatedAt(v time.Time)

SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.

func (*AlertReceiver) SetId

func (o *AlertReceiver) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*AlertReceiver) SetName

func (o *AlertReceiver) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*AlertReceiver) SetOrgName

func (o *AlertReceiver) SetOrgName(v string)

SetOrgName gets a reference to the given string and assigns it to the OrgName field.

func (*AlertReceiver) SetUpdatedAt

func (o *AlertReceiver) SetUpdatedAt(v time.Time)

SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field.

func (*AlertReceiver) SetUserGroup

func (o *AlertReceiver) SetUserGroup(v AlertReceiverUserGroup)

SetUserGroup gets a reference to the given AlertReceiverUserGroup and assigns it to the UserGroup field.

func (*AlertReceiver) SetWebhookConfig

func (o *AlertReceiver) SetWebhookConfig(v WebhookConfig)

SetWebhookConfig gets a reference to the given WebhookConfig and assigns it to the WebhookConfig field.

func (*AlertReceiver) UnmarshalJSON

func (o *AlertReceiver) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type AlertReceiverApi

type AlertReceiverApi common.Service

AlertReceiverApi service type

func NewAlertReceiverApi

func NewAlertReceiverApi(client *common.APIClient) *AlertReceiverApi

NewAlertReceiverApi Returns NewAlertReceiverApi.

func (*AlertReceiverApi) CreateAlertReceiver

func (a *AlertReceiverApi) CreateAlertReceiver(ctx _context.Context, orgName string, category AlertReceiverCategory, body AlertReceiver) (AlertReceiver, *_nethttp.Response, error)

CreateAlertReceiver Create alert receiver.

func (*AlertReceiverApi) DeleteAlertReceiver

func (a *AlertReceiverApi) DeleteAlertReceiver(ctx _context.Context, orgName string, receiverId string) (*_nethttp.Response, error)

DeleteAlertReceiver Delete alert receiver.

func (*AlertReceiverApi) GetAlertReceiver

func (a *AlertReceiverApi) GetAlertReceiver(ctx _context.Context, orgName string, receiverId string) (AlertReceiver, *_nethttp.Response, error)

GetAlertReceiver Get alert receiver.

func (*AlertReceiverApi) ListAlertReceivers

ListAlertReceivers List alert receivers.

func (*AlertReceiverApi) PatchAlertReceiver

func (a *AlertReceiverApi) PatchAlertReceiver(ctx _context.Context, orgName string, receiverId string, body AlertReceiver) (AlertReceiver, *_nethttp.Response, error)

PatchAlertReceiver Update alert receiver. partially update the alert receiver

type AlertReceiverCategory

type AlertReceiverCategory string
const (
	AlertReceiverCategoryFeishu        AlertReceiverCategory = "feishu"
	AlertReceiverCategoryWechat        AlertReceiverCategory = "wechat"
	AlertReceiverCategoryDingtalk      AlertReceiverCategory = "dingtalk"
	AlertReceiverCategoryReceiverGroup AlertReceiverCategory = "receiver-group"
	AlertReceiverCategoryWebhook       AlertReceiverCategory = "webhook"
)

List of AlertReceiverCategory.

func NewAlertReceiverCategoryFromValue

func NewAlertReceiverCategoryFromValue(v string) (*AlertReceiverCategory, error)

NewAlertReceiverCategoryFromValue returns a pointer to a valid AlertReceiverCategory for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*AlertReceiverCategory) GetAllowedValues

func (v *AlertReceiverCategory) GetAllowedValues() []AlertReceiverCategory

GetAllowedValues returns the list of possible values.

func (AlertReceiverCategory) IsValid

func (v AlertReceiverCategory) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (AlertReceiverCategory) Ptr

Ptr returns reference to AlertReceiverCategory value.

func (*AlertReceiverCategory) UnmarshalJSON

func (v *AlertReceiverCategory) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type AlertReceiverList

type AlertReceiverList struct {
	// Items is the list of alert receiver objects in the list
	Items []AlertReceiver `json:"items"`
	// PageResult info
	PageResult *PageResult `json:"pageResult,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

AlertReceiverList AlertReceiverList is a list of alert receivers

func NewAlertReceiverList

func NewAlertReceiverList(items []AlertReceiver) *AlertReceiverList

NewAlertReceiverList instantiates a new AlertReceiverList 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 NewAlertReceiverListWithDefaults

func NewAlertReceiverListWithDefaults() *AlertReceiverList

NewAlertReceiverListWithDefaults instantiates a new AlertReceiverList 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 (*AlertReceiverList) GetItems

func (o *AlertReceiverList) GetItems() []AlertReceiver

GetItems returns the Items field value.

func (*AlertReceiverList) GetItemsOk

func (o *AlertReceiverList) GetItemsOk() (*[]AlertReceiver, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (*AlertReceiverList) GetPageResult

func (o *AlertReceiverList) GetPageResult() PageResult

GetPageResult returns the PageResult field value if set, zero value otherwise.

func (*AlertReceiverList) GetPageResultOk

func (o *AlertReceiverList) GetPageResultOk() (*PageResult, bool)

GetPageResultOk returns a tuple with the PageResult field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertReceiverList) HasPageResult

func (o *AlertReceiverList) HasPageResult() bool

HasPageResult returns a boolean if a field has been set.

func (AlertReceiverList) MarshalJSON

func (o AlertReceiverList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*AlertReceiverList) SetItems

func (o *AlertReceiverList) SetItems(v []AlertReceiver)

SetItems sets field value.

func (*AlertReceiverList) SetPageResult

func (o *AlertReceiverList) SetPageResult(v PageResult)

SetPageResult gets a reference to the given PageResult and assigns it to the PageResult field.

func (*AlertReceiverList) UnmarshalJSON

func (o *AlertReceiverList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type AlertReceiverUserGroup

type AlertReceiverUserGroup struct {
	EmailEnabled *bool    `json:"emailEnabled,omitempty"`
	Ids          []string `json:"ids,omitempty"`
	SmsEnabled   *bool    `json:"smsEnabled,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewAlertReceiverUserGroup

func NewAlertReceiverUserGroup() *AlertReceiverUserGroup

NewAlertReceiverUserGroup instantiates a new AlertReceiverUserGroup 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 NewAlertReceiverUserGroupWithDefaults

func NewAlertReceiverUserGroupWithDefaults() *AlertReceiverUserGroup

NewAlertReceiverUserGroupWithDefaults instantiates a new AlertReceiverUserGroup 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 (*AlertReceiverUserGroup) GetEmailEnabled

func (o *AlertReceiverUserGroup) GetEmailEnabled() bool

GetEmailEnabled returns the EmailEnabled field value if set, zero value otherwise.

func (*AlertReceiverUserGroup) GetEmailEnabledOk

func (o *AlertReceiverUserGroup) GetEmailEnabledOk() (*bool, bool)

GetEmailEnabledOk returns a tuple with the EmailEnabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertReceiverUserGroup) GetIds

func (o *AlertReceiverUserGroup) GetIds() []string

GetIds returns the Ids field value if set, zero value otherwise.

func (*AlertReceiverUserGroup) GetIdsOk

func (o *AlertReceiverUserGroup) GetIdsOk() (*[]string, bool)

GetIdsOk returns a tuple with the Ids field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertReceiverUserGroup) GetSmsEnabled

func (o *AlertReceiverUserGroup) GetSmsEnabled() bool

GetSmsEnabled returns the SmsEnabled field value if set, zero value otherwise.

func (*AlertReceiverUserGroup) GetSmsEnabledOk

func (o *AlertReceiverUserGroup) GetSmsEnabledOk() (*bool, bool)

GetSmsEnabledOk returns a tuple with the SmsEnabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertReceiverUserGroup) HasEmailEnabled

func (o *AlertReceiverUserGroup) HasEmailEnabled() bool

HasEmailEnabled returns a boolean if a field has been set.

func (*AlertReceiverUserGroup) HasIds

func (o *AlertReceiverUserGroup) HasIds() bool

HasIds returns a boolean if a field has been set.

func (*AlertReceiverUserGroup) HasSmsEnabled

func (o *AlertReceiverUserGroup) HasSmsEnabled() bool

HasSmsEnabled returns a boolean if a field has been set.

func (AlertReceiverUserGroup) MarshalJSON

func (o AlertReceiverUserGroup) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*AlertReceiverUserGroup) SetEmailEnabled

func (o *AlertReceiverUserGroup) SetEmailEnabled(v bool)

SetEmailEnabled gets a reference to the given bool and assigns it to the EmailEnabled field.

func (*AlertReceiverUserGroup) SetIds

func (o *AlertReceiverUserGroup) SetIds(v []string)

SetIds gets a reference to the given []string and assigns it to the Ids field.

func (*AlertReceiverUserGroup) SetSmsEnabled

func (o *AlertReceiverUserGroup) SetSmsEnabled(v bool)

SetSmsEnabled gets a reference to the given bool and assigns it to the SmsEnabled field.

func (*AlertReceiverUserGroup) UnmarshalJSON

func (o *AlertReceiverUserGroup) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type AlertRule

type AlertRule struct {
	Description *string        `json:"description,omitempty"`
	Summary     *string        `json:"summary,omitempty"`
	AlertName   string         `json:"alertName"`
	Expr        *string        `json:"expr,omitempty"`
	For         *string        `json:"for,omitempty"`
	GroupName   *string        `json:"groupName,omitempty"`
	Disabled    *bool          `json:"disabled,omitempty"`
	Severity    *AlertSeverity `json:"severity,omitempty"`
	CreatedAt   *time.Time     `json:"createdAt,omitempty"`
	UpdatedAt   *time.Time     `json:"updatedAt,omitempty"`
	// Alert metric information
	Metric  *AlertMetric `json:"metric,omitempty"`
	OrgName *string      `json:"orgName,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

AlertRule Alert rule information

func NewAlertRule

func NewAlertRule(alertName string) *AlertRule

NewAlertRule instantiates a new AlertRule 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 NewAlertRuleWithDefaults

func NewAlertRuleWithDefaults() *AlertRule

NewAlertRuleWithDefaults instantiates a new AlertRule 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 (*AlertRule) GetAlertName

func (o *AlertRule) GetAlertName() string

GetAlertName returns the AlertName field value.

func (*AlertRule) GetAlertNameOk

func (o *AlertRule) GetAlertNameOk() (*string, bool)

GetAlertNameOk returns a tuple with the AlertName field value and a boolean to check if the value has been set.

func (*AlertRule) GetCreatedAt

func (o *AlertRule) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.

func (*AlertRule) GetCreatedAtOk

func (o *AlertRule) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertRule) GetDescription

func (o *AlertRule) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*AlertRule) GetDescriptionOk

func (o *AlertRule) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertRule) GetDisabled

func (o *AlertRule) GetDisabled() bool

GetDisabled returns the Disabled field value if set, zero value otherwise.

func (*AlertRule) GetDisabledOk

func (o *AlertRule) GetDisabledOk() (*bool, bool)

GetDisabledOk returns a tuple with the Disabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertRule) GetExpr

func (o *AlertRule) GetExpr() string

GetExpr returns the Expr field value if set, zero value otherwise.

func (*AlertRule) GetExprOk

func (o *AlertRule) GetExprOk() (*string, bool)

GetExprOk returns a tuple with the Expr field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertRule) GetFor

func (o *AlertRule) GetFor() string

GetFor returns the For field value if set, zero value otherwise.

func (*AlertRule) GetForOk

func (o *AlertRule) GetForOk() (*string, bool)

GetForOk returns a tuple with the For field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertRule) GetGroupName

func (o *AlertRule) GetGroupName() string

GetGroupName returns the GroupName field value if set, zero value otherwise.

func (*AlertRule) GetGroupNameOk

func (o *AlertRule) GetGroupNameOk() (*string, bool)

GetGroupNameOk returns a tuple with the GroupName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertRule) GetMetric

func (o *AlertRule) GetMetric() AlertMetric

GetMetric returns the Metric field value if set, zero value otherwise.

func (*AlertRule) GetMetricOk

func (o *AlertRule) GetMetricOk() (*AlertMetric, bool)

GetMetricOk returns a tuple with the Metric field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertRule) GetOrgName

func (o *AlertRule) GetOrgName() string

GetOrgName returns the OrgName field value if set, zero value otherwise.

func (*AlertRule) GetOrgNameOk

func (o *AlertRule) GetOrgNameOk() (*string, bool)

GetOrgNameOk returns a tuple with the OrgName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertRule) GetSeverity

func (o *AlertRule) GetSeverity() AlertSeverity

GetSeverity returns the Severity field value if set, zero value otherwise.

func (*AlertRule) GetSeverityOk

func (o *AlertRule) GetSeverityOk() (*AlertSeverity, bool)

GetSeverityOk returns a tuple with the Severity field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertRule) GetSummary

func (o *AlertRule) GetSummary() string

GetSummary returns the Summary field value if set, zero value otherwise.

func (*AlertRule) GetSummaryOk

func (o *AlertRule) GetSummaryOk() (*string, bool)

GetSummaryOk returns a tuple with the Summary field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertRule) GetUpdatedAt

func (o *AlertRule) GetUpdatedAt() time.Time

GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.

func (*AlertRule) GetUpdatedAtOk

func (o *AlertRule) GetUpdatedAtOk() (*time.Time, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertRule) HasCreatedAt

func (o *AlertRule) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*AlertRule) HasDescription

func (o *AlertRule) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*AlertRule) HasDisabled

func (o *AlertRule) HasDisabled() bool

HasDisabled returns a boolean if a field has been set.

func (*AlertRule) HasExpr

func (o *AlertRule) HasExpr() bool

HasExpr returns a boolean if a field has been set.

func (*AlertRule) HasFor

func (o *AlertRule) HasFor() bool

HasFor returns a boolean if a field has been set.

func (*AlertRule) HasGroupName

func (o *AlertRule) HasGroupName() bool

HasGroupName returns a boolean if a field has been set.

func (*AlertRule) HasMetric

func (o *AlertRule) HasMetric() bool

HasMetric returns a boolean if a field has been set.

func (*AlertRule) HasOrgName

func (o *AlertRule) HasOrgName() bool

HasOrgName returns a boolean if a field has been set.

func (*AlertRule) HasSeverity

func (o *AlertRule) HasSeverity() bool

HasSeverity returns a boolean if a field has been set.

func (*AlertRule) HasSummary

func (o *AlertRule) HasSummary() bool

HasSummary returns a boolean if a field has been set.

func (*AlertRule) HasUpdatedAt

func (o *AlertRule) HasUpdatedAt() bool

HasUpdatedAt returns a boolean if a field has been set.

func (AlertRule) MarshalJSON

func (o AlertRule) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*AlertRule) SetAlertName

func (o *AlertRule) SetAlertName(v string)

SetAlertName sets field value.

func (*AlertRule) SetCreatedAt

func (o *AlertRule) SetCreatedAt(v time.Time)

SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.

func (*AlertRule) SetDescription

func (o *AlertRule) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*AlertRule) SetDisabled

func (o *AlertRule) SetDisabled(v bool)

SetDisabled gets a reference to the given bool and assigns it to the Disabled field.

func (*AlertRule) SetExpr

func (o *AlertRule) SetExpr(v string)

SetExpr gets a reference to the given string and assigns it to the Expr field.

func (*AlertRule) SetFor

func (o *AlertRule) SetFor(v string)

SetFor gets a reference to the given string and assigns it to the For field.

func (*AlertRule) SetGroupName

func (o *AlertRule) SetGroupName(v string)

SetGroupName gets a reference to the given string and assigns it to the GroupName field.

func (*AlertRule) SetMetric

func (o *AlertRule) SetMetric(v AlertMetric)

SetMetric gets a reference to the given AlertMetric and assigns it to the Metric field.

func (*AlertRule) SetOrgName

func (o *AlertRule) SetOrgName(v string)

SetOrgName gets a reference to the given string and assigns it to the OrgName field.

func (*AlertRule) SetSeverity

func (o *AlertRule) SetSeverity(v AlertSeverity)

SetSeverity gets a reference to the given AlertSeverity and assigns it to the Severity field.

func (*AlertRule) SetSummary

func (o *AlertRule) SetSummary(v string)

SetSummary gets a reference to the given string and assigns it to the Summary field.

func (*AlertRule) SetUpdatedAt

func (o *AlertRule) SetUpdatedAt(v time.Time)

SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field.

func (*AlertRule) UnmarshalJSON

func (o *AlertRule) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type AlertRuleApi

type AlertRuleApi common.Service

AlertRuleApi service type

func NewAlertRuleApi

func NewAlertRuleApi(client *common.APIClient) *AlertRuleApi

NewAlertRuleApi Returns NewAlertRuleApi.

func (*AlertRuleApi) CreateAlertRule

func (a *AlertRuleApi) CreateAlertRule(ctx _context.Context, orgName string, body AlertRule) (AlertRule, *_nethttp.Response, error)

CreateAlertRule Create alert rule.

func (*AlertRuleApi) DeleteAlertRule

func (a *AlertRuleApi) DeleteAlertRule(ctx _context.Context, orgName string, alertName string) (interface{}, *_nethttp.Response, error)

DeleteAlertRule Delete alert rule.

func (*AlertRuleApi) GetAlertRule

func (a *AlertRuleApi) GetAlertRule(ctx _context.Context, orgName string, alertName string) (AlertRule, *_nethttp.Response, error)

GetAlertRule .

func (*AlertRuleApi) ListAlertRules

func (a *AlertRuleApi) ListAlertRules(ctx _context.Context, orgName string) (AlertRuleList, *_nethttp.Response, error)

ListAlertRules List alert rules.

func (*AlertRuleApi) UpdateAlertRule

func (a *AlertRuleApi) UpdateAlertRule(ctx _context.Context, orgName string, alertName string, body AlertRule) (AlertRule, *_nethttp.Response, error)

UpdateAlertRule Update alert rule.

type AlertRuleGroup

type AlertRuleGroup struct {
	Name  *string     `json:"name,omitempty"`
	Rules []AlertRule `json:"rules,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewAlertRuleGroup

func NewAlertRuleGroup() *AlertRuleGroup

NewAlertRuleGroup instantiates a new AlertRuleGroup 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 NewAlertRuleGroupWithDefaults

func NewAlertRuleGroupWithDefaults() *AlertRuleGroup

NewAlertRuleGroupWithDefaults instantiates a new AlertRuleGroup 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 (*AlertRuleGroup) GetName

func (o *AlertRuleGroup) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*AlertRuleGroup) GetNameOk

func (o *AlertRuleGroup) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertRuleGroup) GetRules

func (o *AlertRuleGroup) GetRules() []AlertRule

GetRules returns the Rules field value if set, zero value otherwise.

func (*AlertRuleGroup) GetRulesOk

func (o *AlertRuleGroup) GetRulesOk() (*[]AlertRule, bool)

GetRulesOk returns a tuple with the Rules field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertRuleGroup) HasName

func (o *AlertRuleGroup) HasName() bool

HasName returns a boolean if a field has been set.

func (*AlertRuleGroup) HasRules

func (o *AlertRuleGroup) HasRules() bool

HasRules returns a boolean if a field has been set.

func (AlertRuleGroup) MarshalJSON

func (o AlertRuleGroup) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*AlertRuleGroup) SetName

func (o *AlertRuleGroup) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*AlertRuleGroup) SetRules

func (o *AlertRuleGroup) SetRules(v []AlertRule)

SetRules gets a reference to the given []AlertRule and assigns it to the Rules field.

func (*AlertRuleGroup) UnmarshalJSON

func (o *AlertRuleGroup) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type AlertRuleList

type AlertRuleList struct {
	// Items is the list of alert rule objects in the list
	Items []AlertRuleGroup `json:"items"`
	// PageResult info
	PageResult *PageResult `json:"pageResult,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

AlertRuleList AlertRuleList is a list of alert rules

func NewAlertRuleList

func NewAlertRuleList(items []AlertRuleGroup) *AlertRuleList

NewAlertRuleList instantiates a new AlertRuleList 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 NewAlertRuleListWithDefaults

func NewAlertRuleListWithDefaults() *AlertRuleList

NewAlertRuleListWithDefaults instantiates a new AlertRuleList 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 (*AlertRuleList) GetItems

func (o *AlertRuleList) GetItems() []AlertRuleGroup

GetItems returns the Items field value.

func (*AlertRuleList) GetItemsOk

func (o *AlertRuleList) GetItemsOk() (*[]AlertRuleGroup, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (*AlertRuleList) GetPageResult

func (o *AlertRuleList) GetPageResult() PageResult

GetPageResult returns the PageResult field value if set, zero value otherwise.

func (*AlertRuleList) GetPageResultOk

func (o *AlertRuleList) GetPageResultOk() (*PageResult, bool)

GetPageResultOk returns a tuple with the PageResult field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertRuleList) HasPageResult

func (o *AlertRuleList) HasPageResult() bool

HasPageResult returns a boolean if a field has been set.

func (AlertRuleList) MarshalJSON

func (o AlertRuleList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*AlertRuleList) SetItems

func (o *AlertRuleList) SetItems(v []AlertRuleGroup)

SetItems sets field value.

func (*AlertRuleList) SetPageResult

func (o *AlertRuleList) SetPageResult(v PageResult)

SetPageResult gets a reference to the given PageResult and assigns it to the PageResult field.

func (*AlertRuleList) UnmarshalJSON

func (o *AlertRuleList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type AlertSeverity

type AlertSeverity string
const (
	AlertSeverityCritical AlertSeverity = "critical"
	AlertSeverityWarning  AlertSeverity = "warning"
	AlertSeverityInfo     AlertSeverity = "info"
)

List of AlertSeverity.

func NewAlertSeverityFromValue

func NewAlertSeverityFromValue(v string) (*AlertSeverity, error)

NewAlertSeverityFromValue returns a pointer to a valid AlertSeverity for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*AlertSeverity) GetAllowedValues

func (v *AlertSeverity) GetAllowedValues() []AlertSeverity

GetAllowedValues returns the list of possible values.

func (AlertSeverity) IsValid

func (v AlertSeverity) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (AlertSeverity) Ptr

func (v AlertSeverity) Ptr() *AlertSeverity

Ptr returns reference to AlertSeverity value.

func (*AlertSeverity) UnmarshalJSON

func (v *AlertSeverity) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type AlertStatus

type AlertStatus string
const (
	AlertStatusResolved AlertStatus = "resolved"
	AlertStatusFiring   AlertStatus = "firing"
)

List of AlertStatus.

func NewAlertStatusFromValue

func NewAlertStatusFromValue(v string) (*AlertStatus, error)

NewAlertStatusFromValue returns a pointer to a valid AlertStatus for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*AlertStatus) GetAllowedValues

func (v *AlertStatus) GetAllowedValues() []AlertStatus

GetAllowedValues returns the list of possible values.

func (AlertStatus) IsValid

func (v AlertStatus) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (AlertStatus) Ptr

func (v AlertStatus) Ptr() *AlertStatus

Ptr returns reference to AlertStatus value.

func (*AlertStatus) UnmarshalJSON

func (v *AlertStatus) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type AlertStrategy

type AlertStrategy struct {
	Id               *int32                         `json:"id,omitempty"`
	OrgName          *string                        `json:"orgName,omitempty"`
	Name             *string                        `json:"name,omitempty"`
	Description      *string                        `json:"description,omitempty"`
	CreatedAt        *time.Time                     `json:"createdAt,omitempty"`
	UpdatedAt        *time.Time                     `json:"updatedAt,omitempty"`
	ReceiverIds      []int32                        `json:"receiverIds"`
	Receivers        []AlertReceiver                `json:"receivers,omitempty"`
	Envs             []string                       `json:"envs,omitempty"`
	Severities       []string                       `json:"severities,omitempty"`
	Rules            []string                       `json:"rules,omitempty"`
	RuleObjs         []AlertRule                    `json:"ruleObjs,omitempty"`
	Engines          []string                       `json:"engines,omitempty"`
	Clusters         []string                       `json:"clusters,omitempty"`
	Disabled         *bool                          `json:"disabled,omitempty"`
	RepeatInterval   *string                        `json:"repeatInterval,omitempty"`
	MuteTimeInterval *AlertStrategyMuteTimeInterval `json:"muteTimeInterval,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

AlertStrategy Alert strategy information

func NewAlertStrategy

func NewAlertStrategy(receiverIds []int32) *AlertStrategy

NewAlertStrategy instantiates a new AlertStrategy 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 NewAlertStrategyWithDefaults

func NewAlertStrategyWithDefaults() *AlertStrategy

NewAlertStrategyWithDefaults instantiates a new AlertStrategy 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 (*AlertStrategy) GetClusters

func (o *AlertStrategy) GetClusters() []string

GetClusters returns the Clusters field value if set, zero value otherwise.

func (*AlertStrategy) GetClustersOk

func (o *AlertStrategy) GetClustersOk() (*[]string, bool)

GetClustersOk returns a tuple with the Clusters field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertStrategy) GetCreatedAt

func (o *AlertStrategy) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.

func (*AlertStrategy) GetCreatedAtOk

func (o *AlertStrategy) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertStrategy) GetDescription

func (o *AlertStrategy) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*AlertStrategy) GetDescriptionOk

func (o *AlertStrategy) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertStrategy) GetDisabled

func (o *AlertStrategy) GetDisabled() bool

GetDisabled returns the Disabled field value if set, zero value otherwise.

func (*AlertStrategy) GetDisabledOk

func (o *AlertStrategy) GetDisabledOk() (*bool, bool)

GetDisabledOk returns a tuple with the Disabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertStrategy) GetEngines

func (o *AlertStrategy) GetEngines() []string

GetEngines returns the Engines field value if set, zero value otherwise.

func (*AlertStrategy) GetEnginesOk

func (o *AlertStrategy) GetEnginesOk() (*[]string, bool)

GetEnginesOk returns a tuple with the Engines field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertStrategy) GetEnvs

func (o *AlertStrategy) GetEnvs() []string

GetEnvs returns the Envs field value if set, zero value otherwise.

func (*AlertStrategy) GetEnvsOk

func (o *AlertStrategy) GetEnvsOk() (*[]string, bool)

GetEnvsOk returns a tuple with the Envs field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertStrategy) GetId

func (o *AlertStrategy) GetId() int32

GetId returns the Id field value if set, zero value otherwise.

func (*AlertStrategy) GetIdOk

func (o *AlertStrategy) GetIdOk() (*int32, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertStrategy) GetMuteTimeInterval

func (o *AlertStrategy) GetMuteTimeInterval() AlertStrategyMuteTimeInterval

GetMuteTimeInterval returns the MuteTimeInterval field value if set, zero value otherwise.

func (*AlertStrategy) GetMuteTimeIntervalOk

func (o *AlertStrategy) GetMuteTimeIntervalOk() (*AlertStrategyMuteTimeInterval, bool)

GetMuteTimeIntervalOk returns a tuple with the MuteTimeInterval field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertStrategy) GetName

func (o *AlertStrategy) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*AlertStrategy) GetNameOk

func (o *AlertStrategy) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertStrategy) GetOrgName

func (o *AlertStrategy) GetOrgName() string

GetOrgName returns the OrgName field value if set, zero value otherwise.

func (*AlertStrategy) GetOrgNameOk

func (o *AlertStrategy) GetOrgNameOk() (*string, bool)

GetOrgNameOk returns a tuple with the OrgName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertStrategy) GetReceiverIds

func (o *AlertStrategy) GetReceiverIds() []int32

GetReceiverIds returns the ReceiverIds field value.

func (*AlertStrategy) GetReceiverIdsOk

func (o *AlertStrategy) GetReceiverIdsOk() (*[]int32, bool)

GetReceiverIdsOk returns a tuple with the ReceiverIds field value and a boolean to check if the value has been set.

func (*AlertStrategy) GetReceivers

func (o *AlertStrategy) GetReceivers() []AlertReceiver

GetReceivers returns the Receivers field value if set, zero value otherwise.

func (*AlertStrategy) GetReceiversOk

func (o *AlertStrategy) GetReceiversOk() (*[]AlertReceiver, bool)

GetReceiversOk returns a tuple with the Receivers field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertStrategy) GetRepeatInterval

func (o *AlertStrategy) GetRepeatInterval() string

GetRepeatInterval returns the RepeatInterval field value if set, zero value otherwise.

func (*AlertStrategy) GetRepeatIntervalOk

func (o *AlertStrategy) GetRepeatIntervalOk() (*string, bool)

GetRepeatIntervalOk returns a tuple with the RepeatInterval field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertStrategy) GetRuleObjs

func (o *AlertStrategy) GetRuleObjs() []AlertRule

GetRuleObjs returns the RuleObjs field value if set, zero value otherwise.

func (*AlertStrategy) GetRuleObjsOk

func (o *AlertStrategy) GetRuleObjsOk() (*[]AlertRule, bool)

GetRuleObjsOk returns a tuple with the RuleObjs field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertStrategy) GetRules

func (o *AlertStrategy) GetRules() []string

GetRules returns the Rules field value if set, zero value otherwise.

func (*AlertStrategy) GetRulesOk

func (o *AlertStrategy) GetRulesOk() (*[]string, bool)

GetRulesOk returns a tuple with the Rules field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertStrategy) GetSeverities

func (o *AlertStrategy) GetSeverities() []string

GetSeverities returns the Severities field value if set, zero value otherwise.

func (*AlertStrategy) GetSeveritiesOk

func (o *AlertStrategy) GetSeveritiesOk() (*[]string, bool)

GetSeveritiesOk returns a tuple with the Severities field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertStrategy) GetUpdatedAt

func (o *AlertStrategy) GetUpdatedAt() time.Time

GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.

func (*AlertStrategy) GetUpdatedAtOk

func (o *AlertStrategy) GetUpdatedAtOk() (*time.Time, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertStrategy) HasClusters

func (o *AlertStrategy) HasClusters() bool

HasClusters returns a boolean if a field has been set.

func (*AlertStrategy) HasCreatedAt

func (o *AlertStrategy) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*AlertStrategy) HasDescription

func (o *AlertStrategy) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*AlertStrategy) HasDisabled

func (o *AlertStrategy) HasDisabled() bool

HasDisabled returns a boolean if a field has been set.

func (*AlertStrategy) HasEngines

func (o *AlertStrategy) HasEngines() bool

HasEngines returns a boolean if a field has been set.

func (*AlertStrategy) HasEnvs

func (o *AlertStrategy) HasEnvs() bool

HasEnvs returns a boolean if a field has been set.

func (*AlertStrategy) HasId

func (o *AlertStrategy) HasId() bool

HasId returns a boolean if a field has been set.

func (*AlertStrategy) HasMuteTimeInterval

func (o *AlertStrategy) HasMuteTimeInterval() bool

HasMuteTimeInterval returns a boolean if a field has been set.

func (*AlertStrategy) HasName

func (o *AlertStrategy) HasName() bool

HasName returns a boolean if a field has been set.

func (*AlertStrategy) HasOrgName

func (o *AlertStrategy) HasOrgName() bool

HasOrgName returns a boolean if a field has been set.

func (*AlertStrategy) HasReceivers

func (o *AlertStrategy) HasReceivers() bool

HasReceivers returns a boolean if a field has been set.

func (*AlertStrategy) HasRepeatInterval

func (o *AlertStrategy) HasRepeatInterval() bool

HasRepeatInterval returns a boolean if a field has been set.

func (*AlertStrategy) HasRuleObjs

func (o *AlertStrategy) HasRuleObjs() bool

HasRuleObjs returns a boolean if a field has been set.

func (*AlertStrategy) HasRules

func (o *AlertStrategy) HasRules() bool

HasRules returns a boolean if a field has been set.

func (*AlertStrategy) HasSeverities

func (o *AlertStrategy) HasSeverities() bool

HasSeverities returns a boolean if a field has been set.

func (*AlertStrategy) HasUpdatedAt

func (o *AlertStrategy) HasUpdatedAt() bool

HasUpdatedAt returns a boolean if a field has been set.

func (AlertStrategy) MarshalJSON

func (o AlertStrategy) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*AlertStrategy) SetClusters

func (o *AlertStrategy) SetClusters(v []string)

SetClusters gets a reference to the given []string and assigns it to the Clusters field.

func (*AlertStrategy) SetCreatedAt

func (o *AlertStrategy) SetCreatedAt(v time.Time)

SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.

func (*AlertStrategy) SetDescription

func (o *AlertStrategy) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*AlertStrategy) SetDisabled

func (o *AlertStrategy) SetDisabled(v bool)

SetDisabled gets a reference to the given bool and assigns it to the Disabled field.

func (*AlertStrategy) SetEngines

func (o *AlertStrategy) SetEngines(v []string)

SetEngines gets a reference to the given []string and assigns it to the Engines field.

func (*AlertStrategy) SetEnvs

func (o *AlertStrategy) SetEnvs(v []string)

SetEnvs gets a reference to the given []string and assigns it to the Envs field.

func (*AlertStrategy) SetId

func (o *AlertStrategy) SetId(v int32)

SetId gets a reference to the given int32 and assigns it to the Id field.

func (*AlertStrategy) SetMuteTimeInterval

func (o *AlertStrategy) SetMuteTimeInterval(v AlertStrategyMuteTimeInterval)

SetMuteTimeInterval gets a reference to the given AlertStrategyMuteTimeInterval and assigns it to the MuteTimeInterval field.

func (*AlertStrategy) SetName

func (o *AlertStrategy) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*AlertStrategy) SetOrgName

func (o *AlertStrategy) SetOrgName(v string)

SetOrgName gets a reference to the given string and assigns it to the OrgName field.

func (*AlertStrategy) SetReceiverIds

func (o *AlertStrategy) SetReceiverIds(v []int32)

SetReceiverIds sets field value.

func (*AlertStrategy) SetReceivers

func (o *AlertStrategy) SetReceivers(v []AlertReceiver)

SetReceivers gets a reference to the given []AlertReceiver and assigns it to the Receivers field.

func (*AlertStrategy) SetRepeatInterval

func (o *AlertStrategy) SetRepeatInterval(v string)

SetRepeatInterval gets a reference to the given string and assigns it to the RepeatInterval field.

func (*AlertStrategy) SetRuleObjs

func (o *AlertStrategy) SetRuleObjs(v []AlertRule)

SetRuleObjs gets a reference to the given []AlertRule and assigns it to the RuleObjs field.

func (*AlertStrategy) SetRules

func (o *AlertStrategy) SetRules(v []string)

SetRules gets a reference to the given []string and assigns it to the Rules field.

func (*AlertStrategy) SetSeverities

func (o *AlertStrategy) SetSeverities(v []string)

SetSeverities gets a reference to the given []string and assigns it to the Severities field.

func (*AlertStrategy) SetUpdatedAt

func (o *AlertStrategy) SetUpdatedAt(v time.Time)

SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field.

func (*AlertStrategy) UnmarshalJSON

func (o *AlertStrategy) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type AlertStrategyApi

type AlertStrategyApi common.Service

AlertStrategyApi service type

func NewAlertStrategyApi

func NewAlertStrategyApi(client *common.APIClient) *AlertStrategyApi

NewAlertStrategyApi Returns NewAlertStrategyApi.

func (*AlertStrategyApi) CreateAlertStrategy

func (a *AlertStrategyApi) CreateAlertStrategy(ctx _context.Context, orgName string, body AlertStrategy) (AlertStrategy, *_nethttp.Response, error)

CreateAlertStrategy Create alert strategy.

func (*AlertStrategyApi) DeleteAlertStrategy

func (a *AlertStrategyApi) DeleteAlertStrategy(ctx _context.Context, orgName string, strategyId string) (interface{}, *_nethttp.Response, error)

DeleteAlertStrategy Delete alert strategy.

func (*AlertStrategyApi) ListAlertStrategies

func (a *AlertStrategyApi) ListAlertStrategies(ctx _context.Context, orgName string) (AlertStrategyList, *_nethttp.Response, error)

ListAlertStrategies List alert strategies.

func (*AlertStrategyApi) PatchAlertStrategy

func (a *AlertStrategyApi) PatchAlertStrategy(ctx _context.Context, orgName string, body AlertStrategy) (interface{}, *_nethttp.Response, error)

PatchAlertStrategy Update alert strategy.

func (*AlertStrategyApi) UpdateAlertStrategy

func (a *AlertStrategyApi) UpdateAlertStrategy(ctx _context.Context, orgName string, strategyId string, body AlertStrategy) (interface{}, *_nethttp.Response, error)

UpdateAlertStrategy Update alert strategy.

type AlertStrategyList

type AlertStrategyList struct {
	// Items is the list of alert strategy objects in the list
	Items []AlertStrategy `json:"items"`
	// PageResult info
	PageResult *PageResult `json:"pageResult,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

AlertStrategyList AlertStrategyList is a list of alert strategies

func NewAlertStrategyList

func NewAlertStrategyList(items []AlertStrategy) *AlertStrategyList

NewAlertStrategyList instantiates a new AlertStrategyList 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 NewAlertStrategyListWithDefaults

func NewAlertStrategyListWithDefaults() *AlertStrategyList

NewAlertStrategyListWithDefaults instantiates a new AlertStrategyList 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 (*AlertStrategyList) GetItems

func (o *AlertStrategyList) GetItems() []AlertStrategy

GetItems returns the Items field value.

func (*AlertStrategyList) GetItemsOk

func (o *AlertStrategyList) GetItemsOk() (*[]AlertStrategy, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (*AlertStrategyList) GetPageResult

func (o *AlertStrategyList) GetPageResult() PageResult

GetPageResult returns the PageResult field value if set, zero value otherwise.

func (*AlertStrategyList) GetPageResultOk

func (o *AlertStrategyList) GetPageResultOk() (*PageResult, bool)

GetPageResultOk returns a tuple with the PageResult field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertStrategyList) HasPageResult

func (o *AlertStrategyList) HasPageResult() bool

HasPageResult returns a boolean if a field has been set.

func (AlertStrategyList) MarshalJSON

func (o AlertStrategyList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*AlertStrategyList) SetItems

func (o *AlertStrategyList) SetItems(v []AlertStrategy)

SetItems sets field value.

func (*AlertStrategyList) SetPageResult

func (o *AlertStrategyList) SetPageResult(v PageResult)

SetPageResult gets a reference to the given PageResult and assigns it to the PageResult field.

func (*AlertStrategyList) UnmarshalJSON

func (o *AlertStrategyList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type AlertStrategyMuteTimeInterval

type AlertStrategyMuteTimeInterval struct {
	Weekdays []int32                             `json:"weekdays,omitempty"`
	Times    *AlertStrategyMuteTimeIntervalTimes `json:"times,omitempty"`
	// Only mute once for `onceMinutes` minutes
	OnceMinutes *int32 `json:"onceMinutes,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewAlertStrategyMuteTimeInterval

func NewAlertStrategyMuteTimeInterval() *AlertStrategyMuteTimeInterval

NewAlertStrategyMuteTimeInterval instantiates a new AlertStrategyMuteTimeInterval 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 NewAlertStrategyMuteTimeIntervalWithDefaults

func NewAlertStrategyMuteTimeIntervalWithDefaults() *AlertStrategyMuteTimeInterval

NewAlertStrategyMuteTimeIntervalWithDefaults instantiates a new AlertStrategyMuteTimeInterval 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 (*AlertStrategyMuteTimeInterval) GetOnceMinutes

func (o *AlertStrategyMuteTimeInterval) GetOnceMinutes() int32

GetOnceMinutes returns the OnceMinutes field value if set, zero value otherwise.

func (*AlertStrategyMuteTimeInterval) GetOnceMinutesOk

func (o *AlertStrategyMuteTimeInterval) GetOnceMinutesOk() (*int32, bool)

GetOnceMinutesOk returns a tuple with the OnceMinutes field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertStrategyMuteTimeInterval) GetTimes

GetTimes returns the Times field value if set, zero value otherwise.

func (*AlertStrategyMuteTimeInterval) GetTimesOk

GetTimesOk returns a tuple with the Times field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertStrategyMuteTimeInterval) GetWeekdays

func (o *AlertStrategyMuteTimeInterval) GetWeekdays() []int32

GetWeekdays returns the Weekdays field value if set, zero value otherwise.

func (*AlertStrategyMuteTimeInterval) GetWeekdaysOk

func (o *AlertStrategyMuteTimeInterval) GetWeekdaysOk() (*[]int32, bool)

GetWeekdaysOk returns a tuple with the Weekdays field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertStrategyMuteTimeInterval) HasOnceMinutes

func (o *AlertStrategyMuteTimeInterval) HasOnceMinutes() bool

HasOnceMinutes returns a boolean if a field has been set.

func (*AlertStrategyMuteTimeInterval) HasTimes

func (o *AlertStrategyMuteTimeInterval) HasTimes() bool

HasTimes returns a boolean if a field has been set.

func (*AlertStrategyMuteTimeInterval) HasWeekdays

func (o *AlertStrategyMuteTimeInterval) HasWeekdays() bool

HasWeekdays returns a boolean if a field has been set.

func (AlertStrategyMuteTimeInterval) MarshalJSON

func (o AlertStrategyMuteTimeInterval) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*AlertStrategyMuteTimeInterval) SetOnceMinutes

func (o *AlertStrategyMuteTimeInterval) SetOnceMinutes(v int32)

SetOnceMinutes gets a reference to the given int32 and assigns it to the OnceMinutes field.

func (*AlertStrategyMuteTimeInterval) SetTimes

SetTimes gets a reference to the given AlertStrategyMuteTimeIntervalTimes and assigns it to the Times field.

func (*AlertStrategyMuteTimeInterval) SetWeekdays

func (o *AlertStrategyMuteTimeInterval) SetWeekdays(v []int32)

SetWeekdays gets a reference to the given []int32 and assigns it to the Weekdays field.

func (*AlertStrategyMuteTimeInterval) UnmarshalJSON

func (o *AlertStrategyMuteTimeInterval) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type AlertStrategyMuteTimeIntervalTimes

type AlertStrategyMuteTimeIntervalTimes struct {
	// Mute start time, e.g. '17:00', should be in UTC time.
	StartTime *string `json:"startTime,omitempty"`
	// Mute end time, e.g. '24:00', should be in UTC time.
	EndTime *string `json:"endTime,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewAlertStrategyMuteTimeIntervalTimes

func NewAlertStrategyMuteTimeIntervalTimes() *AlertStrategyMuteTimeIntervalTimes

NewAlertStrategyMuteTimeIntervalTimes instantiates a new AlertStrategyMuteTimeIntervalTimes 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 NewAlertStrategyMuteTimeIntervalTimesWithDefaults

func NewAlertStrategyMuteTimeIntervalTimesWithDefaults() *AlertStrategyMuteTimeIntervalTimes

NewAlertStrategyMuteTimeIntervalTimesWithDefaults instantiates a new AlertStrategyMuteTimeIntervalTimes 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 (*AlertStrategyMuteTimeIntervalTimes) GetEndTime

GetEndTime returns the EndTime field value if set, zero value otherwise.

func (*AlertStrategyMuteTimeIntervalTimes) GetEndTimeOk

func (o *AlertStrategyMuteTimeIntervalTimes) GetEndTimeOk() (*string, bool)

GetEndTimeOk returns a tuple with the EndTime field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertStrategyMuteTimeIntervalTimes) GetStartTime

func (o *AlertStrategyMuteTimeIntervalTimes) GetStartTime() string

GetStartTime returns the StartTime field value if set, zero value otherwise.

func (*AlertStrategyMuteTimeIntervalTimes) GetStartTimeOk

func (o *AlertStrategyMuteTimeIntervalTimes) GetStartTimeOk() (*string, bool)

GetStartTimeOk returns a tuple with the StartTime field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlertStrategyMuteTimeIntervalTimes) HasEndTime

func (o *AlertStrategyMuteTimeIntervalTimes) HasEndTime() bool

HasEndTime returns a boolean if a field has been set.

func (*AlertStrategyMuteTimeIntervalTimes) HasStartTime

func (o *AlertStrategyMuteTimeIntervalTimes) HasStartTime() bool

HasStartTime returns a boolean if a field has been set.

func (AlertStrategyMuteTimeIntervalTimes) MarshalJSON

func (o AlertStrategyMuteTimeIntervalTimes) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*AlertStrategyMuteTimeIntervalTimes) SetEndTime

func (o *AlertStrategyMuteTimeIntervalTimes) SetEndTime(v string)

SetEndTime gets a reference to the given string and assigns it to the EndTime field.

func (*AlertStrategyMuteTimeIntervalTimes) SetStartTime

func (o *AlertStrategyMuteTimeIntervalTimes) SetStartTime(v string)

SetStartTime gets a reference to the given string and assigns it to the StartTime field.

func (*AlertStrategyMuteTimeIntervalTimes) UnmarshalJSON

func (o *AlertStrategyMuteTimeIntervalTimes) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type AnalysisResult

type AnalysisResult struct {
	Explanation *string `json:"explanation,omitempty"`
	Error       *string `json:"error,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewAnalysisResult

func NewAnalysisResult() *AnalysisResult

NewAnalysisResult instantiates a new AnalysisResult 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 NewAnalysisResultWithDefaults

func NewAnalysisResultWithDefaults() *AnalysisResult

NewAnalysisResultWithDefaults instantiates a new AnalysisResult 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 (*AnalysisResult) GetError

func (o *AnalysisResult) GetError() string

GetError returns the Error field value if set, zero value otherwise.

func (*AnalysisResult) GetErrorOk

func (o *AnalysisResult) GetErrorOk() (*string, bool)

GetErrorOk returns a tuple with the Error field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AnalysisResult) GetExplanation

func (o *AnalysisResult) GetExplanation() string

GetExplanation returns the Explanation field value if set, zero value otherwise.

func (*AnalysisResult) GetExplanationOk

func (o *AnalysisResult) GetExplanationOk() (*string, bool)

GetExplanationOk returns a tuple with the Explanation field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AnalysisResult) HasError

func (o *AnalysisResult) HasError() bool

HasError returns a boolean if a field has been set.

func (*AnalysisResult) HasExplanation

func (o *AnalysisResult) HasExplanation() bool

HasExplanation returns a boolean if a field has been set.

func (AnalysisResult) MarshalJSON

func (o AnalysisResult) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*AnalysisResult) SetError

func (o *AnalysisResult) SetError(v string)

SetError gets a reference to the given string and assigns it to the Error field.

func (*AnalysisResult) SetExplanation

func (o *AnalysisResult) SetExplanation(v string)

SetExplanation gets a reference to the given string and assigns it to the Explanation field.

func (*AnalysisResult) UnmarshalJSON

func (o *AnalysisResult) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type AnalyzeApi

type AnalyzeApi common.Service

AnalyzeApi service type

func NewAnalyzeApi

func NewAnalyzeApi(client *common.APIClient) *AnalyzeApi

NewAnalyzeApi Returns NewAnalyzeApi.

func (*AnalyzeApi) AnalyzeBackup

func (a *AnalyzeApi) AnalyzeBackup(ctx _context.Context, orgName string, backupId string) (AnalysisResult, *_nethttp.Response, error)

AnalyzeBackup Analyze backup.

func (*AnalyzeApi) AnalyzeClusterParam

func (a *AnalyzeApi) AnalyzeClusterParam(ctx _context.Context, orgName string, clusterName string, parameterName string, o ...AnalyzeClusterParamOptionalParameters) (AnalysisResult, *_nethttp.Response, error)

AnalyzeClusterParam Analyze cluster parameter.

func (*AnalyzeApi) AnalyzeClusterRestore

func (a *AnalyzeApi) AnalyzeClusterRestore(ctx _context.Context, orgName string, clusterName string) (AnalysisResult, *_nethttp.Response, error)

AnalyzeClusterRestore Analyze cluster restore tasks.

func (*AnalyzeApi) AnalyzeLogs

func (a *AnalyzeApi) AnalyzeLogs(ctx _context.Context, orgName string, clusterName string, startTime string, endTime string, o ...AnalyzeLogsOptionalParameters) (AnalysisResult, *_nethttp.Response, error)

AnalyzeLogs Analyze cluster error logs. Analyze error logs of a cluster

func (*AnalyzeApi) AnalyzeOps

func (a *AnalyzeApi) AnalyzeOps(ctx _context.Context, orgName string, opsName string, clusterName string, opsType string) (AnalysisResult, *_nethttp.Response, error)

AnalyzeOps Analyze OpsRequest. analyze a OpsRequest

func (*AnalyzeApi) AnalyzeParam

func (a *AnalyzeApi) AnalyzeParam(ctx _context.Context, paramTplName string, parameterName string, o ...AnalyzeParamOptionalParameters) (AnalysisResult, *_nethttp.Response, error)

AnalyzeParam Analyze parameter.

func (*AnalyzeApi) AnalyzeService

func (a *AnalyzeApi) AnalyzeService(ctx _context.Context, orgName string, clusterName string, serviceName string, o ...AnalyzeServiceOptionalParameters) (AnalysisResult, *_nethttp.Response, error)

AnalyzeService Analyze service.

func (*AnalyzeApi) AnalyzeSlowLogs

func (a *AnalyzeApi) AnalyzeSlowLogs(ctx _context.Context, orgName string, clusterName string, o ...AnalyzeSlowLogsOptionalParameters) (AnalysisResult, *_nethttp.Response, error)

AnalyzeSlowLogs Analyze cluster slow logs. Analyze slow logs of a cluster

func (*AnalyzeApi) AnalyzeView

func (a *AnalyzeApi) AnalyzeView(ctx _context.Context, orgName string, clusterName string) (AnalysisResult, *_nethttp.Response, error)

AnalyzeView Analyze cluster view.

type AnalyzeClusterParamOptionalParameters

type AnalyzeClusterParamOptionalParameters struct {
	ParameterValue *string
}

AnalyzeClusterParamOptionalParameters holds optional parameters for AnalyzeClusterParam.

func NewAnalyzeClusterParamOptionalParameters

func NewAnalyzeClusterParamOptionalParameters() *AnalyzeClusterParamOptionalParameters

NewAnalyzeClusterParamOptionalParameters creates an empty struct for parameters.

func (*AnalyzeClusterParamOptionalParameters) WithParameterValue

WithParameterValue sets the corresponding parameter name and returns the struct.

type AnalyzeLogsOptionalParameters

type AnalyzeLogsOptionalParameters struct {
	ComponentName *string
	InstanceName  *string
	Limit         *string
	SortType      *SortType
}

AnalyzeLogsOptionalParameters holds optional parameters for AnalyzeLogs.

func NewAnalyzeLogsOptionalParameters

func NewAnalyzeLogsOptionalParameters() *AnalyzeLogsOptionalParameters

NewAnalyzeLogsOptionalParameters creates an empty struct for parameters.

func (*AnalyzeLogsOptionalParameters) WithComponentName

func (r *AnalyzeLogsOptionalParameters) WithComponentName(componentName string) *AnalyzeLogsOptionalParameters

WithComponentName sets the corresponding parameter name and returns the struct.

func (*AnalyzeLogsOptionalParameters) WithInstanceName

func (r *AnalyzeLogsOptionalParameters) WithInstanceName(instanceName string) *AnalyzeLogsOptionalParameters

WithInstanceName sets the corresponding parameter name and returns the struct.

func (*AnalyzeLogsOptionalParameters) WithLimit

WithLimit sets the corresponding parameter name and returns the struct.

func (*AnalyzeLogsOptionalParameters) WithSortType

WithSortType sets the corresponding parameter name and returns the struct.

type AnalyzeParamOptionalParameters

type AnalyzeParamOptionalParameters struct {
	OrgName   *string
	Partition *ParamTplPartition
}

AnalyzeParamOptionalParameters holds optional parameters for AnalyzeParam.

func NewAnalyzeParamOptionalParameters

func NewAnalyzeParamOptionalParameters() *AnalyzeParamOptionalParameters

NewAnalyzeParamOptionalParameters creates an empty struct for parameters.

func (*AnalyzeParamOptionalParameters) WithOrgName

WithOrgName sets the corresponding parameter name and returns the struct.

func (*AnalyzeParamOptionalParameters) WithPartition

WithPartition sets the corresponding parameter name and returns the struct.

type AnalyzeServiceOptionalParameters

type AnalyzeServiceOptionalParameters struct {
	PortName  *string
	Endpoints *string
}

AnalyzeServiceOptionalParameters holds optional parameters for AnalyzeService.

func NewAnalyzeServiceOptionalParameters

func NewAnalyzeServiceOptionalParameters() *AnalyzeServiceOptionalParameters

NewAnalyzeServiceOptionalParameters creates an empty struct for parameters.

func (*AnalyzeServiceOptionalParameters) WithEndpoints

WithEndpoints sets the corresponding parameter name and returns the struct.

func (*AnalyzeServiceOptionalParameters) WithPortName

WithPortName sets the corresponding parameter name and returns the struct.

type AnalyzeSlowLogsOptionalParameters

type AnalyzeSlowLogsOptionalParameters struct {
	Body *ClusterExecutionLog
}

AnalyzeSlowLogsOptionalParameters holds optional parameters for AnalyzeSlowLogs.

func NewAnalyzeSlowLogsOptionalParameters

func NewAnalyzeSlowLogsOptionalParameters() *AnalyzeSlowLogsOptionalParameters

NewAnalyzeSlowLogsOptionalParameters creates an empty struct for parameters.

func (*AnalyzeSlowLogsOptionalParameters) WithBody

WithBody sets the corresponding parameter name and returns the struct.

type Apikey

type Apikey struct {
	// The name of the APIKey
	AccessKey string `json:"accessKey"`
	// The description for APIKey
	Description string `json:"description"`
	// The expired time of APIKey, return empty without setting duration
	ExpiredAt time.Time `json:"expiredAt"`
	// The create time of APIKey
	CreateAt time.Time `json:"createAt"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

Apikey APIKey is the key for API access

func NewApikey

func NewApikey(accessKey string, description string, expiredAt time.Time, createAt time.Time) *Apikey

NewApikey instantiates a new Apikey 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 NewApikeyWithDefaults

func NewApikeyWithDefaults() *Apikey

NewApikeyWithDefaults instantiates a new Apikey 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 (*Apikey) GetAccessKey

func (o *Apikey) GetAccessKey() string

GetAccessKey returns the AccessKey field value.

func (*Apikey) GetAccessKeyOk

func (o *Apikey) GetAccessKeyOk() (*string, bool)

GetAccessKeyOk returns a tuple with the AccessKey field value and a boolean to check if the value has been set.

func (*Apikey) GetCreateAt

func (o *Apikey) GetCreateAt() time.Time

GetCreateAt returns the CreateAt field value.

func (*Apikey) GetCreateAtOk

func (o *Apikey) GetCreateAtOk() (*time.Time, bool)

GetCreateAtOk returns a tuple with the CreateAt field value and a boolean to check if the value has been set.

func (*Apikey) GetDescription

func (o *Apikey) GetDescription() string

GetDescription returns the Description field value.

func (*Apikey) GetDescriptionOk

func (o *Apikey) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.

func (*Apikey) GetExpiredAt

func (o *Apikey) GetExpiredAt() time.Time

GetExpiredAt returns the ExpiredAt field value.

func (*Apikey) GetExpiredAtOk

func (o *Apikey) GetExpiredAtOk() (*time.Time, bool)

GetExpiredAtOk returns a tuple with the ExpiredAt field value and a boolean to check if the value has been set.

func (Apikey) MarshalJSON

func (o Apikey) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*Apikey) SetAccessKey

func (o *Apikey) SetAccessKey(v string)

SetAccessKey sets field value.

func (*Apikey) SetCreateAt

func (o *Apikey) SetCreateAt(v time.Time)

SetCreateAt sets field value.

func (*Apikey) SetDescription

func (o *Apikey) SetDescription(v string)

SetDescription sets field value.

func (*Apikey) SetExpiredAt

func (o *Apikey) SetExpiredAt(v time.Time)

SetExpiredAt sets field value.

func (*Apikey) UnmarshalJSON

func (o *Apikey) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ApikeyCreate

type ApikeyCreate struct {
	// The description of the APIKey
	Description string `json:"description"`
	// The expired time of the APIKey
	ExpiredAt time.Time `json:"expiredAt"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ApikeyCreate APIKeyCreate is the payload for creating an APIKey

func NewApikeyCreate

func NewApikeyCreate(description string, expiredAt time.Time) *ApikeyCreate

NewApikeyCreate instantiates a new ApikeyCreate 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 NewApikeyCreateWithDefaults

func NewApikeyCreateWithDefaults() *ApikeyCreate

NewApikeyCreateWithDefaults instantiates a new ApikeyCreate 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 (*ApikeyCreate) GetDescription

func (o *ApikeyCreate) GetDescription() string

GetDescription returns the Description field value.

func (*ApikeyCreate) GetDescriptionOk

func (o *ApikeyCreate) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.

func (*ApikeyCreate) GetExpiredAt

func (o *ApikeyCreate) GetExpiredAt() time.Time

GetExpiredAt returns the ExpiredAt field value.

func (*ApikeyCreate) GetExpiredAtOk

func (o *ApikeyCreate) GetExpiredAtOk() (*time.Time, bool)

GetExpiredAtOk returns a tuple with the ExpiredAt field value and a boolean to check if the value has been set.

func (ApikeyCreate) MarshalJSON

func (o ApikeyCreate) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ApikeyCreate) SetDescription

func (o *ApikeyCreate) SetDescription(v string)

SetDescription sets field value.

func (*ApikeyCreate) SetExpiredAt

func (o *ApikeyCreate) SetExpiredAt(v time.Time)

SetExpiredAt sets field value.

func (*ApikeyCreate) UnmarshalJSON

func (o *ApikeyCreate) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ApikeyList

type ApikeyList struct {
	// Items is the list of APIKey objects in the list
	Items []Apikey `json:"items"`
	// PageResult info
	PageResult *PageResult `json:"pageResult,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ApikeyList APIKeys is a list of APIKey objects

func NewApikeyList

func NewApikeyList(items []Apikey) *ApikeyList

NewApikeyList instantiates a new ApikeyList 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 NewApikeyListWithDefaults

func NewApikeyListWithDefaults() *ApikeyList

NewApikeyListWithDefaults instantiates a new ApikeyList 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 (*ApikeyList) GetItems

func (o *ApikeyList) GetItems() []Apikey

GetItems returns the Items field value.

func (*ApikeyList) GetItemsOk

func (o *ApikeyList) GetItemsOk() (*[]Apikey, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (*ApikeyList) GetPageResult

func (o *ApikeyList) GetPageResult() PageResult

GetPageResult returns the PageResult field value if set, zero value otherwise.

func (*ApikeyList) GetPageResultOk

func (o *ApikeyList) GetPageResultOk() (*PageResult, bool)

GetPageResultOk returns a tuple with the PageResult field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ApikeyList) HasPageResult

func (o *ApikeyList) HasPageResult() bool

HasPageResult returns a boolean if a field has been set.

func (ApikeyList) MarshalJSON

func (o ApikeyList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ApikeyList) SetItems

func (o *ApikeyList) SetItems(v []Apikey)

SetItems sets field value.

func (*ApikeyList) SetPageResult

func (o *ApikeyList) SetPageResult(v PageResult)

SetPageResult gets a reference to the given PageResult and assigns it to the PageResult field.

func (*ApikeyList) UnmarshalJSON

func (o *ApikeyList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ApikeyWithSK

type ApikeyWithSK struct {
	// The accessKey of the APIKey
	AccessKey string `json:"accessKey"`
	// The secretKey of the APIKey
	SecretKey string `json:"secretKey"`
	// The description of the APIKey
	Description string `json:"description"`
	// The expired time of APIKey
	ExpiredAt time.Time `json:"expiredAt"`
	// The create time of APIKey
	CreateAt time.Time `json:"createAt"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ApikeyWithSK APIKeyWithSK is the response for creating an APIKey

func NewApikeyWithSK

func NewApikeyWithSK(accessKey string, secretKey string, description string, expiredAt time.Time, createAt time.Time) *ApikeyWithSK

NewApikeyWithSK instantiates a new ApikeyWithSK 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 NewApikeyWithSKWithDefaults

func NewApikeyWithSKWithDefaults() *ApikeyWithSK

NewApikeyWithSKWithDefaults instantiates a new ApikeyWithSK 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 (*ApikeyWithSK) GetAccessKey

func (o *ApikeyWithSK) GetAccessKey() string

GetAccessKey returns the AccessKey field value.

func (*ApikeyWithSK) GetAccessKeyOk

func (o *ApikeyWithSK) GetAccessKeyOk() (*string, bool)

GetAccessKeyOk returns a tuple with the AccessKey field value and a boolean to check if the value has been set.

func (*ApikeyWithSK) GetCreateAt

func (o *ApikeyWithSK) GetCreateAt() time.Time

GetCreateAt returns the CreateAt field value.

func (*ApikeyWithSK) GetCreateAtOk

func (o *ApikeyWithSK) GetCreateAtOk() (*time.Time, bool)

GetCreateAtOk returns a tuple with the CreateAt field value and a boolean to check if the value has been set.

func (*ApikeyWithSK) GetDescription

func (o *ApikeyWithSK) GetDescription() string

GetDescription returns the Description field value.

func (*ApikeyWithSK) GetDescriptionOk

func (o *ApikeyWithSK) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.

func (*ApikeyWithSK) GetExpiredAt

func (o *ApikeyWithSK) GetExpiredAt() time.Time

GetExpiredAt returns the ExpiredAt field value.

func (*ApikeyWithSK) GetExpiredAtOk

func (o *ApikeyWithSK) GetExpiredAtOk() (*time.Time, bool)

GetExpiredAtOk returns a tuple with the ExpiredAt field value and a boolean to check if the value has been set.

func (*ApikeyWithSK) GetSecretKey

func (o *ApikeyWithSK) GetSecretKey() string

GetSecretKey returns the SecretKey field value.

func (*ApikeyWithSK) GetSecretKeyOk

func (o *ApikeyWithSK) GetSecretKeyOk() (*string, bool)

GetSecretKeyOk returns a tuple with the SecretKey field value and a boolean to check if the value has been set.

func (ApikeyWithSK) MarshalJSON

func (o ApikeyWithSK) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ApikeyWithSK) SetAccessKey

func (o *ApikeyWithSK) SetAccessKey(v string)

SetAccessKey sets field value.

func (*ApikeyWithSK) SetCreateAt

func (o *ApikeyWithSK) SetCreateAt(v time.Time)

SetCreateAt sets field value.

func (*ApikeyWithSK) SetDescription

func (o *ApikeyWithSK) SetDescription(v string)

SetDescription sets field value.

func (*ApikeyWithSK) SetExpiredAt

func (o *ApikeyWithSK) SetExpiredAt(v time.Time)

SetExpiredAt sets field value.

func (*ApikeyWithSK) SetSecretKey

func (o *ApikeyWithSK) SetSecretKey(v string)

SetSecretKey sets field value.

func (*ApikeyWithSK) UnmarshalJSON

func (o *ApikeyWithSK) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type AutoInspection

type AutoInspection struct {
	Id        *int32     `json:"id,omitempty"`
	OrgName   *string    `json:"orgName,omitempty"`
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
	CreatedAt *time.Time `json:"createdAt,omitempty"`
	Creator   *string    `json:"creator,omitempty"`
	Schedule  *string    `json:"schedule,omitempty"`
	// Specifies the unit of time for the auto inspection schedule.
	RunEvery    *AutoInspectionRunUnit `json:"runEvery,omitempty"`
	DaysOfWeek  []int32                `json:"daysOfWeek,omitempty"`
	DaysOfMonth []int32                `json:"daysOfMonth,omitempty"`
	Hour        *int32                 `json:"hour,omitempty"`
	Minute      *int32                 `json:"minute,omitempty"`
	SavedDays   *int32                 `json:"savedDays,omitempty"`
	NextRunTime *time.Time             `json:"nextRunTime,omitempty"`
	Enabled     *bool                  `json:"enabled,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewAutoInspection

func NewAutoInspection() *AutoInspection

NewAutoInspection instantiates a new AutoInspection 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 NewAutoInspectionWithDefaults

func NewAutoInspectionWithDefaults() *AutoInspection

NewAutoInspectionWithDefaults instantiates a new AutoInspection 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 (*AutoInspection) GetCreatedAt

func (o *AutoInspection) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.

func (*AutoInspection) GetCreatedAtOk

func (o *AutoInspection) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AutoInspection) GetCreator

func (o *AutoInspection) GetCreator() string

GetCreator returns the Creator field value if set, zero value otherwise.

func (*AutoInspection) GetCreatorOk

func (o *AutoInspection) GetCreatorOk() (*string, bool)

GetCreatorOk returns a tuple with the Creator field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AutoInspection) GetDaysOfMonth

func (o *AutoInspection) GetDaysOfMonth() []int32

GetDaysOfMonth returns the DaysOfMonth field value if set, zero value otherwise.

func (*AutoInspection) GetDaysOfMonthOk

func (o *AutoInspection) GetDaysOfMonthOk() (*[]int32, bool)

GetDaysOfMonthOk returns a tuple with the DaysOfMonth field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AutoInspection) GetDaysOfWeek

func (o *AutoInspection) GetDaysOfWeek() []int32

GetDaysOfWeek returns the DaysOfWeek field value if set, zero value otherwise.

func (*AutoInspection) GetDaysOfWeekOk

func (o *AutoInspection) GetDaysOfWeekOk() (*[]int32, bool)

GetDaysOfWeekOk returns a tuple with the DaysOfWeek field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AutoInspection) GetEnabled

func (o *AutoInspection) GetEnabled() bool

GetEnabled returns the Enabled field value if set, zero value otherwise.

func (*AutoInspection) GetEnabledOk

func (o *AutoInspection) GetEnabledOk() (*bool, bool)

GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AutoInspection) GetHour

func (o *AutoInspection) GetHour() int32

GetHour returns the Hour field value if set, zero value otherwise.

func (*AutoInspection) GetHourOk

func (o *AutoInspection) GetHourOk() (*int32, bool)

GetHourOk returns a tuple with the Hour field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AutoInspection) GetId

func (o *AutoInspection) GetId() int32

GetId returns the Id field value if set, zero value otherwise.

func (*AutoInspection) GetIdOk

func (o *AutoInspection) GetIdOk() (*int32, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AutoInspection) GetMinute

func (o *AutoInspection) GetMinute() int32

GetMinute returns the Minute field value if set, zero value otherwise.

func (*AutoInspection) GetMinuteOk

func (o *AutoInspection) GetMinuteOk() (*int32, bool)

GetMinuteOk returns a tuple with the Minute field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AutoInspection) GetNextRunTime

func (o *AutoInspection) GetNextRunTime() time.Time

GetNextRunTime returns the NextRunTime field value if set, zero value otherwise.

func (*AutoInspection) GetNextRunTimeOk

func (o *AutoInspection) GetNextRunTimeOk() (*time.Time, bool)

GetNextRunTimeOk returns a tuple with the NextRunTime field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AutoInspection) GetOrgName

func (o *AutoInspection) GetOrgName() string

GetOrgName returns the OrgName field value if set, zero value otherwise.

func (*AutoInspection) GetOrgNameOk

func (o *AutoInspection) GetOrgNameOk() (*string, bool)

GetOrgNameOk returns a tuple with the OrgName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AutoInspection) GetRunEvery

func (o *AutoInspection) GetRunEvery() AutoInspectionRunUnit

GetRunEvery returns the RunEvery field value if set, zero value otherwise.

func (*AutoInspection) GetRunEveryOk

func (o *AutoInspection) GetRunEveryOk() (*AutoInspectionRunUnit, bool)

GetRunEveryOk returns a tuple with the RunEvery field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AutoInspection) GetSavedDays

func (o *AutoInspection) GetSavedDays() int32

GetSavedDays returns the SavedDays field value if set, zero value otherwise.

func (*AutoInspection) GetSavedDaysOk

func (o *AutoInspection) GetSavedDaysOk() (*int32, bool)

GetSavedDaysOk returns a tuple with the SavedDays field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AutoInspection) GetSchedule

func (o *AutoInspection) GetSchedule() string

GetSchedule returns the Schedule field value if set, zero value otherwise.

func (*AutoInspection) GetScheduleOk

func (o *AutoInspection) GetScheduleOk() (*string, bool)

GetScheduleOk returns a tuple with the Schedule field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AutoInspection) GetUpdatedAt

func (o *AutoInspection) GetUpdatedAt() time.Time

GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.

func (*AutoInspection) GetUpdatedAtOk

func (o *AutoInspection) GetUpdatedAtOk() (*time.Time, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AutoInspection) HasCreatedAt

func (o *AutoInspection) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*AutoInspection) HasCreator

func (o *AutoInspection) HasCreator() bool

HasCreator returns a boolean if a field has been set.

func (*AutoInspection) HasDaysOfMonth

func (o *AutoInspection) HasDaysOfMonth() bool

HasDaysOfMonth returns a boolean if a field has been set.

func (*AutoInspection) HasDaysOfWeek

func (o *AutoInspection) HasDaysOfWeek() bool

HasDaysOfWeek returns a boolean if a field has been set.

func (*AutoInspection) HasEnabled

func (o *AutoInspection) HasEnabled() bool

HasEnabled returns a boolean if a field has been set.

func (*AutoInspection) HasHour

func (o *AutoInspection) HasHour() bool

HasHour returns a boolean if a field has been set.

func (*AutoInspection) HasId

func (o *AutoInspection) HasId() bool

HasId returns a boolean if a field has been set.

func (*AutoInspection) HasMinute

func (o *AutoInspection) HasMinute() bool

HasMinute returns a boolean if a field has been set.

func (*AutoInspection) HasNextRunTime

func (o *AutoInspection) HasNextRunTime() bool

HasNextRunTime returns a boolean if a field has been set.

func (*AutoInspection) HasOrgName

func (o *AutoInspection) HasOrgName() bool

HasOrgName returns a boolean if a field has been set.

func (*AutoInspection) HasRunEvery

func (o *AutoInspection) HasRunEvery() bool

HasRunEvery returns a boolean if a field has been set.

func (*AutoInspection) HasSavedDays

func (o *AutoInspection) HasSavedDays() bool

HasSavedDays returns a boolean if a field has been set.

func (*AutoInspection) HasSchedule

func (o *AutoInspection) HasSchedule() bool

HasSchedule returns a boolean if a field has been set.

func (*AutoInspection) HasUpdatedAt

func (o *AutoInspection) HasUpdatedAt() bool

HasUpdatedAt returns a boolean if a field has been set.

func (AutoInspection) MarshalJSON

func (o AutoInspection) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*AutoInspection) SetCreatedAt

func (o *AutoInspection) SetCreatedAt(v time.Time)

SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.

func (*AutoInspection) SetCreator

func (o *AutoInspection) SetCreator(v string)

SetCreator gets a reference to the given string and assigns it to the Creator field.

func (*AutoInspection) SetDaysOfMonth

func (o *AutoInspection) SetDaysOfMonth(v []int32)

SetDaysOfMonth gets a reference to the given []int32 and assigns it to the DaysOfMonth field.

func (*AutoInspection) SetDaysOfWeek

func (o *AutoInspection) SetDaysOfWeek(v []int32)

SetDaysOfWeek gets a reference to the given []int32 and assigns it to the DaysOfWeek field.

func (*AutoInspection) SetEnabled

func (o *AutoInspection) SetEnabled(v bool)

SetEnabled gets a reference to the given bool and assigns it to the Enabled field.

func (*AutoInspection) SetHour

func (o *AutoInspection) SetHour(v int32)

SetHour gets a reference to the given int32 and assigns it to the Hour field.

func (*AutoInspection) SetId

func (o *AutoInspection) SetId(v int32)

SetId gets a reference to the given int32 and assigns it to the Id field.

func (*AutoInspection) SetMinute

func (o *AutoInspection) SetMinute(v int32)

SetMinute gets a reference to the given int32 and assigns it to the Minute field.

func (*AutoInspection) SetNextRunTime

func (o *AutoInspection) SetNextRunTime(v time.Time)

SetNextRunTime gets a reference to the given time.Time and assigns it to the NextRunTime field.

func (*AutoInspection) SetOrgName

func (o *AutoInspection) SetOrgName(v string)

SetOrgName gets a reference to the given string and assigns it to the OrgName field.

func (*AutoInspection) SetRunEvery

func (o *AutoInspection) SetRunEvery(v AutoInspectionRunUnit)

SetRunEvery gets a reference to the given AutoInspectionRunUnit and assigns it to the RunEvery field.

func (*AutoInspection) SetSavedDays

func (o *AutoInspection) SetSavedDays(v int32)

SetSavedDays gets a reference to the given int32 and assigns it to the SavedDays field.

func (*AutoInspection) SetSchedule

func (o *AutoInspection) SetSchedule(v string)

SetSchedule gets a reference to the given string and assigns it to the Schedule field.

func (*AutoInspection) SetUpdatedAt

func (o *AutoInspection) SetUpdatedAt(v time.Time)

SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field.

func (*AutoInspection) UnmarshalJSON

func (o *AutoInspection) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type AutoInspectionRunUnit

type AutoInspectionRunUnit string

AutoInspectionRunUnit Specifies the unit of time for the auto inspection schedule.

const (
	AutoInspectionRunUnitHour  AutoInspectionRunUnit = "hour"
	AutoInspectionRunUnitDay   AutoInspectionRunUnit = "day"
	AutoInspectionRunUnitWeek  AutoInspectionRunUnit = "week"
	AutoInspectionRunUnitMonth AutoInspectionRunUnit = "month"
)

List of AutoInspectionRunUnit.

func NewAutoInspectionRunUnitFromValue

func NewAutoInspectionRunUnitFromValue(v string) (*AutoInspectionRunUnit, error)

NewAutoInspectionRunUnitFromValue returns a pointer to a valid AutoInspectionRunUnit for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*AutoInspectionRunUnit) GetAllowedValues

func (v *AutoInspectionRunUnit) GetAllowedValues() []AutoInspectionRunUnit

GetAllowedValues returns the list of possible values.

func (AutoInspectionRunUnit) IsValid

func (v AutoInspectionRunUnit) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (AutoInspectionRunUnit) Ptr

Ptr returns reference to AutoInspectionRunUnit value.

func (*AutoInspectionRunUnit) UnmarshalJSON

func (v *AutoInspectionRunUnit) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type AutohealingApi

type AutohealingApi common.Service

AutohealingApi service type

func NewAutohealingApi

func NewAutohealingApi(client *common.APIClient) *AutohealingApi

NewAutohealingApi Returns NewAutohealingApi.

func (*AutohealingApi) GetAutohealing

func (a *AutohealingApi) GetAutohealing(ctx _context.Context, orgName string, clusterName string) ([]AutohealingListItem, *_nethttp.Response, error)

GetAutohealing list autohealing job.

type AutohealingListItem

type AutohealingListItem struct {
	Name      *string    `json:"name,omitempty"`
	CreatedAt *time.Time `json:"createdAt,omitempty"`
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
	// component to be rebuilt
	ComponentName *string `json:"componentName,omitempty"`
	// pod to be rebuilt
	PodName *string `json:"podName,omitempty"`
	// rebuild start time
	StartTime *time.Time `json:"startTime,omitempty"`
	// current phase of rebuild job
	Phase *string `json:"phase,omitempty"`
	// whether the job is started
	Started      *bool   `json:"started,omitempty"`
	StartMessage *string `json:"startMessage,omitempty"`
	// whether the job is finished
	Finished                      *bool   `json:"finished,omitempty"`
	FinishMessage                 *string `json:"finishMessage,omitempty"`
	BackupName                    *string `json:"backupName,omitempty"`
	RebuildInstanceOpsRequestName *string `json:"rebuildInstanceOpsRequestName,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewAutohealingListItem

func NewAutohealingListItem() *AutohealingListItem

NewAutohealingListItem instantiates a new AutohealingListItem 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 NewAutohealingListItemWithDefaults

func NewAutohealingListItemWithDefaults() *AutohealingListItem

NewAutohealingListItemWithDefaults instantiates a new AutohealingListItem 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 (*AutohealingListItem) GetBackupName

func (o *AutohealingListItem) GetBackupName() string

GetBackupName returns the BackupName field value if set, zero value otherwise.

func (*AutohealingListItem) GetBackupNameOk

func (o *AutohealingListItem) GetBackupNameOk() (*string, bool)

GetBackupNameOk returns a tuple with the BackupName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AutohealingListItem) GetComponentName

func (o *AutohealingListItem) GetComponentName() string

GetComponentName returns the ComponentName field value if set, zero value otherwise.

func (*AutohealingListItem) GetComponentNameOk

func (o *AutohealingListItem) GetComponentNameOk() (*string, bool)

GetComponentNameOk returns a tuple with the ComponentName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AutohealingListItem) GetCreatedAt

func (o *AutohealingListItem) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.

func (*AutohealingListItem) GetCreatedAtOk

func (o *AutohealingListItem) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AutohealingListItem) GetFinishMessage

func (o *AutohealingListItem) GetFinishMessage() string

GetFinishMessage returns the FinishMessage field value if set, zero value otherwise.

func (*AutohealingListItem) GetFinishMessageOk

func (o *AutohealingListItem) GetFinishMessageOk() (*string, bool)

GetFinishMessageOk returns a tuple with the FinishMessage field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AutohealingListItem) GetFinished

func (o *AutohealingListItem) GetFinished() bool

GetFinished returns the Finished field value if set, zero value otherwise.

func (*AutohealingListItem) GetFinishedOk

func (o *AutohealingListItem) GetFinishedOk() (*bool, bool)

GetFinishedOk returns a tuple with the Finished field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AutohealingListItem) GetName

func (o *AutohealingListItem) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*AutohealingListItem) GetNameOk

func (o *AutohealingListItem) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AutohealingListItem) GetPhase

func (o *AutohealingListItem) GetPhase() string

GetPhase returns the Phase field value if set, zero value otherwise.

func (*AutohealingListItem) GetPhaseOk

func (o *AutohealingListItem) GetPhaseOk() (*string, bool)

GetPhaseOk returns a tuple with the Phase field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AutohealingListItem) GetPodName

func (o *AutohealingListItem) GetPodName() string

GetPodName returns the PodName field value if set, zero value otherwise.

func (*AutohealingListItem) GetPodNameOk

func (o *AutohealingListItem) GetPodNameOk() (*string, bool)

GetPodNameOk returns a tuple with the PodName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AutohealingListItem) GetRebuildInstanceOpsRequestName

func (o *AutohealingListItem) GetRebuildInstanceOpsRequestName() string

GetRebuildInstanceOpsRequestName returns the RebuildInstanceOpsRequestName field value if set, zero value otherwise.

func (*AutohealingListItem) GetRebuildInstanceOpsRequestNameOk

func (o *AutohealingListItem) GetRebuildInstanceOpsRequestNameOk() (*string, bool)

GetRebuildInstanceOpsRequestNameOk returns a tuple with the RebuildInstanceOpsRequestName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AutohealingListItem) GetStartMessage

func (o *AutohealingListItem) GetStartMessage() string

GetStartMessage returns the StartMessage field value if set, zero value otherwise.

func (*AutohealingListItem) GetStartMessageOk

func (o *AutohealingListItem) GetStartMessageOk() (*string, bool)

GetStartMessageOk returns a tuple with the StartMessage field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AutohealingListItem) GetStartTime

func (o *AutohealingListItem) GetStartTime() time.Time

GetStartTime returns the StartTime field value if set, zero value otherwise.

func (*AutohealingListItem) GetStartTimeOk

func (o *AutohealingListItem) GetStartTimeOk() (*time.Time, bool)

GetStartTimeOk returns a tuple with the StartTime field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AutohealingListItem) GetStarted

func (o *AutohealingListItem) GetStarted() bool

GetStarted returns the Started field value if set, zero value otherwise.

func (*AutohealingListItem) GetStartedOk

func (o *AutohealingListItem) GetStartedOk() (*bool, bool)

GetStartedOk returns a tuple with the Started field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AutohealingListItem) GetUpdatedAt

func (o *AutohealingListItem) GetUpdatedAt() time.Time

GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.

func (*AutohealingListItem) GetUpdatedAtOk

func (o *AutohealingListItem) GetUpdatedAtOk() (*time.Time, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AutohealingListItem) HasBackupName

func (o *AutohealingListItem) HasBackupName() bool

HasBackupName returns a boolean if a field has been set.

func (*AutohealingListItem) HasComponentName

func (o *AutohealingListItem) HasComponentName() bool

HasComponentName returns a boolean if a field has been set.

func (*AutohealingListItem) HasCreatedAt

func (o *AutohealingListItem) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*AutohealingListItem) HasFinishMessage

func (o *AutohealingListItem) HasFinishMessage() bool

HasFinishMessage returns a boolean if a field has been set.

func (*AutohealingListItem) HasFinished

func (o *AutohealingListItem) HasFinished() bool

HasFinished returns a boolean if a field has been set.

func (*AutohealingListItem) HasName

func (o *AutohealingListItem) HasName() bool

HasName returns a boolean if a field has been set.

func (*AutohealingListItem) HasPhase

func (o *AutohealingListItem) HasPhase() bool

HasPhase returns a boolean if a field has been set.

func (*AutohealingListItem) HasPodName

func (o *AutohealingListItem) HasPodName() bool

HasPodName returns a boolean if a field has been set.

func (*AutohealingListItem) HasRebuildInstanceOpsRequestName

func (o *AutohealingListItem) HasRebuildInstanceOpsRequestName() bool

HasRebuildInstanceOpsRequestName returns a boolean if a field has been set.

func (*AutohealingListItem) HasStartMessage

func (o *AutohealingListItem) HasStartMessage() bool

HasStartMessage returns a boolean if a field has been set.

func (*AutohealingListItem) HasStartTime

func (o *AutohealingListItem) HasStartTime() bool

HasStartTime returns a boolean if a field has been set.

func (*AutohealingListItem) HasStarted

func (o *AutohealingListItem) HasStarted() bool

HasStarted returns a boolean if a field has been set.

func (*AutohealingListItem) HasUpdatedAt

func (o *AutohealingListItem) HasUpdatedAt() bool

HasUpdatedAt returns a boolean if a field has been set.

func (AutohealingListItem) MarshalJSON

func (o AutohealingListItem) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*AutohealingListItem) SetBackupName

func (o *AutohealingListItem) SetBackupName(v string)

SetBackupName gets a reference to the given string and assigns it to the BackupName field.

func (*AutohealingListItem) SetComponentName

func (o *AutohealingListItem) SetComponentName(v string)

SetComponentName gets a reference to the given string and assigns it to the ComponentName field.

func (*AutohealingListItem) SetCreatedAt

func (o *AutohealingListItem) SetCreatedAt(v time.Time)

SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.

func (*AutohealingListItem) SetFinishMessage

func (o *AutohealingListItem) SetFinishMessage(v string)

SetFinishMessage gets a reference to the given string and assigns it to the FinishMessage field.

func (*AutohealingListItem) SetFinished

func (o *AutohealingListItem) SetFinished(v bool)

SetFinished gets a reference to the given bool and assigns it to the Finished field.

func (*AutohealingListItem) SetName

func (o *AutohealingListItem) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*AutohealingListItem) SetPhase

func (o *AutohealingListItem) SetPhase(v string)

SetPhase gets a reference to the given string and assigns it to the Phase field.

func (*AutohealingListItem) SetPodName

func (o *AutohealingListItem) SetPodName(v string)

SetPodName gets a reference to the given string and assigns it to the PodName field.

func (*AutohealingListItem) SetRebuildInstanceOpsRequestName

func (o *AutohealingListItem) SetRebuildInstanceOpsRequestName(v string)

SetRebuildInstanceOpsRequestName gets a reference to the given string and assigns it to the RebuildInstanceOpsRequestName field.

func (*AutohealingListItem) SetStartMessage

func (o *AutohealingListItem) SetStartMessage(v string)

SetStartMessage gets a reference to the given string and assigns it to the StartMessage field.

func (*AutohealingListItem) SetStartTime

func (o *AutohealingListItem) SetStartTime(v time.Time)

SetStartTime gets a reference to the given time.Time and assigns it to the StartTime field.

func (*AutohealingListItem) SetStarted

func (o *AutohealingListItem) SetStarted(v bool)

SetStarted gets a reference to the given bool and assigns it to the Started field.

func (*AutohealingListItem) SetUpdatedAt

func (o *AutohealingListItem) SetUpdatedAt(v time.Time)

SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field.

func (*AutohealingListItem) UnmarshalJSON

func (o *AutohealingListItem) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type Backup

type Backup struct {
	// autoBackup or not
	AutoBackup bool `json:"autoBackup"`
	// Backup Method.
	BackupMethod string `json:"backupMethod"`
	// Which backupPolicy is applied to perform this backup
	BackupPolicyName string `json:"backupPolicyName"`
	// backupRepo is the name of backupRepo and it is used to store the backup data
	BackupRepo *string `json:"backupRepo,omitempty"`
	// the type of backup
	BackupType BackupType `json:"backupType"`
	// Date/time when the backup finished being processed.
	CompletionTimestamp common.NullableTime `json:"completionTimestamp,omitempty"`
	// Date/time when the backup was created.
	CreationTimestamp time.Time `json:"creationTimestamp"`
	// The duration time of backup execution. When converted to a string, the form is "1h2m0.5s".
	Duration common.NullableString `json:"duration,omitempty"`
	// name of the backup
	Name string `json:"name"`
	// orgName records the organization name for this backup.
	OrgName string `json:"orgName"`
	// snapshotVolumes specifies whether to take snapshots of persistent volumes to back up
	SnapshotVolumes bool `json:"snapshotVolumes"`
	// sourceCluster records the source cluster information for this backup.
	SourceCluster string `json:"sourceCluster"`
	// Date/time when the backup started being processed.
	StartTimestamp common.NullableTime `json:"startTimestamp,omitempty"`
	// The current status. Valid values are New, InProgress, Completed, Failed.
	Status *BackupStatus `json:"status,omitempty"`
	// timeRangeEnd records the end time of the backup.
	TimeRangeEnd *time.Time `json:"timeRangeEnd,omitempty"`
	// timeRangeStart records the start time of the backup.
	TimeRangeStart *time.Time `json:"timeRangeStart,omitempty"`
	// Backup total size. A string with capacity units in the form of "1Gi", "1Mi", "1Ki".
	TotalSize     common.NullableString `json:"totalSize,omitempty"`
	FailureReason *string               `json:"failureReason,omitempty"`
	Extras        *string               `json:"extras,omitempty"`
	// backup target pods
	TargetPods []string `json:"targetPods,omitempty"`
	// the path of backup files
	Path *string `json:"path,omitempty"`
	// determines a duration up to which the backup should be kept
	RetentionPeriod common.NullableString `json:"retentionPeriod,omitempty"`
	// indicates when this backup becomes eligible for garbage collection
	Expiration *time.Time `json:"expiration,omitempty"`
	// the backup id
	Id *string `json:"id,omitempty"`
	// the id of cluster that backup belong to
	ClusterId *string `json:"clusterId,omitempty"`
	// the cloud provider
	CloudProvider *string `json:"cloudProvider,omitempty"`
	// the cloud region
	CloudRegion *string `json:"cloudRegion,omitempty"`
	// the environment name
	EnvironmentName *string `json:"environmentName,omitempty"`
	// the cluster engine
	Engine *string `json:"engine,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

Backup backup is the payload for KubeBlocks cluster backup

func NewBackup

func NewBackup(autoBackup bool, backupMethod string, backupPolicyName string, backupType BackupType, creationTimestamp time.Time, name string, orgName string, snapshotVolumes bool, sourceCluster string) *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 NewBackupWithDefaults

func NewBackupWithDefaults() *Backup

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 (*Backup) GetAutoBackup

func (o *Backup) GetAutoBackup() bool

GetAutoBackup returns the AutoBackup field value.

func (*Backup) GetAutoBackupOk

func (o *Backup) GetAutoBackupOk() (*bool, bool)

GetAutoBackupOk returns a tuple with the AutoBackup field value and a boolean to check if the value has been set.

func (*Backup) GetBackupMethod

func (o *Backup) GetBackupMethod() string

GetBackupMethod returns the BackupMethod field value.

func (*Backup) GetBackupMethodOk

func (o *Backup) GetBackupMethodOk() (*string, bool)

GetBackupMethodOk returns a tuple with the BackupMethod field value and a boolean to check if the value has been set.

func (*Backup) GetBackupPolicyName

func (o *Backup) GetBackupPolicyName() string

GetBackupPolicyName returns the BackupPolicyName field value.

func (*Backup) GetBackupPolicyNameOk

func (o *Backup) GetBackupPolicyNameOk() (*string, bool)

GetBackupPolicyNameOk returns a tuple with the BackupPolicyName field value and a boolean to check if the value has been set.

func (*Backup) GetBackupRepo

func (o *Backup) GetBackupRepo() string

GetBackupRepo returns the BackupRepo field value if set, zero value otherwise.

func (*Backup) GetBackupRepoOk

func (o *Backup) GetBackupRepoOk() (*string, bool)

GetBackupRepoOk returns a tuple with the BackupRepo field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Backup) GetBackupType

func (o *Backup) GetBackupType() BackupType

GetBackupType returns the BackupType field value.

func (*Backup) GetBackupTypeOk

func (o *Backup) GetBackupTypeOk() (*BackupType, bool)

GetBackupTypeOk returns a tuple with the BackupType field value and a boolean to check if the value has been set.

func (*Backup) GetCloudProvider

func (o *Backup) GetCloudProvider() string

GetCloudProvider returns the CloudProvider field value if set, zero value otherwise.

func (*Backup) GetCloudProviderOk

func (o *Backup) GetCloudProviderOk() (*string, bool)

GetCloudProviderOk returns a tuple with the CloudProvider field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Backup) GetCloudRegion

func (o *Backup) GetCloudRegion() string

GetCloudRegion returns the CloudRegion field value if set, zero value otherwise.

func (*Backup) GetCloudRegionOk

func (o *Backup) GetCloudRegionOk() (*string, bool)

GetCloudRegionOk returns a tuple with the CloudRegion field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Backup) GetClusterId

func (o *Backup) GetClusterId() string

GetClusterId returns the ClusterId field value if set, zero value otherwise.

func (*Backup) GetClusterIdOk

func (o *Backup) GetClusterIdOk() (*string, bool)

GetClusterIdOk returns a tuple with the ClusterId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Backup) GetCompletionTimestamp

func (o *Backup) GetCompletionTimestamp() time.Time

GetCompletionTimestamp returns the CompletionTimestamp field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Backup) GetCompletionTimestampOk

func (o *Backup) GetCompletionTimestampOk() (*time.Time, bool)

GetCompletionTimestampOk returns a tuple with the CompletionTimestamp field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.

func (*Backup) GetCreationTimestamp

func (o *Backup) GetCreationTimestamp() time.Time

GetCreationTimestamp returns the CreationTimestamp field value.

func (*Backup) GetCreationTimestampOk

func (o *Backup) GetCreationTimestampOk() (*time.Time, bool)

GetCreationTimestampOk returns a tuple with the CreationTimestamp field value and a boolean to check if the value has been set.

func (*Backup) GetDuration

func (o *Backup) GetDuration() string

GetDuration returns the Duration field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Backup) GetDurationOk

func (o *Backup) GetDurationOk() (*string, bool)

GetDurationOk returns a tuple with the Duration field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.

func (*Backup) GetEngine

func (o *Backup) GetEngine() string

GetEngine returns the Engine field value if set, zero value otherwise.

func (*Backup) GetEngineOk

func (o *Backup) GetEngineOk() (*string, bool)

GetEngineOk returns a tuple with the Engine field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Backup) GetEnvironmentName

func (o *Backup) GetEnvironmentName() string

GetEnvironmentName returns the EnvironmentName field value if set, zero value otherwise.

func (*Backup) GetEnvironmentNameOk

func (o *Backup) GetEnvironmentNameOk() (*string, bool)

GetEnvironmentNameOk returns a tuple with the EnvironmentName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Backup) GetExpiration

func (o *Backup) GetExpiration() time.Time

GetExpiration returns the Expiration field value if set, zero value otherwise.

func (*Backup) GetExpirationOk

func (o *Backup) GetExpirationOk() (*time.Time, bool)

GetExpirationOk returns a tuple with the Expiration field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Backup) GetExtras

func (o *Backup) GetExtras() string

GetExtras returns the Extras field value if set, zero value otherwise.

func (*Backup) GetExtrasOk

func (o *Backup) GetExtrasOk() (*string, bool)

GetExtrasOk returns a tuple with the Extras field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Backup) GetFailureReason

func (o *Backup) GetFailureReason() string

GetFailureReason returns the FailureReason field value if set, zero value otherwise.

func (*Backup) GetFailureReasonOk

func (o *Backup) GetFailureReasonOk() (*string, bool)

GetFailureReasonOk returns a tuple with the FailureReason field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Backup) GetId

func (o *Backup) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*Backup) GetIdOk

func (o *Backup) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Backup) GetName

func (o *Backup) GetName() string

GetName returns the Name field value.

func (*Backup) GetNameOk

func (o *Backup) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*Backup) GetOrgName

func (o *Backup) GetOrgName() string

GetOrgName returns the OrgName field value.

func (*Backup) GetOrgNameOk

func (o *Backup) GetOrgNameOk() (*string, bool)

GetOrgNameOk returns a tuple with the OrgName field value and a boolean to check if the value has been set.

func (*Backup) GetPath

func (o *Backup) GetPath() string

GetPath returns the Path field value if set, zero value otherwise.

func (*Backup) GetPathOk

func (o *Backup) GetPathOk() (*string, bool)

GetPathOk returns a tuple with the Path field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Backup) GetRetentionPeriod

func (o *Backup) GetRetentionPeriod() string

GetRetentionPeriod returns the RetentionPeriod field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Backup) GetRetentionPeriodOk

func (o *Backup) GetRetentionPeriodOk() (*string, bool)

GetRetentionPeriodOk returns a tuple with the RetentionPeriod field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.

func (*Backup) GetSnapshotVolumes

func (o *Backup) GetSnapshotVolumes() bool

GetSnapshotVolumes returns the SnapshotVolumes field value.

func (*Backup) GetSnapshotVolumesOk

func (o *Backup) GetSnapshotVolumesOk() (*bool, bool)

GetSnapshotVolumesOk returns a tuple with the SnapshotVolumes field value and a boolean to check if the value has been set.

func (*Backup) GetSourceCluster

func (o *Backup) GetSourceCluster() string

GetSourceCluster returns the SourceCluster field value.

func (*Backup) GetSourceClusterOk

func (o *Backup) GetSourceClusterOk() (*string, bool)

GetSourceClusterOk returns a tuple with the SourceCluster field value and a boolean to check if the value has been set.

func (*Backup) GetStartTimestamp

func (o *Backup) GetStartTimestamp() time.Time

GetStartTimestamp returns the StartTimestamp field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Backup) GetStartTimestampOk

func (o *Backup) GetStartTimestampOk() (*time.Time, bool)

GetStartTimestampOk returns a tuple with the StartTimestamp field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.

func (*Backup) GetStatus

func (o *Backup) GetStatus() BackupStatus

GetStatus returns the Status field value if set, zero value otherwise.

func (*Backup) GetStatusOk

func (o *Backup) GetStatusOk() (*BackupStatus, bool)

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 (*Backup) GetTargetPods

func (o *Backup) GetTargetPods() []string

GetTargetPods returns the TargetPods field value if set, zero value otherwise.

func (*Backup) GetTargetPodsOk

func (o *Backup) GetTargetPodsOk() (*[]string, bool)

GetTargetPodsOk returns a tuple with the TargetPods field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Backup) GetTimeRangeEnd

func (o *Backup) GetTimeRangeEnd() time.Time

GetTimeRangeEnd returns the TimeRangeEnd field value if set, zero value otherwise.

func (*Backup) GetTimeRangeEndOk

func (o *Backup) GetTimeRangeEndOk() (*time.Time, bool)

GetTimeRangeEndOk returns a tuple with the TimeRangeEnd field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Backup) GetTimeRangeStart

func (o *Backup) GetTimeRangeStart() time.Time

GetTimeRangeStart returns the TimeRangeStart field value if set, zero value otherwise.

func (*Backup) GetTimeRangeStartOk

func (o *Backup) GetTimeRangeStartOk() (*time.Time, bool)

GetTimeRangeStartOk returns a tuple with the TimeRangeStart field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Backup) GetTotalSize

func (o *Backup) GetTotalSize() string

GetTotalSize returns the TotalSize field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Backup) GetTotalSizeOk

func (o *Backup) GetTotalSizeOk() (*string, bool)

GetTotalSizeOk returns a tuple with the TotalSize field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.

func (*Backup) HasBackupRepo

func (o *Backup) HasBackupRepo() bool

HasBackupRepo returns a boolean if a field has been set.

func (*Backup) HasCloudProvider

func (o *Backup) HasCloudProvider() bool

HasCloudProvider returns a boolean if a field has been set.

func (*Backup) HasCloudRegion

func (o *Backup) HasCloudRegion() bool

HasCloudRegion returns a boolean if a field has been set.

func (*Backup) HasClusterId

func (o *Backup) HasClusterId() bool

HasClusterId returns a boolean if a field has been set.

func (*Backup) HasCompletionTimestamp added in v0.28.48

func (o *Backup) HasCompletionTimestamp() bool

HasCompletionTimestamp returns a boolean if a field has been set.

func (*Backup) HasDuration added in v0.28.48

func (o *Backup) HasDuration() bool

HasDuration returns a boolean if a field has been set.

func (*Backup) HasEngine

func (o *Backup) HasEngine() bool

HasEngine returns a boolean if a field has been set.

func (*Backup) HasEnvironmentName

func (o *Backup) HasEnvironmentName() bool

HasEnvironmentName returns a boolean if a field has been set.

func (*Backup) HasExpiration

func (o *Backup) HasExpiration() bool

HasExpiration returns a boolean if a field has been set.

func (*Backup) HasExtras

func (o *Backup) HasExtras() bool

HasExtras returns a boolean if a field has been set.

func (*Backup) HasFailureReason

func (o *Backup) HasFailureReason() bool

HasFailureReason returns a boolean if a field has been set.

func (*Backup) HasId

func (o *Backup) HasId() bool

HasId returns a boolean if a field has been set.

func (*Backup) HasPath

func (o *Backup) HasPath() bool

HasPath returns a boolean if a field has been set.

func (*Backup) HasRetentionPeriod

func (o *Backup) HasRetentionPeriod() bool

HasRetentionPeriod returns a boolean if a field has been set.

func (*Backup) HasStartTimestamp added in v0.28.48

func (o *Backup) HasStartTimestamp() bool

HasStartTimestamp returns a boolean if a field has been set.

func (*Backup) HasStatus added in v0.28.48

func (o *Backup) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (*Backup) HasTargetPods

func (o *Backup) HasTargetPods() bool

HasTargetPods returns a boolean if a field has been set.

func (*Backup) HasTimeRangeEnd

func (o *Backup) HasTimeRangeEnd() bool

HasTimeRangeEnd returns a boolean if a field has been set.

func (*Backup) HasTimeRangeStart

func (o *Backup) HasTimeRangeStart() bool

HasTimeRangeStart returns a boolean if a field has been set.

func (*Backup) HasTotalSize added in v0.28.48

func (o *Backup) HasTotalSize() bool

HasTotalSize returns a boolean if a field has been set.

func (Backup) MarshalJSON

func (o Backup) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*Backup) SetAutoBackup

func (o *Backup) SetAutoBackup(v bool)

SetAutoBackup sets field value.

func (*Backup) SetBackupMethod

func (o *Backup) SetBackupMethod(v string)

SetBackupMethod sets field value.

func (*Backup) SetBackupPolicyName

func (o *Backup) SetBackupPolicyName(v string)

SetBackupPolicyName sets field value.

func (*Backup) SetBackupRepo

func (o *Backup) SetBackupRepo(v string)

SetBackupRepo gets a reference to the given string and assigns it to the BackupRepo field.

func (*Backup) SetBackupType

func (o *Backup) SetBackupType(v BackupType)

SetBackupType sets field value.

func (*Backup) SetCloudProvider

func (o *Backup) SetCloudProvider(v string)

SetCloudProvider gets a reference to the given string and assigns it to the CloudProvider field.

func (*Backup) SetCloudRegion

func (o *Backup) SetCloudRegion(v string)

SetCloudRegion gets a reference to the given string and assigns it to the CloudRegion field.

func (*Backup) SetClusterId

func (o *Backup) SetClusterId(v string)

SetClusterId gets a reference to the given string and assigns it to the ClusterId field.

func (*Backup) SetCompletionTimestamp

func (o *Backup) SetCompletionTimestamp(v time.Time)

SetCompletionTimestamp gets a reference to the given common.NullableTime and assigns it to the CompletionTimestamp field.

func (*Backup) SetCompletionTimestampNil added in v0.28.48

func (o *Backup) SetCompletionTimestampNil()

SetCompletionTimestampNil sets the value for CompletionTimestamp to be an explicit nil.

func (*Backup) SetCreationTimestamp

func (o *Backup) SetCreationTimestamp(v time.Time)

SetCreationTimestamp sets field value.

func (*Backup) SetDuration

func (o *Backup) SetDuration(v string)

SetDuration gets a reference to the given common.NullableString and assigns it to the Duration field.

func (*Backup) SetDurationNil added in v0.28.48

func (o *Backup) SetDurationNil()

SetDurationNil sets the value for Duration to be an explicit nil.

func (*Backup) SetEngine

func (o *Backup) SetEngine(v string)

SetEngine gets a reference to the given string and assigns it to the Engine field.

func (*Backup) SetEnvironmentName

func (o *Backup) SetEnvironmentName(v string)

SetEnvironmentName gets a reference to the given string and assigns it to the EnvironmentName field.

func (*Backup) SetExpiration

func (o *Backup) SetExpiration(v time.Time)

SetExpiration gets a reference to the given time.Time and assigns it to the Expiration field.

func (*Backup) SetExtras

func (o *Backup) SetExtras(v string)

SetExtras gets a reference to the given string and assigns it to the Extras field.

func (*Backup) SetFailureReason

func (o *Backup) SetFailureReason(v string)

SetFailureReason gets a reference to the given string and assigns it to the FailureReason field.

func (*Backup) SetId

func (o *Backup) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*Backup) SetName

func (o *Backup) SetName(v string)

SetName sets field value.

func (*Backup) SetOrgName

func (o *Backup) SetOrgName(v string)

SetOrgName sets field value.

func (*Backup) SetPath

func (o *Backup) SetPath(v string)

SetPath gets a reference to the given string and assigns it to the Path field.

func (*Backup) SetRetentionPeriod

func (o *Backup) SetRetentionPeriod(v string)

SetRetentionPeriod gets a reference to the given common.NullableString and assigns it to the RetentionPeriod field.

func (*Backup) SetRetentionPeriodNil added in v0.28.48

func (o *Backup) SetRetentionPeriodNil()

SetRetentionPeriodNil sets the value for RetentionPeriod to be an explicit nil.

func (*Backup) SetSnapshotVolumes

func (o *Backup) SetSnapshotVolumes(v bool)

SetSnapshotVolumes sets field value.

func (*Backup) SetSourceCluster

func (o *Backup) SetSourceCluster(v string)

SetSourceCluster sets field value.

func (*Backup) SetStartTimestamp

func (o *Backup) SetStartTimestamp(v time.Time)

SetStartTimestamp gets a reference to the given common.NullableTime and assigns it to the StartTimestamp field.

func (*Backup) SetStartTimestampNil added in v0.28.48

func (o *Backup) SetStartTimestampNil()

SetStartTimestampNil sets the value for StartTimestamp to be an explicit nil.

func (*Backup) SetStatus

func (o *Backup) SetStatus(v BackupStatus)

SetStatus gets a reference to the given BackupStatus and assigns it to the Status field.

func (*Backup) SetTargetPods

func (o *Backup) SetTargetPods(v []string)

SetTargetPods gets a reference to the given []string and assigns it to the TargetPods field.

func (*Backup) SetTimeRangeEnd

func (o *Backup) SetTimeRangeEnd(v time.Time)

SetTimeRangeEnd gets a reference to the given time.Time and assigns it to the TimeRangeEnd field.

func (*Backup) SetTimeRangeStart

func (o *Backup) SetTimeRangeStart(v time.Time)

SetTimeRangeStart gets a reference to the given time.Time and assigns it to the TimeRangeStart field.

func (*Backup) SetTotalSize

func (o *Backup) SetTotalSize(v string)

SetTotalSize gets a reference to the given common.NullableString and assigns it to the TotalSize field.

func (*Backup) SetTotalSizeNil added in v0.28.48

func (o *Backup) SetTotalSizeNil()

SetTotalSizeNil sets the value for TotalSize to be an explicit nil.

func (*Backup) UnmarshalJSON

func (o *Backup) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

func (*Backup) UnsetCompletionTimestamp added in v0.28.48

func (o *Backup) UnsetCompletionTimestamp()

UnsetCompletionTimestamp ensures that no value is present for CompletionTimestamp, not even an explicit nil.

func (*Backup) UnsetDuration added in v0.28.48

func (o *Backup) UnsetDuration()

UnsetDuration ensures that no value is present for Duration, not even an explicit nil.

func (*Backup) UnsetRetentionPeriod added in v0.28.48

func (o *Backup) UnsetRetentionPeriod()

UnsetRetentionPeriod ensures that no value is present for RetentionPeriod, not even an explicit nil.

func (*Backup) UnsetStartTimestamp added in v0.28.48

func (o *Backup) UnsetStartTimestamp()

UnsetStartTimestamp ensures that no value is present for StartTimestamp, not even an explicit nil.

func (*Backup) UnsetTotalSize added in v0.28.48

func (o *Backup) UnsetTotalSize()

UnsetTotalSize ensures that no value is present for TotalSize, not even an explicit nil.

type BackupApi

type BackupApi common.Service

BackupApi service type

func NewBackupApi

func NewBackupApi(client *common.APIClient) *BackupApi

NewBackupApi Returns NewBackupApi.

func (*BackupApi) CreateClusterBackup

func (a *BackupApi) CreateClusterBackup(ctx _context.Context, orgName string, clusterName string, body BackupCreate) (Backup, *_nethttp.Response, error)

CreateClusterBackup Create backup.

func (*BackupApi) DeleteBackup

func (a *BackupApi) DeleteBackup(ctx _context.Context, orgName string, backupId string) (*_nethttp.Response, error)

DeleteBackup Delete backup.

func (*BackupApi) DownloadBackup

func (a *BackupApi) DownloadBackup(ctx _context.Context, orgName string, backupId string) (_io.Reader, *_nethttp.Response, error)

DownloadBackup Download full backup.

func (*BackupApi) DownloadMutipleBackups

func (a *BackupApi) DownloadMutipleBackups(ctx _context.Context, orgName string, backupId string, body BackupDownload) (_io.Reader, *_nethttp.Response, error)

DownloadMutipleBackups Download mutiple backup files.

func (*BackupApi) GetBackup

func (a *BackupApi) GetBackup(ctx _context.Context, orgName string, backupId string) (Backup, *_nethttp.Response, error)

GetBackup Get backup.

func (*BackupApi) GetBackupLog

func (a *BackupApi) GetBackupLog(ctx _context.Context, orgName string, backupId string) (BackupLog, *_nethttp.Response, error)

GetBackupLog Get backup log.

func (*BackupApi) GetBackupStats

func (a *BackupApi) GetBackupStats(ctx _context.Context, orgName string) (BackupStats, *_nethttp.Response, error)

GetBackupStats Get backup statistics.

func (*BackupApi) GetClusterBackupPolicy

func (a *BackupApi) GetClusterBackupPolicy(ctx _context.Context, orgName string, clusterName string, o ...GetClusterBackupPolicyOptionalParameters) (BackupPolicy, *_nethttp.Response, error)

GetClusterBackupPolicy Get backup policy.

func (*BackupApi) ListBackups

ListBackups List backups.

func (*BackupApi) PatchBackupPolicy

func (a *BackupApi) PatchBackupPolicy(ctx _context.Context, orgName string, clusterName string, body BackupPolicy, o ...PatchBackupPolicyOptionalParameters) (BackupPolicy, *_nethttp.Response, error)

PatchBackupPolicy Update backup policy. partially update the specified Backup Policy

func (*BackupApi) ViewBackup

func (a *BackupApi) ViewBackup(ctx _context.Context, orgName string, backupId string, o ...ViewBackupOptionalParameters) (FileEntryList, *_nethttp.Response, error)

ViewBackup view backup info.

type BackupCreate

type BackupCreate struct {
	// name of the backup, if not specified, a name will be generated automatically
	Name *string `json:"name,omitempty"`
	// specified the backup method
	BackupMethod string `json:"backupMethod"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

BackupCreate BackupCreate is the payload to create a KubeBlocks cluster backup

func NewBackupCreate

func NewBackupCreate(backupMethod string) *BackupCreate

NewBackupCreate instantiates a new BackupCreate 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 NewBackupCreateWithDefaults

func NewBackupCreateWithDefaults() *BackupCreate

NewBackupCreateWithDefaults instantiates a new BackupCreate 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 (*BackupCreate) GetBackupMethod

func (o *BackupCreate) GetBackupMethod() string

GetBackupMethod returns the BackupMethod field value.

func (*BackupCreate) GetBackupMethodOk

func (o *BackupCreate) GetBackupMethodOk() (*string, bool)

GetBackupMethodOk returns a tuple with the BackupMethod field value and a boolean to check if the value has been set.

func (*BackupCreate) GetName

func (o *BackupCreate) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*BackupCreate) GetNameOk

func (o *BackupCreate) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupCreate) HasName

func (o *BackupCreate) HasName() bool

HasName returns a boolean if a field has been set.

func (BackupCreate) MarshalJSON

func (o BackupCreate) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*BackupCreate) SetBackupMethod

func (o *BackupCreate) SetBackupMethod(v string)

SetBackupMethod sets field value.

func (*BackupCreate) SetName

func (o *BackupCreate) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*BackupCreate) UnmarshalJSON

func (o *BackupCreate) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type BackupDownload

type BackupDownload struct {
	// the paths of file to download
	Filepaths []string `json:"filepaths,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewBackupDownload

func NewBackupDownload() *BackupDownload

NewBackupDownload instantiates a new BackupDownload 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 NewBackupDownloadWithDefaults

func NewBackupDownloadWithDefaults() *BackupDownload

NewBackupDownloadWithDefaults instantiates a new BackupDownload 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 (*BackupDownload) GetFilepaths

func (o *BackupDownload) GetFilepaths() []string

GetFilepaths returns the Filepaths field value if set, zero value otherwise.

func (*BackupDownload) GetFilepathsOk

func (o *BackupDownload) GetFilepathsOk() (*[]string, bool)

GetFilepathsOk returns a tuple with the Filepaths field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupDownload) HasFilepaths

func (o *BackupDownload) HasFilepaths() bool

HasFilepaths returns a boolean if a field has been set.

func (BackupDownload) MarshalJSON

func (o BackupDownload) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*BackupDownload) SetFilepaths

func (o *BackupDownload) SetFilepaths(v []string)

SetFilepaths gets a reference to the given []string and assigns it to the Filepaths field.

func (*BackupDownload) UnmarshalJSON

func (o *BackupDownload) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type BackupList

type BackupList struct {
	// Items is the list of backup policy objects in the list
	Items []Backup `json:"items"`
	// PageResult info
	PageResult *PageResult `json:"pageResult,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

BackupList BackupList is a list of backups

func NewBackupList

func NewBackupList(items []Backup) *BackupList

NewBackupList instantiates a new BackupList 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 NewBackupListWithDefaults

func NewBackupListWithDefaults() *BackupList

NewBackupListWithDefaults instantiates a new BackupList 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 (*BackupList) GetItems

func (o *BackupList) GetItems() []Backup

GetItems returns the Items field value.

func (*BackupList) GetItemsOk

func (o *BackupList) GetItemsOk() (*[]Backup, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (*BackupList) GetPageResult

func (o *BackupList) GetPageResult() PageResult

GetPageResult returns the PageResult field value if set, zero value otherwise.

func (*BackupList) GetPageResultOk

func (o *BackupList) GetPageResultOk() (*PageResult, bool)

GetPageResultOk returns a tuple with the PageResult field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupList) HasPageResult

func (o *BackupList) HasPageResult() bool

HasPageResult returns a boolean if a field has been set.

func (BackupList) MarshalJSON

func (o BackupList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*BackupList) SetItems

func (o *BackupList) SetItems(v []Backup)

SetItems sets field value.

func (*BackupList) SetPageResult

func (o *BackupList) SetPageResult(v PageResult)

SetPageResult gets a reference to the given PageResult and assigns it to the PageResult field.

func (*BackupList) UnmarshalJSON

func (o *BackupList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type BackupLog

type BackupLog struct {
	// items is the list of backupLogByPod objects
	Items []BackupLogByPod `json:"items,omitempty"`
	// backup id
	BackupId *string `json:"backupId,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

BackupLog backup workload logs

func NewBackupLog

func NewBackupLog() *BackupLog

NewBackupLog instantiates a new BackupLog 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 NewBackupLogWithDefaults

func NewBackupLogWithDefaults() *BackupLog

NewBackupLogWithDefaults instantiates a new BackupLog 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 (*BackupLog) GetBackupId

func (o *BackupLog) GetBackupId() string

GetBackupId returns the BackupId field value if set, zero value otherwise.

func (*BackupLog) GetBackupIdOk

func (o *BackupLog) GetBackupIdOk() (*string, bool)

GetBackupIdOk returns a tuple with the BackupId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupLog) GetItems

func (o *BackupLog) GetItems() []BackupLogByPod

GetItems returns the Items field value if set, zero value otherwise.

func (*BackupLog) GetItemsOk

func (o *BackupLog) GetItemsOk() (*[]BackupLogByPod, bool)

GetItemsOk returns a tuple with the Items field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupLog) HasBackupId

func (o *BackupLog) HasBackupId() bool

HasBackupId returns a boolean if a field has been set.

func (*BackupLog) HasItems

func (o *BackupLog) HasItems() bool

HasItems returns a boolean if a field has been set.

func (BackupLog) MarshalJSON

func (o BackupLog) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*BackupLog) SetBackupId

func (o *BackupLog) SetBackupId(v string)

SetBackupId gets a reference to the given string and assigns it to the BackupId field.

func (*BackupLog) SetItems

func (o *BackupLog) SetItems(v []BackupLogByPod)

SetItems gets a reference to the given []BackupLogByPod and assigns it to the Items field.

func (*BackupLog) UnmarshalJSON

func (o *BackupLog) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type BackupLogByPod

type BackupLogByPod struct {
	// logs of the backup workload
	Log *string `json:"log,omitempty"`
	// pod name
	PodName *string `json:"podName,omitempty"`
	// Date/time when the backup pod was created.
	CreationTimestamp *time.Time `json:"creationTimestamp,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

BackupLogByPod info of backup workload log

func NewBackupLogByPod

func NewBackupLogByPod() *BackupLogByPod

NewBackupLogByPod instantiates a new BackupLogByPod 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 NewBackupLogByPodWithDefaults

func NewBackupLogByPodWithDefaults() *BackupLogByPod

NewBackupLogByPodWithDefaults instantiates a new BackupLogByPod 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 (*BackupLogByPod) GetCreationTimestamp

func (o *BackupLogByPod) GetCreationTimestamp() time.Time

GetCreationTimestamp returns the CreationTimestamp field value if set, zero value otherwise.

func (*BackupLogByPod) GetCreationTimestampOk

func (o *BackupLogByPod) GetCreationTimestampOk() (*time.Time, bool)

GetCreationTimestampOk returns a tuple with the CreationTimestamp field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupLogByPod) GetLog

func (o *BackupLogByPod) GetLog() string

GetLog returns the Log field value if set, zero value otherwise.

func (*BackupLogByPod) GetLogOk

func (o *BackupLogByPod) GetLogOk() (*string, bool)

GetLogOk returns a tuple with the Log field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupLogByPod) GetPodName

func (o *BackupLogByPod) GetPodName() string

GetPodName returns the PodName field value if set, zero value otherwise.

func (*BackupLogByPod) GetPodNameOk

func (o *BackupLogByPod) GetPodNameOk() (*string, bool)

GetPodNameOk returns a tuple with the PodName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupLogByPod) HasCreationTimestamp

func (o *BackupLogByPod) HasCreationTimestamp() bool

HasCreationTimestamp returns a boolean if a field has been set.

func (*BackupLogByPod) HasLog

func (o *BackupLogByPod) HasLog() bool

HasLog returns a boolean if a field has been set.

func (*BackupLogByPod) HasPodName

func (o *BackupLogByPod) HasPodName() bool

HasPodName returns a boolean if a field has been set.

func (BackupLogByPod) MarshalJSON

func (o BackupLogByPod) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*BackupLogByPod) SetCreationTimestamp

func (o *BackupLogByPod) SetCreationTimestamp(v time.Time)

SetCreationTimestamp gets a reference to the given time.Time and assigns it to the CreationTimestamp field.

func (*BackupLogByPod) SetLog

func (o *BackupLogByPod) SetLog(v string)

SetLog gets a reference to the given string and assigns it to the Log field.

func (*BackupLogByPod) SetPodName

func (o *BackupLogByPod) SetPodName(v string)

SetPodName gets a reference to the given string and assigns it to the PodName field.

func (*BackupLogByPod) UnmarshalJSON

func (o *BackupLogByPod) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type BackupMethodOption

type BackupMethodOption struct {
	Name        string                `json:"name"`
	Description *LocalizedDescription `json:"description,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewBackupMethodOption

func NewBackupMethodOption(name string) *BackupMethodOption

NewBackupMethodOption instantiates a new BackupMethodOption 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 NewBackupMethodOptionWithDefaults

func NewBackupMethodOptionWithDefaults() *BackupMethodOption

NewBackupMethodOptionWithDefaults instantiates a new BackupMethodOption 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 (*BackupMethodOption) GetDescription

func (o *BackupMethodOption) GetDescription() LocalizedDescription

GetDescription returns the Description field value if set, zero value otherwise.

func (*BackupMethodOption) GetDescriptionOk

func (o *BackupMethodOption) GetDescriptionOk() (*LocalizedDescription, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupMethodOption) GetName

func (o *BackupMethodOption) GetName() string

GetName returns the Name field value.

func (*BackupMethodOption) GetNameOk

func (o *BackupMethodOption) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*BackupMethodOption) HasDescription

func (o *BackupMethodOption) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (BackupMethodOption) MarshalJSON

func (o BackupMethodOption) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*BackupMethodOption) SetDescription

func (o *BackupMethodOption) SetDescription(v LocalizedDescription)

SetDescription gets a reference to the given LocalizedDescription and assigns it to the Description field.

func (*BackupMethodOption) SetName

func (o *BackupMethodOption) SetName(v string)

SetName sets field value.

func (*BackupMethodOption) UnmarshalJSON

func (o *BackupMethodOption) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type BackupOption

type BackupOption struct {
	DefaultMethod    *string              `json:"defaultMethod,omitempty"`
	FullMethod       []BackupMethodOption `json:"fullMethod,omitempty"`
	ContinuousMethod []BackupMethodOption `json:"continuousMethod,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewBackupOption

func NewBackupOption() *BackupOption

NewBackupOption instantiates a new BackupOption 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 NewBackupOptionWithDefaults

func NewBackupOptionWithDefaults() *BackupOption

NewBackupOptionWithDefaults instantiates a new BackupOption 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 (*BackupOption) GetContinuousMethod

func (o *BackupOption) GetContinuousMethod() []BackupMethodOption

GetContinuousMethod returns the ContinuousMethod field value if set, zero value otherwise.

func (*BackupOption) GetContinuousMethodOk

func (o *BackupOption) GetContinuousMethodOk() (*[]BackupMethodOption, bool)

GetContinuousMethodOk returns a tuple with the ContinuousMethod field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupOption) GetDefaultMethod

func (o *BackupOption) GetDefaultMethod() string

GetDefaultMethod returns the DefaultMethod field value if set, zero value otherwise.

func (*BackupOption) GetDefaultMethodOk

func (o *BackupOption) GetDefaultMethodOk() (*string, bool)

GetDefaultMethodOk returns a tuple with the DefaultMethod field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupOption) GetFullMethod

func (o *BackupOption) GetFullMethod() []BackupMethodOption

GetFullMethod returns the FullMethod field value if set, zero value otherwise.

func (*BackupOption) GetFullMethodOk

func (o *BackupOption) GetFullMethodOk() (*[]BackupMethodOption, bool)

GetFullMethodOk returns a tuple with the FullMethod field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupOption) HasContinuousMethod

func (o *BackupOption) HasContinuousMethod() bool

HasContinuousMethod returns a boolean if a field has been set.

func (*BackupOption) HasDefaultMethod

func (o *BackupOption) HasDefaultMethod() bool

HasDefaultMethod returns a boolean if a field has been set.

func (*BackupOption) HasFullMethod

func (o *BackupOption) HasFullMethod() bool

HasFullMethod returns a boolean if a field has been set.

func (BackupOption) MarshalJSON

func (o BackupOption) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*BackupOption) SetContinuousMethod

func (o *BackupOption) SetContinuousMethod(v []BackupMethodOption)

SetContinuousMethod gets a reference to the given []BackupMethodOption and assigns it to the ContinuousMethod field.

func (*BackupOption) SetDefaultMethod

func (o *BackupOption) SetDefaultMethod(v string)

SetDefaultMethod gets a reference to the given string and assigns it to the DefaultMethod field.

func (*BackupOption) SetFullMethod

func (o *BackupOption) SetFullMethod(v []BackupMethodOption)

SetFullMethod gets a reference to the given []BackupMethodOption and assigns it to the FullMethod field.

func (*BackupOption) UnmarshalJSON

func (o *BackupOption) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type BackupPolicy

type BackupPolicy struct {
	// specify whether to use auto backup
	AutoBackup *bool `json:"autoBackup,omitempty"`
	// the auto backup method
	AutoBackupMethod *string `json:"autoBackupMethod,omitempty"`
	// specify whether to enable point-in-time recovery
	PitrEnabled *bool `json:"pitrEnabled,omitempty"`
	// the crop expression for schedule
	CronExpression *string `json:"cronExpression,omitempty"`
	// specify the retention period
	RetentionPeriod *string `json:"retentionPeriod,omitempty"`
	// the backup repo name, which is used to store backup data
	BackupRepo *string `json:"backupRepo,omitempty"`
	// backup retention policy when cluster is deleted
	RetentionPolicy *BackupRetentionPolicy `json:"retentionPolicy,omitempty"`
	// the time to do next backup
	NextBackupTime *time.Time `json:"nextBackupTime,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

BackupPolicy BackupPolicy is the payload for KubeBlocks cluster backup policy

func NewBackupPolicy

func NewBackupPolicy() *BackupPolicy

NewBackupPolicy instantiates a new BackupPolicy 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 NewBackupPolicyWithDefaults

func NewBackupPolicyWithDefaults() *BackupPolicy

NewBackupPolicyWithDefaults instantiates a new BackupPolicy 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 (*BackupPolicy) GetAutoBackup

func (o *BackupPolicy) GetAutoBackup() bool

GetAutoBackup returns the AutoBackup field value if set, zero value otherwise.

func (*BackupPolicy) GetAutoBackupMethod

func (o *BackupPolicy) GetAutoBackupMethod() string

GetAutoBackupMethod returns the AutoBackupMethod field value if set, zero value otherwise.

func (*BackupPolicy) GetAutoBackupMethodOk

func (o *BackupPolicy) GetAutoBackupMethodOk() (*string, bool)

GetAutoBackupMethodOk returns a tuple with the AutoBackupMethod field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupPolicy) GetAutoBackupOk

func (o *BackupPolicy) GetAutoBackupOk() (*bool, bool)

GetAutoBackupOk returns a tuple with the AutoBackup field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupPolicy) GetBackupRepo

func (o *BackupPolicy) GetBackupRepo() string

GetBackupRepo returns the BackupRepo field value if set, zero value otherwise.

func (*BackupPolicy) GetBackupRepoOk

func (o *BackupPolicy) GetBackupRepoOk() (*string, bool)

GetBackupRepoOk returns a tuple with the BackupRepo field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupPolicy) GetCronExpression

func (o *BackupPolicy) GetCronExpression() string

GetCronExpression returns the CronExpression field value if set, zero value otherwise.

func (*BackupPolicy) GetCronExpressionOk

func (o *BackupPolicy) GetCronExpressionOk() (*string, bool)

GetCronExpressionOk returns a tuple with the CronExpression field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupPolicy) GetNextBackupTime

func (o *BackupPolicy) GetNextBackupTime() time.Time

GetNextBackupTime returns the NextBackupTime field value if set, zero value otherwise.

func (*BackupPolicy) GetNextBackupTimeOk

func (o *BackupPolicy) GetNextBackupTimeOk() (*time.Time, bool)

GetNextBackupTimeOk returns a tuple with the NextBackupTime field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupPolicy) GetPitrEnabled

func (o *BackupPolicy) GetPitrEnabled() bool

GetPitrEnabled returns the PitrEnabled field value if set, zero value otherwise.

func (*BackupPolicy) GetPitrEnabledOk

func (o *BackupPolicy) GetPitrEnabledOk() (*bool, bool)

GetPitrEnabledOk returns a tuple with the PitrEnabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupPolicy) GetRetentionPeriod

func (o *BackupPolicy) GetRetentionPeriod() string

GetRetentionPeriod returns the RetentionPeriod field value if set, zero value otherwise.

func (*BackupPolicy) GetRetentionPeriodOk

func (o *BackupPolicy) GetRetentionPeriodOk() (*string, bool)

GetRetentionPeriodOk returns a tuple with the RetentionPeriod field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupPolicy) GetRetentionPolicy

func (o *BackupPolicy) GetRetentionPolicy() BackupRetentionPolicy

GetRetentionPolicy returns the RetentionPolicy field value if set, zero value otherwise.

func (*BackupPolicy) GetRetentionPolicyOk

func (o *BackupPolicy) GetRetentionPolicyOk() (*BackupRetentionPolicy, bool)

GetRetentionPolicyOk returns a tuple with the RetentionPolicy field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupPolicy) HasAutoBackup

func (o *BackupPolicy) HasAutoBackup() bool

HasAutoBackup returns a boolean if a field has been set.

func (*BackupPolicy) HasAutoBackupMethod

func (o *BackupPolicy) HasAutoBackupMethod() bool

HasAutoBackupMethod returns a boolean if a field has been set.

func (*BackupPolicy) HasBackupRepo

func (o *BackupPolicy) HasBackupRepo() bool

HasBackupRepo returns a boolean if a field has been set.

func (*BackupPolicy) HasCronExpression

func (o *BackupPolicy) HasCronExpression() bool

HasCronExpression returns a boolean if a field has been set.

func (*BackupPolicy) HasNextBackupTime

func (o *BackupPolicy) HasNextBackupTime() bool

HasNextBackupTime returns a boolean if a field has been set.

func (*BackupPolicy) HasPitrEnabled

func (o *BackupPolicy) HasPitrEnabled() bool

HasPitrEnabled returns a boolean if a field has been set.

func (*BackupPolicy) HasRetentionPeriod

func (o *BackupPolicy) HasRetentionPeriod() bool

HasRetentionPeriod returns a boolean if a field has been set.

func (*BackupPolicy) HasRetentionPolicy

func (o *BackupPolicy) HasRetentionPolicy() bool

HasRetentionPolicy returns a boolean if a field has been set.

func (BackupPolicy) MarshalJSON

func (o BackupPolicy) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*BackupPolicy) SetAutoBackup

func (o *BackupPolicy) SetAutoBackup(v bool)

SetAutoBackup gets a reference to the given bool and assigns it to the AutoBackup field.

func (*BackupPolicy) SetAutoBackupMethod

func (o *BackupPolicy) SetAutoBackupMethod(v string)

SetAutoBackupMethod gets a reference to the given string and assigns it to the AutoBackupMethod field.

func (*BackupPolicy) SetBackupRepo

func (o *BackupPolicy) SetBackupRepo(v string)

SetBackupRepo gets a reference to the given string and assigns it to the BackupRepo field.

func (*BackupPolicy) SetCronExpression

func (o *BackupPolicy) SetCronExpression(v string)

SetCronExpression gets a reference to the given string and assigns it to the CronExpression field.

func (*BackupPolicy) SetNextBackupTime

func (o *BackupPolicy) SetNextBackupTime(v time.Time)

SetNextBackupTime gets a reference to the given time.Time and assigns it to the NextBackupTime field.

func (*BackupPolicy) SetPitrEnabled

func (o *BackupPolicy) SetPitrEnabled(v bool)

SetPitrEnabled gets a reference to the given bool and assigns it to the PitrEnabled field.

func (*BackupPolicy) SetRetentionPeriod

func (o *BackupPolicy) SetRetentionPeriod(v string)

SetRetentionPeriod gets a reference to the given string and assigns it to the RetentionPeriod field.

func (*BackupPolicy) SetRetentionPolicy

func (o *BackupPolicy) SetRetentionPolicy(v BackupRetentionPolicy)

SetRetentionPolicy gets a reference to the given BackupRetentionPolicy and assigns it to the RetentionPolicy field.

func (*BackupPolicy) UnmarshalJSON

func (o *BackupPolicy) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type BackupRepo

type BackupRepo struct {
	// the access method for backup repo
	AccessMethod BackupRepoAccessMethod `json:"accessMethod"`
	// the id of backup repo
	Id *string `json:"id,omitempty"`
	// backupNums specifies the number of backups in the backupRepo
	BackupNums *int32 `json:"backupNums,omitempty"`
	// config specifies the configuration of the backupRepo
	Config map[string]string `json:"config"`
	// createdAt specifies the creation time of the backupRepo
	CreatedAt time.Time `json:"createdAt"`
	// default specifies whether the backupRepo is the default backupRepo
	Default bool `json:"default"`
	// environmentId of the backupRepo
	EnvironmentId uuid.UUID `json:"environmentId"`
	// environmentName of the backupRepo
	EnvironmentName string `json:"environmentName"`
	// name of the backupRepo
	Name string `json:"name"`
	// status specifies the status of the backupRepo
	Status string `json:"status"`
	// the id of storage used by backup repo
	StorageId *string `json:"storageID,omitempty"`
	// storageProvider specifies the storage provider of the backupRepo
	StorageProvider string `json:"storageProvider"`
	// totalSize specifies the total size of backups in the backupRepo
	TotalSize *string `json:"totalSize,omitempty"`
	// failedReason specifies the reason of the backupRepo failure
	FailedReason *string `json:"failedReason,omitempty"`
	// failedMessage specifies the message of the backupRepo failure
	FailedMessage *string `json:"failedMessage,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

BackupRepo backupRepo is the payload for KubeBlocks cluster backup repo

func NewBackupRepo

func NewBackupRepo(accessMethod BackupRepoAccessMethod, config map[string]string, createdAt time.Time, defaultVar bool, environmentId uuid.UUID, environmentName string, name string, status string, storageProvider string) *BackupRepo

NewBackupRepo instantiates a new BackupRepo 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 NewBackupRepoWithDefaults

func NewBackupRepoWithDefaults() *BackupRepo

NewBackupRepoWithDefaults instantiates a new BackupRepo 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 (*BackupRepo) GetAccessMethod

func (o *BackupRepo) GetAccessMethod() BackupRepoAccessMethod

GetAccessMethod returns the AccessMethod field value.

func (*BackupRepo) GetAccessMethodOk

func (o *BackupRepo) GetAccessMethodOk() (*BackupRepoAccessMethod, bool)

GetAccessMethodOk returns a tuple with the AccessMethod field value and a boolean to check if the value has been set.

func (*BackupRepo) GetBackupNums

func (o *BackupRepo) GetBackupNums() int32

GetBackupNums returns the BackupNums field value if set, zero value otherwise.

func (*BackupRepo) GetBackupNumsOk

func (o *BackupRepo) GetBackupNumsOk() (*int32, bool)

GetBackupNumsOk returns a tuple with the BackupNums field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupRepo) GetConfig

func (o *BackupRepo) GetConfig() map[string]string

GetConfig returns the Config field value.

func (*BackupRepo) GetConfigOk

func (o *BackupRepo) GetConfigOk() (*map[string]string, bool)

GetConfigOk returns a tuple with the Config field value and a boolean to check if the value has been set.

func (*BackupRepo) GetCreatedAt

func (o *BackupRepo) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field value.

func (*BackupRepo) GetCreatedAtOk

func (o *BackupRepo) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value and a boolean to check if the value has been set.

func (*BackupRepo) GetDefault

func (o *BackupRepo) GetDefault() bool

GetDefault returns the Default field value.

func (*BackupRepo) GetDefaultOk

func (o *BackupRepo) GetDefaultOk() (*bool, bool)

GetDefaultOk returns a tuple with the Default field value and a boolean to check if the value has been set.

func (*BackupRepo) GetEnvironmentId

func (o *BackupRepo) GetEnvironmentId() uuid.UUID

GetEnvironmentId returns the EnvironmentId field value.

func (*BackupRepo) GetEnvironmentIdOk

func (o *BackupRepo) GetEnvironmentIdOk() (*uuid.UUID, bool)

GetEnvironmentIdOk returns a tuple with the EnvironmentId field value and a boolean to check if the value has been set.

func (*BackupRepo) GetEnvironmentName

func (o *BackupRepo) GetEnvironmentName() string

GetEnvironmentName returns the EnvironmentName field value.

func (*BackupRepo) GetEnvironmentNameOk

func (o *BackupRepo) GetEnvironmentNameOk() (*string, bool)

GetEnvironmentNameOk returns a tuple with the EnvironmentName field value and a boolean to check if the value has been set.

func (*BackupRepo) GetFailedMessage

func (o *BackupRepo) GetFailedMessage() string

GetFailedMessage returns the FailedMessage field value if set, zero value otherwise.

func (*BackupRepo) GetFailedMessageOk

func (o *BackupRepo) GetFailedMessageOk() (*string, bool)

GetFailedMessageOk returns a tuple with the FailedMessage field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupRepo) GetFailedReason

func (o *BackupRepo) GetFailedReason() string

GetFailedReason returns the FailedReason field value if set, zero value otherwise.

func (*BackupRepo) GetFailedReasonOk

func (o *BackupRepo) GetFailedReasonOk() (*string, bool)

GetFailedReasonOk returns a tuple with the FailedReason field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupRepo) GetId

func (o *BackupRepo) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*BackupRepo) GetIdOk

func (o *BackupRepo) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupRepo) GetName

func (o *BackupRepo) GetName() string

GetName returns the Name field value.

func (*BackupRepo) GetNameOk

func (o *BackupRepo) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*BackupRepo) GetStatus

func (o *BackupRepo) GetStatus() string

GetStatus returns the Status field value.

func (*BackupRepo) GetStatusOk

func (o *BackupRepo) GetStatusOk() (*string, bool)

GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.

func (*BackupRepo) GetStorageId

func (o *BackupRepo) GetStorageId() string

GetStorageId returns the StorageId field value if set, zero value otherwise.

func (*BackupRepo) GetStorageIdOk

func (o *BackupRepo) GetStorageIdOk() (*string, bool)

GetStorageIdOk returns a tuple with the StorageId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupRepo) GetStorageProvider

func (o *BackupRepo) GetStorageProvider() string

GetStorageProvider returns the StorageProvider field value.

func (*BackupRepo) GetStorageProviderOk

func (o *BackupRepo) GetStorageProviderOk() (*string, bool)

GetStorageProviderOk returns a tuple with the StorageProvider field value and a boolean to check if the value has been set.

func (*BackupRepo) GetTotalSize

func (o *BackupRepo) GetTotalSize() string

GetTotalSize returns the TotalSize field value if set, zero value otherwise.

func (*BackupRepo) GetTotalSizeOk

func (o *BackupRepo) GetTotalSizeOk() (*string, bool)

GetTotalSizeOk returns a tuple with the TotalSize field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupRepo) HasBackupNums

func (o *BackupRepo) HasBackupNums() bool

HasBackupNums returns a boolean if a field has been set.

func (*BackupRepo) HasFailedMessage

func (o *BackupRepo) HasFailedMessage() bool

HasFailedMessage returns a boolean if a field has been set.

func (*BackupRepo) HasFailedReason

func (o *BackupRepo) HasFailedReason() bool

HasFailedReason returns a boolean if a field has been set.

func (*BackupRepo) HasId

func (o *BackupRepo) HasId() bool

HasId returns a boolean if a field has been set.

func (*BackupRepo) HasStorageId

func (o *BackupRepo) HasStorageId() bool

HasStorageId returns a boolean if a field has been set.

func (*BackupRepo) HasTotalSize

func (o *BackupRepo) HasTotalSize() bool

HasTotalSize returns a boolean if a field has been set.

func (BackupRepo) MarshalJSON

func (o BackupRepo) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*BackupRepo) SetAccessMethod

func (o *BackupRepo) SetAccessMethod(v BackupRepoAccessMethod)

SetAccessMethod sets field value.

func (*BackupRepo) SetBackupNums

func (o *BackupRepo) SetBackupNums(v int32)

SetBackupNums gets a reference to the given int32 and assigns it to the BackupNums field.

func (*BackupRepo) SetConfig

func (o *BackupRepo) SetConfig(v map[string]string)

SetConfig sets field value.

func (*BackupRepo) SetCreatedAt

func (o *BackupRepo) SetCreatedAt(v time.Time)

SetCreatedAt sets field value.

func (*BackupRepo) SetDefault

func (o *BackupRepo) SetDefault(v bool)

SetDefault sets field value.

func (*BackupRepo) SetEnvironmentId

func (o *BackupRepo) SetEnvironmentId(v uuid.UUID)

SetEnvironmentId sets field value.

func (*BackupRepo) SetEnvironmentName

func (o *BackupRepo) SetEnvironmentName(v string)

SetEnvironmentName sets field value.

func (*BackupRepo) SetFailedMessage

func (o *BackupRepo) SetFailedMessage(v string)

SetFailedMessage gets a reference to the given string and assigns it to the FailedMessage field.

func (*BackupRepo) SetFailedReason

func (o *BackupRepo) SetFailedReason(v string)

SetFailedReason gets a reference to the given string and assigns it to the FailedReason field.

func (*BackupRepo) SetId

func (o *BackupRepo) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*BackupRepo) SetName

func (o *BackupRepo) SetName(v string)

SetName sets field value.

func (*BackupRepo) SetStatus

func (o *BackupRepo) SetStatus(v string)

SetStatus sets field value.

func (*BackupRepo) SetStorageId

func (o *BackupRepo) SetStorageId(v string)

SetStorageId gets a reference to the given string and assigns it to the StorageId field.

func (*BackupRepo) SetStorageProvider

func (o *BackupRepo) SetStorageProvider(v string)

SetStorageProvider sets field value.

func (*BackupRepo) SetTotalSize

func (o *BackupRepo) SetTotalSize(v string)

SetTotalSize gets a reference to the given string and assigns it to the TotalSize field.

func (*BackupRepo) UnmarshalJSON

func (o *BackupRepo) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type BackupRepoAccessMethod

type BackupRepoAccessMethod string

BackupRepoAccessMethod the access method for backup repo

const (
	BackupRepoAccessMethodMount BackupRepoAccessMethod = "Mount"
	BackupRepoAccessMethodTool  BackupRepoAccessMethod = "Tool"
)

List of BackupRepoAccessMethod.

func NewBackupRepoAccessMethodFromValue

func NewBackupRepoAccessMethodFromValue(v string) (*BackupRepoAccessMethod, error)

NewBackupRepoAccessMethodFromValue returns a pointer to a valid BackupRepoAccessMethod for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*BackupRepoAccessMethod) GetAllowedValues

func (v *BackupRepoAccessMethod) GetAllowedValues() []BackupRepoAccessMethod

GetAllowedValues returns the list of possible values.

func (BackupRepoAccessMethod) IsValid

func (v BackupRepoAccessMethod) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (BackupRepoAccessMethod) Ptr

Ptr returns reference to BackupRepoAccessMethod value.

func (*BackupRepoAccessMethod) UnmarshalJSON

func (v *BackupRepoAccessMethod) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type BackupRepoApi

type BackupRepoApi common.Service

BackupRepoApi service type

func NewBackupRepoApi

func NewBackupRepoApi(client *common.APIClient) *BackupRepoApi

NewBackupRepoApi Returns NewBackupRepoApi.

func (*BackupRepoApi) DeleteBackupRepo

func (a *BackupRepoApi) DeleteBackupRepo(ctx _context.Context, environmentName string, backupRepoName string) (*_nethttp.Response, error)

DeleteBackupRepo Delete backup repo.

func (*BackupRepoApi) GetBackupRepo

func (a *BackupRepoApi) GetBackupRepo(ctx _context.Context, environmentName string, backupRepoName string, o ...GetBackupRepoOptionalParameters) (BackupRepo, *_nethttp.Response, error)

GetBackupRepo Get backup repo.

func (*BackupRepoApi) ListBackupRepos

func (a *BackupRepoApi) ListBackupRepos(ctx _context.Context, orgName string) (BackupRepoList, *_nethttp.Response, error)

ListBackupRepos List backup repos.

func (*BackupRepoApi) UpdateBackupRepo

func (a *BackupRepoApi) UpdateBackupRepo(ctx _context.Context, environmentName string, backupRepoName string, body BackupRepoUpdate) (BackupRepo, *_nethttp.Response, error)

UpdateBackupRepo Update backup repo.

type BackupRepoList

type BackupRepoList struct {
	// Items is the list of backupRepo objects in the list
	Items []BackupRepo `json:"items"`
	// PageResult info
	PageResult *PageResult `json:"pageResult,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

BackupRepoList BackupRepoList is a list of backupRepo

func NewBackupRepoList

func NewBackupRepoList(items []BackupRepo) *BackupRepoList

NewBackupRepoList instantiates a new BackupRepoList 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 NewBackupRepoListWithDefaults

func NewBackupRepoListWithDefaults() *BackupRepoList

NewBackupRepoListWithDefaults instantiates a new BackupRepoList 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 (*BackupRepoList) GetItems

func (o *BackupRepoList) GetItems() []BackupRepo

GetItems returns the Items field value.

func (*BackupRepoList) GetItemsOk

func (o *BackupRepoList) GetItemsOk() (*[]BackupRepo, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (*BackupRepoList) GetPageResult

func (o *BackupRepoList) GetPageResult() PageResult

GetPageResult returns the PageResult field value if set, zero value otherwise.

func (*BackupRepoList) GetPageResultOk

func (o *BackupRepoList) GetPageResultOk() (*PageResult, bool)

GetPageResultOk returns a tuple with the PageResult field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupRepoList) HasPageResult

func (o *BackupRepoList) HasPageResult() bool

HasPageResult returns a boolean if a field has been set.

func (BackupRepoList) MarshalJSON

func (o BackupRepoList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*BackupRepoList) SetItems

func (o *BackupRepoList) SetItems(v []BackupRepo)

SetItems sets field value.

func (*BackupRepoList) SetPageResult

func (o *BackupRepoList) SetPageResult(v PageResult)

SetPageResult gets a reference to the given PageResult and assigns it to the PageResult field.

func (*BackupRepoList) UnmarshalJSON

func (o *BackupRepoList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type BackupRepoUpdate

type BackupRepoUpdate struct {
	// default specifies whether the backupRepo is the default backupRepo
	Default *bool `json:"default,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

BackupRepoUpdate BackupRepoUpdate is the payload to update a KubeBlocks cluster backup repo

func NewBackupRepoUpdate

func NewBackupRepoUpdate() *BackupRepoUpdate

NewBackupRepoUpdate instantiates a new BackupRepoUpdate 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 NewBackupRepoUpdateWithDefaults

func NewBackupRepoUpdateWithDefaults() *BackupRepoUpdate

NewBackupRepoUpdateWithDefaults instantiates a new BackupRepoUpdate 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 (*BackupRepoUpdate) GetDefault

func (o *BackupRepoUpdate) GetDefault() bool

GetDefault returns the Default field value if set, zero value otherwise.

func (*BackupRepoUpdate) GetDefaultOk

func (o *BackupRepoUpdate) GetDefaultOk() (*bool, bool)

GetDefaultOk returns a tuple with the Default field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupRepoUpdate) HasDefault

func (o *BackupRepoUpdate) HasDefault() bool

HasDefault returns a boolean if a field has been set.

func (BackupRepoUpdate) MarshalJSON

func (o BackupRepoUpdate) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*BackupRepoUpdate) SetDefault

func (o *BackupRepoUpdate) SetDefault(v bool)

SetDefault gets a reference to the given bool and assigns it to the Default field.

func (*BackupRepoUpdate) UnmarshalJSON

func (o *BackupRepoUpdate) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type BackupRetentionPolicy

type BackupRetentionPolicy string

BackupRetentionPolicy backup retention policy when cluster is deleted

const (
	BackupRetentionPolicyAll     BackupRetentionPolicy = "All"
	BackupRetentionPolicyLastOne BackupRetentionPolicy = "LastOne"
	BackupRetentionPolicyWipeOut BackupRetentionPolicy = "WipeOut"
)

List of BackupRetentionPolicy.

func NewBackupRetentionPolicyFromValue

func NewBackupRetentionPolicyFromValue(v string) (*BackupRetentionPolicy, error)

NewBackupRetentionPolicyFromValue returns a pointer to a valid BackupRetentionPolicy for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*BackupRetentionPolicy) GetAllowedValues

func (v *BackupRetentionPolicy) GetAllowedValues() []BackupRetentionPolicy

GetAllowedValues returns the list of possible values.

func (BackupRetentionPolicy) IsValid

func (v BackupRetentionPolicy) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (BackupRetentionPolicy) Ptr

Ptr returns reference to BackupRetentionPolicy value.

func (*BackupRetentionPolicy) UnmarshalJSON

func (v *BackupRetentionPolicy) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type BackupStats

type BackupStats struct {
	// Number of backups for each defferent status
	BackupStatsStatus []BackupStatsStatus `json:"backupStatsStatus,omitempty"`
	// Totalsize and number of backups for each engine
	BackupStatsEngine []BackupStatsEngine `json:"backupStatsEngine,omitempty"`
	// create time of the latest backup
	LatestBackupTime common.NullableTime `json:"latestBackupTime,omitempty"`
	// backup status of the latest backup
	LatestBackupStatus common.NullableString `json:"latestBackupStatus,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

BackupStats Backup statistic info

func NewBackupStats

func NewBackupStats() *BackupStats

NewBackupStats instantiates a new BackupStats 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 NewBackupStatsWithDefaults

func NewBackupStatsWithDefaults() *BackupStats

NewBackupStatsWithDefaults instantiates a new BackupStats 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 (*BackupStats) GetBackupStatsEngine

func (o *BackupStats) GetBackupStatsEngine() []BackupStatsEngine

GetBackupStatsEngine returns the BackupStatsEngine field value if set, zero value otherwise.

func (*BackupStats) GetBackupStatsEngineOk

func (o *BackupStats) GetBackupStatsEngineOk() (*[]BackupStatsEngine, bool)

GetBackupStatsEngineOk returns a tuple with the BackupStatsEngine field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupStats) GetBackupStatsStatus

func (o *BackupStats) GetBackupStatsStatus() []BackupStatsStatus

GetBackupStatsStatus returns the BackupStatsStatus field value if set, zero value otherwise.

func (*BackupStats) GetBackupStatsStatusOk

func (o *BackupStats) GetBackupStatsStatusOk() (*[]BackupStatsStatus, bool)

GetBackupStatsStatusOk returns a tuple with the BackupStatsStatus field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupStats) GetLatestBackupStatus

func (o *BackupStats) GetLatestBackupStatus() string

GetLatestBackupStatus returns the LatestBackupStatus field value if set, zero value otherwise (both if not set or set to explicit null).

func (*BackupStats) GetLatestBackupStatusOk

func (o *BackupStats) GetLatestBackupStatusOk() (*string, bool)

GetLatestBackupStatusOk returns a tuple with the LatestBackupStatus field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.

func (*BackupStats) GetLatestBackupTime

func (o *BackupStats) GetLatestBackupTime() time.Time

GetLatestBackupTime returns the LatestBackupTime field value if set, zero value otherwise (both if not set or set to explicit null).

func (*BackupStats) GetLatestBackupTimeOk

func (o *BackupStats) GetLatestBackupTimeOk() (*time.Time, bool)

GetLatestBackupTimeOk returns a tuple with the LatestBackupTime field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.

func (*BackupStats) HasBackupStatsEngine

func (o *BackupStats) HasBackupStatsEngine() bool

HasBackupStatsEngine returns a boolean if a field has been set.

func (*BackupStats) HasBackupStatsStatus

func (o *BackupStats) HasBackupStatsStatus() bool

HasBackupStatsStatus returns a boolean if a field has been set.

func (*BackupStats) HasLatestBackupStatus

func (o *BackupStats) HasLatestBackupStatus() bool

HasLatestBackupStatus returns a boolean if a field has been set.

func (*BackupStats) HasLatestBackupTime

func (o *BackupStats) HasLatestBackupTime() bool

HasLatestBackupTime returns a boolean if a field has been set.

func (BackupStats) MarshalJSON

func (o BackupStats) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*BackupStats) SetBackupStatsEngine

func (o *BackupStats) SetBackupStatsEngine(v []BackupStatsEngine)

SetBackupStatsEngine gets a reference to the given []BackupStatsEngine and assigns it to the BackupStatsEngine field.

func (*BackupStats) SetBackupStatsStatus

func (o *BackupStats) SetBackupStatsStatus(v []BackupStatsStatus)

SetBackupStatsStatus gets a reference to the given []BackupStatsStatus and assigns it to the BackupStatsStatus field.

func (*BackupStats) SetLatestBackupStatus

func (o *BackupStats) SetLatestBackupStatus(v string)

SetLatestBackupStatus gets a reference to the given common.NullableString and assigns it to the LatestBackupStatus field.

func (*BackupStats) SetLatestBackupStatusNil

func (o *BackupStats) SetLatestBackupStatusNil()

SetLatestBackupStatusNil sets the value for LatestBackupStatus to be an explicit nil.

func (*BackupStats) SetLatestBackupTime

func (o *BackupStats) SetLatestBackupTime(v time.Time)

SetLatestBackupTime gets a reference to the given common.NullableTime and assigns it to the LatestBackupTime field.

func (*BackupStats) SetLatestBackupTimeNil

func (o *BackupStats) SetLatestBackupTimeNil()

SetLatestBackupTimeNil sets the value for LatestBackupTime to be an explicit nil.

func (*BackupStats) UnmarshalJSON

func (o *BackupStats) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

func (*BackupStats) UnsetLatestBackupStatus

func (o *BackupStats) UnsetLatestBackupStatus()

UnsetLatestBackupStatus ensures that no value is present for LatestBackupStatus, not even an explicit nil.

func (*BackupStats) UnsetLatestBackupTime

func (o *BackupStats) UnsetLatestBackupTime()

UnsetLatestBackupTime ensures that no value is present for LatestBackupTime, not even an explicit nil.

type BackupStatsEngine

type BackupStatsEngine struct {
	// Engine name
	EngineName *string `json:"engineName,omitempty"`
	// totalsize of backups for each engine, A string with capacity units in the form of "1Gi", "1Mi", "1Ki".
	BackupSize *string `json:"backupSize,omitempty"`
	// The number of backups for each engine
	BackupNum *int64 `json:"backupNum,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

BackupStatsEngine Totalsize and number of backups for the engine

func NewBackupStatsEngine

func NewBackupStatsEngine() *BackupStatsEngine

NewBackupStatsEngine instantiates a new BackupStatsEngine 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 NewBackupStatsEngineWithDefaults

func NewBackupStatsEngineWithDefaults() *BackupStatsEngine

NewBackupStatsEngineWithDefaults instantiates a new BackupStatsEngine 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 (*BackupStatsEngine) GetBackupNum

func (o *BackupStatsEngine) GetBackupNum() int64

GetBackupNum returns the BackupNum field value if set, zero value otherwise.

func (*BackupStatsEngine) GetBackupNumOk

func (o *BackupStatsEngine) GetBackupNumOk() (*int64, bool)

GetBackupNumOk returns a tuple with the BackupNum field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupStatsEngine) GetBackupSize

func (o *BackupStatsEngine) GetBackupSize() string

GetBackupSize returns the BackupSize field value if set, zero value otherwise.

func (*BackupStatsEngine) GetBackupSizeOk

func (o *BackupStatsEngine) GetBackupSizeOk() (*string, bool)

GetBackupSizeOk returns a tuple with the BackupSize field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupStatsEngine) GetEngineName

func (o *BackupStatsEngine) GetEngineName() string

GetEngineName returns the EngineName field value if set, zero value otherwise.

func (*BackupStatsEngine) GetEngineNameOk

func (o *BackupStatsEngine) GetEngineNameOk() (*string, bool)

GetEngineNameOk returns a tuple with the EngineName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupStatsEngine) HasBackupNum

func (o *BackupStatsEngine) HasBackupNum() bool

HasBackupNum returns a boolean if a field has been set.

func (*BackupStatsEngine) HasBackupSize

func (o *BackupStatsEngine) HasBackupSize() bool

HasBackupSize returns a boolean if a field has been set.

func (*BackupStatsEngine) HasEngineName

func (o *BackupStatsEngine) HasEngineName() bool

HasEngineName returns a boolean if a field has been set.

func (BackupStatsEngine) MarshalJSON

func (o BackupStatsEngine) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*BackupStatsEngine) SetBackupNum

func (o *BackupStatsEngine) SetBackupNum(v int64)

SetBackupNum gets a reference to the given int64 and assigns it to the BackupNum field.

func (*BackupStatsEngine) SetBackupSize

func (o *BackupStatsEngine) SetBackupSize(v string)

SetBackupSize gets a reference to the given string and assigns it to the BackupSize field.

func (*BackupStatsEngine) SetEngineName

func (o *BackupStatsEngine) SetEngineName(v string)

SetEngineName gets a reference to the given string and assigns it to the EngineName field.

func (*BackupStatsEngine) UnmarshalJSON

func (o *BackupStatsEngine) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type BackupStatsStatus

type BackupStatsStatus struct {
	// Backup status
	Status *string `json:"status,omitempty"`
	// Number of backups for each status
	BackupNum *int64 `json:"backupNum,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

BackupStatsStatus Number of backups for the status

func NewBackupStatsStatus

func NewBackupStatsStatus() *BackupStatsStatus

NewBackupStatsStatus instantiates a new BackupStatsStatus 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 NewBackupStatsStatusWithDefaults

func NewBackupStatsStatusWithDefaults() *BackupStatsStatus

NewBackupStatsStatusWithDefaults instantiates a new BackupStatsStatus 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 (*BackupStatsStatus) GetBackupNum

func (o *BackupStatsStatus) GetBackupNum() int64

GetBackupNum returns the BackupNum field value if set, zero value otherwise.

func (*BackupStatsStatus) GetBackupNumOk

func (o *BackupStatsStatus) GetBackupNumOk() (*int64, bool)

GetBackupNumOk returns a tuple with the BackupNum field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupStatsStatus) GetStatus

func (o *BackupStatsStatus) GetStatus() string

GetStatus returns the Status field value if set, zero value otherwise.

func (*BackupStatsStatus) GetStatusOk

func (o *BackupStatsStatus) GetStatusOk() (*string, bool)

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 (*BackupStatsStatus) HasBackupNum

func (o *BackupStatsStatus) HasBackupNum() bool

HasBackupNum returns a boolean if a field has been set.

func (*BackupStatsStatus) HasStatus

func (o *BackupStatsStatus) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (BackupStatsStatus) MarshalJSON

func (o BackupStatsStatus) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*BackupStatsStatus) SetBackupNum

func (o *BackupStatsStatus) SetBackupNum(v int64)

SetBackupNum gets a reference to the given int64 and assigns it to the BackupNum field.

func (*BackupStatsStatus) SetStatus

func (o *BackupStatsStatus) SetStatus(v string)

SetStatus gets a reference to the given string and assigns it to the Status field.

func (*BackupStatsStatus) UnmarshalJSON

func (o *BackupStatsStatus) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type BackupStatus

type BackupStatus string

BackupStatus The current status. Valid values are New, InProgress, Completed, Failed.

const (
	BackupStatusNew        BackupStatus = "New"
	BackupStatusInProgress BackupStatus = "InProgress"
	BackupStatusRunning    BackupStatus = "Running"
	BackupStatusCompleted  BackupStatus = "Completed"
	BackupStatusFailed     BackupStatus = "Failed"
	BackupStatusDeleting   BackupStatus = "Deleting"
)

List of BackupStatus.

func NewBackupStatusFromValue

func NewBackupStatusFromValue(v string) (*BackupStatus, error)

NewBackupStatusFromValue returns a pointer to a valid BackupStatus for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*BackupStatus) GetAllowedValues

func (v *BackupStatus) GetAllowedValues() []BackupStatus

GetAllowedValues returns the list of possible values.

func (BackupStatus) IsValid

func (v BackupStatus) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (BackupStatus) Ptr

func (v BackupStatus) Ptr() *BackupStatus

Ptr returns reference to BackupStatus value.

func (*BackupStatus) UnmarshalJSON

func (v *BackupStatus) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type BackupType

type BackupType string

BackupType the type of backup

const (
	BackupTypeFull         BackupType = "Full"
	BackupTypeIncremental  BackupType = "Incremental"
	BackupTypeDifferential BackupType = "Differential"
	BackupTypeContinuous   BackupType = "Continuous"
)

List of BackupType.

func NewBackupTypeFromValue

func NewBackupTypeFromValue(v string) (*BackupType, error)

NewBackupTypeFromValue returns a pointer to a valid BackupType for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*BackupType) GetAllowedValues

func (v *BackupType) GetAllowedValues() []BackupType

GetAllowedValues returns the list of possible values.

func (BackupType) IsValid

func (v BackupType) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (BackupType) Ptr

func (v BackupType) Ptr() *BackupType

Ptr returns reference to BackupType value.

func (*BackupType) UnmarshalJSON

func (v *BackupType) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type BackupView

type BackupView struct {
	// the paths of file to view
	Filepaths []string `json:"filepaths,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewBackupView

func NewBackupView() *BackupView

NewBackupView instantiates a new BackupView 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 NewBackupViewWithDefaults

func NewBackupViewWithDefaults() *BackupView

NewBackupViewWithDefaults instantiates a new BackupView 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 (*BackupView) GetFilepaths

func (o *BackupView) GetFilepaths() []string

GetFilepaths returns the Filepaths field value if set, zero value otherwise.

func (*BackupView) GetFilepathsOk

func (o *BackupView) GetFilepathsOk() (*[]string, bool)

GetFilepathsOk returns a tuple with the Filepaths field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BackupView) HasFilepaths

func (o *BackupView) HasFilepaths() bool

HasFilepaths returns a boolean if a field has been set.

func (BackupView) MarshalJSON

func (o BackupView) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*BackupView) SetFilepaths

func (o *BackupView) SetFilepaths(v []string)

SetFilepaths gets a reference to the given []string and assigns it to the Filepaths field.

func (*BackupView) UnmarshalJSON

func (o *BackupView) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type BenchOption

type BenchOption struct {
	Pgbench  bool `json:"pgbench"`
	Sysbench bool `json:"sysbench"`
	Tpcc     bool `json:"tpcc"`
	Ycsb     bool `json:"ycsb"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewBenchOption

func NewBenchOption(pgbench bool, sysbench bool, tpcc bool, ycsb bool) *BenchOption

NewBenchOption instantiates a new BenchOption 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 NewBenchOptionWithDefaults

func NewBenchOptionWithDefaults() *BenchOption

NewBenchOptionWithDefaults instantiates a new BenchOption 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 (*BenchOption) GetPgbench

func (o *BenchOption) GetPgbench() bool

GetPgbench returns the Pgbench field value.

func (*BenchOption) GetPgbenchOk

func (o *BenchOption) GetPgbenchOk() (*bool, bool)

GetPgbenchOk returns a tuple with the Pgbench field value and a boolean to check if the value has been set.

func (*BenchOption) GetSysbench

func (o *BenchOption) GetSysbench() bool

GetSysbench returns the Sysbench field value.

func (*BenchOption) GetSysbenchOk

func (o *BenchOption) GetSysbenchOk() (*bool, bool)

GetSysbenchOk returns a tuple with the Sysbench field value and a boolean to check if the value has been set.

func (*BenchOption) GetTpcc

func (o *BenchOption) GetTpcc() bool

GetTpcc returns the Tpcc field value.

func (*BenchOption) GetTpccOk

func (o *BenchOption) GetTpccOk() (*bool, bool)

GetTpccOk returns a tuple with the Tpcc field value and a boolean to check if the value has been set.

func (*BenchOption) GetYcsb

func (o *BenchOption) GetYcsb() bool

GetYcsb returns the Ycsb field value.

func (*BenchOption) GetYcsbOk

func (o *BenchOption) GetYcsbOk() (*bool, bool)

GetYcsbOk returns a tuple with the Ycsb field value and a boolean to check if the value has been set.

func (BenchOption) MarshalJSON

func (o BenchOption) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*BenchOption) SetPgbench

func (o *BenchOption) SetPgbench(v bool)

SetPgbench sets field value.

func (*BenchOption) SetSysbench

func (o *BenchOption) SetSysbench(v bool)

SetSysbench sets field value.

func (*BenchOption) SetTpcc

func (o *BenchOption) SetTpcc(v bool)

SetTpcc sets field value.

func (*BenchOption) SetYcsb

func (o *BenchOption) SetYcsb(v bool)

SetYcsb sets field value.

func (*BenchOption) UnmarshalJSON

func (o *BenchOption) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type Benchmark

type Benchmark struct {
	// ID of benchmark
	Id *string `json:"id,omitempty"`
	// Name of benchmark
	Name *string `json:"name,omitempty"`
	// Type of benchmark
	Type *BenchmarkType `json:"type,omitempty"`
	// Config of benchmark
	Config *string `json:"config,omitempty"`
	// the log of benchmark in prepare stage
	PrepareLog *string `json:"prepareLog,omitempty"`
	// the log of benchmark in run stage
	RunLog *string `json:"runLog,omitempty"`
	// the log of benchmark in cleanup stage
	CleanupLog *string `json:"cleanupLog,omitempty"`
	// the result of benchmark, only available when benchmark is complete
	Result *string `json:"result,omitempty"`
	// the message of benchmark, only available when benchmark is failed
	Message *string `json:"message,omitempty"`
	// the cluster name
	Cluster *string `json:"cluster,omitempty"`
	// the cluster id
	ClusterId *string `json:"clusterID,omitempty"`
	// the database name
	Database *string `json:"database,omitempty"`
	// the completion timestamp of benchmark
	CompletionTimestamp *time.Time `json:"completionTimestamp,omitempty"`
	// the create timestamp of benchmark
	CreatedAt *time.Time `json:"createdAt,omitempty"`
	// the status of benchmark
	Status *BenchmarkStatus `json:"status,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

Benchmark Benchmark is the benchmark object

func NewBenchmark

func NewBenchmark() *Benchmark

NewBenchmark instantiates a new Benchmark 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 NewBenchmarkWithDefaults

func NewBenchmarkWithDefaults() *Benchmark

NewBenchmarkWithDefaults instantiates a new Benchmark 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 (*Benchmark) GetCleanupLog

func (o *Benchmark) GetCleanupLog() string

GetCleanupLog returns the CleanupLog field value if set, zero value otherwise.

func (*Benchmark) GetCleanupLogOk

func (o *Benchmark) GetCleanupLogOk() (*string, bool)

GetCleanupLogOk returns a tuple with the CleanupLog field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Benchmark) GetCluster

func (o *Benchmark) GetCluster() string

GetCluster returns the Cluster field value if set, zero value otherwise.

func (*Benchmark) GetClusterId

func (o *Benchmark) GetClusterId() string

GetClusterId returns the ClusterId field value if set, zero value otherwise.

func (*Benchmark) GetClusterIdOk

func (o *Benchmark) GetClusterIdOk() (*string, bool)

GetClusterIdOk returns a tuple with the ClusterId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Benchmark) GetClusterOk

func (o *Benchmark) GetClusterOk() (*string, bool)

GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Benchmark) GetCompletionTimestamp

func (o *Benchmark) GetCompletionTimestamp() time.Time

GetCompletionTimestamp returns the CompletionTimestamp field value if set, zero value otherwise.

func (*Benchmark) GetCompletionTimestampOk

func (o *Benchmark) GetCompletionTimestampOk() (*time.Time, bool)

GetCompletionTimestampOk returns a tuple with the CompletionTimestamp field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Benchmark) GetConfig

func (o *Benchmark) GetConfig() string

GetConfig returns the Config field value if set, zero value otherwise.

func (*Benchmark) GetConfigOk

func (o *Benchmark) GetConfigOk() (*string, bool)

GetConfigOk returns a tuple with the Config field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Benchmark) GetCreatedAt

func (o *Benchmark) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.

func (*Benchmark) GetCreatedAtOk

func (o *Benchmark) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Benchmark) GetDatabase

func (o *Benchmark) GetDatabase() string

GetDatabase returns the Database field value if set, zero value otherwise.

func (*Benchmark) GetDatabaseOk

func (o *Benchmark) GetDatabaseOk() (*string, bool)

GetDatabaseOk returns a tuple with the Database field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Benchmark) GetId

func (o *Benchmark) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*Benchmark) GetIdOk

func (o *Benchmark) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Benchmark) GetMessage

func (o *Benchmark) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*Benchmark) GetMessageOk

func (o *Benchmark) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Benchmark) GetName

func (o *Benchmark) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*Benchmark) GetNameOk

func (o *Benchmark) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Benchmark) GetPrepareLog

func (o *Benchmark) GetPrepareLog() string

GetPrepareLog returns the PrepareLog field value if set, zero value otherwise.

func (*Benchmark) GetPrepareLogOk

func (o *Benchmark) GetPrepareLogOk() (*string, bool)

GetPrepareLogOk returns a tuple with the PrepareLog field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Benchmark) GetResult

func (o *Benchmark) GetResult() string

GetResult returns the Result field value if set, zero value otherwise.

func (*Benchmark) GetResultOk

func (o *Benchmark) GetResultOk() (*string, bool)

GetResultOk returns a tuple with the Result field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Benchmark) GetRunLog

func (o *Benchmark) GetRunLog() string

GetRunLog returns the RunLog field value if set, zero value otherwise.

func (*Benchmark) GetRunLogOk

func (o *Benchmark) GetRunLogOk() (*string, bool)

GetRunLogOk returns a tuple with the RunLog field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Benchmark) GetStatus

func (o *Benchmark) GetStatus() BenchmarkStatus

GetStatus returns the Status field value if set, zero value otherwise.

func (*Benchmark) GetStatusOk

func (o *Benchmark) GetStatusOk() (*BenchmarkStatus, bool)

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 (*Benchmark) GetType

func (o *Benchmark) GetType() BenchmarkType

GetType returns the Type field value if set, zero value otherwise.

func (*Benchmark) GetTypeOk

func (o *Benchmark) GetTypeOk() (*BenchmarkType, bool)

GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Benchmark) HasCleanupLog

func (o *Benchmark) HasCleanupLog() bool

HasCleanupLog returns a boolean if a field has been set.

func (*Benchmark) HasCluster

func (o *Benchmark) HasCluster() bool

HasCluster returns a boolean if a field has been set.

func (*Benchmark) HasClusterId

func (o *Benchmark) HasClusterId() bool

HasClusterId returns a boolean if a field has been set.

func (*Benchmark) HasCompletionTimestamp

func (o *Benchmark) HasCompletionTimestamp() bool

HasCompletionTimestamp returns a boolean if a field has been set.

func (*Benchmark) HasConfig

func (o *Benchmark) HasConfig() bool

HasConfig returns a boolean if a field has been set.

func (*Benchmark) HasCreatedAt

func (o *Benchmark) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*Benchmark) HasDatabase

func (o *Benchmark) HasDatabase() bool

HasDatabase returns a boolean if a field has been set.

func (*Benchmark) HasId

func (o *Benchmark) HasId() bool

HasId returns a boolean if a field has been set.

func (*Benchmark) HasMessage

func (o *Benchmark) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*Benchmark) HasName

func (o *Benchmark) HasName() bool

HasName returns a boolean if a field has been set.

func (*Benchmark) HasPrepareLog

func (o *Benchmark) HasPrepareLog() bool

HasPrepareLog returns a boolean if a field has been set.

func (*Benchmark) HasResult

func (o *Benchmark) HasResult() bool

HasResult returns a boolean if a field has been set.

func (*Benchmark) HasRunLog

func (o *Benchmark) HasRunLog() bool

HasRunLog returns a boolean if a field has been set.

func (*Benchmark) HasStatus

func (o *Benchmark) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (*Benchmark) HasType

func (o *Benchmark) HasType() bool

HasType returns a boolean if a field has been set.

func (Benchmark) MarshalJSON

func (o Benchmark) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*Benchmark) SetCleanupLog

func (o *Benchmark) SetCleanupLog(v string)

SetCleanupLog gets a reference to the given string and assigns it to the CleanupLog field.

func (*Benchmark) SetCluster

func (o *Benchmark) SetCluster(v string)

SetCluster gets a reference to the given string and assigns it to the Cluster field.

func (*Benchmark) SetClusterId

func (o *Benchmark) SetClusterId(v string)

SetClusterId gets a reference to the given string and assigns it to the ClusterId field.

func (*Benchmark) SetCompletionTimestamp

func (o *Benchmark) SetCompletionTimestamp(v time.Time)

SetCompletionTimestamp gets a reference to the given time.Time and assigns it to the CompletionTimestamp field.

func (*Benchmark) SetConfig

func (o *Benchmark) SetConfig(v string)

SetConfig gets a reference to the given string and assigns it to the Config field.

func (*Benchmark) SetCreatedAt

func (o *Benchmark) SetCreatedAt(v time.Time)

SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.

func (*Benchmark) SetDatabase

func (o *Benchmark) SetDatabase(v string)

SetDatabase gets a reference to the given string and assigns it to the Database field.

func (*Benchmark) SetId

func (o *Benchmark) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*Benchmark) SetMessage

func (o *Benchmark) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (*Benchmark) SetName

func (o *Benchmark) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*Benchmark) SetPrepareLog

func (o *Benchmark) SetPrepareLog(v string)

SetPrepareLog gets a reference to the given string and assigns it to the PrepareLog field.

func (*Benchmark) SetResult

func (o *Benchmark) SetResult(v string)

SetResult gets a reference to the given string and assigns it to the Result field.

func (*Benchmark) SetRunLog

func (o *Benchmark) SetRunLog(v string)

SetRunLog gets a reference to the given string and assigns it to the RunLog field.

func (*Benchmark) SetStatus

func (o *Benchmark) SetStatus(v BenchmarkStatus)

SetStatus gets a reference to the given BenchmarkStatus and assigns it to the Status field.

func (*Benchmark) SetType

func (o *Benchmark) SetType(v BenchmarkType)

SetType gets a reference to the given BenchmarkType and assigns it to the Type field.

func (*Benchmark) UnmarshalJSON

func (o *Benchmark) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type BenchmarkApi

type BenchmarkApi common.Service

BenchmarkApi service type

func NewBenchmarkApi

func NewBenchmarkApi(client *common.APIClient) *BenchmarkApi

NewBenchmarkApi Returns NewBenchmarkApi.

func (*BenchmarkApi) CreatePgbench

func (a *BenchmarkApi) CreatePgbench(ctx _context.Context, orgName string, body Pgbench) (Benchmark, *_nethttp.Response, error)

CreatePgbench Create a pgbench benchmark task.

func (*BenchmarkApi) CreateSysbench

func (a *BenchmarkApi) CreateSysbench(ctx _context.Context, orgName string, body Sysbench) (Benchmark, *_nethttp.Response, error)

CreateSysbench Create a sysbench benchmark task.

func (*BenchmarkApi) CreateTpcc

func (a *BenchmarkApi) CreateTpcc(ctx _context.Context, orgName string, body Tpcc) (Benchmark, *_nethttp.Response, error)

CreateTpcc Create a tpcc benchmark task.

func (*BenchmarkApi) CreateYcsb

func (a *BenchmarkApi) CreateYcsb(ctx _context.Context, orgName string, body Ycsb) (Benchmark, *_nethttp.Response, error)

CreateYcsb Create a ycsb benchmark task.

func (*BenchmarkApi) DeleteBenchmark

func (a *BenchmarkApi) DeleteBenchmark(ctx _context.Context, orgName string, body []string) (interface{}, *_nethttp.Response, error)

DeleteBenchmark Delete benchmark tasks.

func (*BenchmarkApi) GetBenchmark

func (a *BenchmarkApi) GetBenchmark(ctx _context.Context, orgName string, benchmarkId string) (Benchmark, *_nethttp.Response, error)

GetBenchmark Get benchmark task info.

func (*BenchmarkApi) ListBenchmark

ListBenchmark List benchmark tasks.

type BenchmarkList

type BenchmarkList struct {
	// Items is the list of benchmark objects in the list
	Items []Benchmark `json:"items"`
	// PageResult info
	PageResult *PageResult `json:"pageResult,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

BenchmarkList BenchmarkList is a list of benchmarks

func NewBenchmarkList

func NewBenchmarkList(items []Benchmark) *BenchmarkList

NewBenchmarkList instantiates a new BenchmarkList 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 NewBenchmarkListWithDefaults

func NewBenchmarkListWithDefaults() *BenchmarkList

NewBenchmarkListWithDefaults instantiates a new BenchmarkList 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 (*BenchmarkList) GetItems

func (o *BenchmarkList) GetItems() []Benchmark

GetItems returns the Items field value.

func (*BenchmarkList) GetItemsOk

func (o *BenchmarkList) GetItemsOk() (*[]Benchmark, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (*BenchmarkList) GetPageResult

func (o *BenchmarkList) GetPageResult() PageResult

GetPageResult returns the PageResult field value if set, zero value otherwise.

func (*BenchmarkList) GetPageResultOk

func (o *BenchmarkList) GetPageResultOk() (*PageResult, bool)

GetPageResultOk returns a tuple with the PageResult field value if set, nil otherwise and a boolean to check if the value has been set.

func (*BenchmarkList) HasPageResult

func (o *BenchmarkList) HasPageResult() bool

HasPageResult returns a boolean if a field has been set.

func (BenchmarkList) MarshalJSON

func (o BenchmarkList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*BenchmarkList) SetItems

func (o *BenchmarkList) SetItems(v []Benchmark)

SetItems sets field value.

func (*BenchmarkList) SetPageResult

func (o *BenchmarkList) SetPageResult(v PageResult)

SetPageResult gets a reference to the given PageResult and assigns it to the PageResult field.

func (*BenchmarkList) UnmarshalJSON

func (o *BenchmarkList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type BenchmarkStatus

type BenchmarkStatus string

BenchmarkStatus the status of benchmark

const (
	BenchmarkStatusPending   BenchmarkStatus = "Pending"
	BenchmarkStatusRunning   BenchmarkStatus = "Running"
	BenchmarkStatusCompleted BenchmarkStatus = "Completed"
	BenchmarkStatusFailed    BenchmarkStatus = "Failed"
)

List of BenchmarkStatus.

func NewBenchmarkStatusFromValue

func NewBenchmarkStatusFromValue(v string) (*BenchmarkStatus, error)

NewBenchmarkStatusFromValue returns a pointer to a valid BenchmarkStatus for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*BenchmarkStatus) GetAllowedValues

func (v *BenchmarkStatus) GetAllowedValues() []BenchmarkStatus

GetAllowedValues returns the list of possible values.

func (BenchmarkStatus) IsValid

func (v BenchmarkStatus) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (BenchmarkStatus) Ptr

Ptr returns reference to BenchmarkStatus value.

func (*BenchmarkStatus) UnmarshalJSON

func (v *BenchmarkStatus) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type BenchmarkType

type BenchmarkType string

BenchmarkType Type of benchmark

const (
	BenchmarkTypePgbench  BenchmarkType = "pgbench"
	BenchmarkTypeSysbench BenchmarkType = "sysbench"
	BenchmarkTypeTpcc     BenchmarkType = "tpcc"
	BenchmarkTypeTpch     BenchmarkType = "tpch"
	BenchmarkTypeYcsb     BenchmarkType = "ycsb"
)

List of BenchmarkType.

func NewBenchmarkTypeFromValue

func NewBenchmarkTypeFromValue(v string) (*BenchmarkType, error)

NewBenchmarkTypeFromValue returns a pointer to a valid BenchmarkType for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*BenchmarkType) GetAllowedValues

func (v *BenchmarkType) GetAllowedValues() []BenchmarkType

GetAllowedValues returns the list of possible values.

func (BenchmarkType) IsValid

func (v BenchmarkType) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (BenchmarkType) Ptr

func (v BenchmarkType) Ptr() *BenchmarkType

Ptr returns reference to BenchmarkType value.

func (*BenchmarkType) UnmarshalJSON

func (v *BenchmarkType) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type CPU

type CPU struct {
	CpuCapacity    *string `json:"cpu_capacity,omitempty"`
	CpuCapacityMax *string `json:"cpu_capacity_max,omitempty"`
	CpuAssigned    *string `json:"cpu_assigned,omitempty"`
	CpuAssignedMax *string `json:"cpu_assigned_max,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewCPU

func NewCPU() *CPU

NewCPU instantiates a new CPU 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 NewCPUWithDefaults

func NewCPUWithDefaults() *CPU

NewCPUWithDefaults instantiates a new CPU 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 (*CPU) GetCpuAssigned

func (o *CPU) GetCpuAssigned() string

GetCpuAssigned returns the CpuAssigned field value if set, zero value otherwise.

func (*CPU) GetCpuAssignedMax

func (o *CPU) GetCpuAssignedMax() string

GetCpuAssignedMax returns the CpuAssignedMax field value if set, zero value otherwise.

func (*CPU) GetCpuAssignedMaxOk

func (o *CPU) GetCpuAssignedMaxOk() (*string, bool)

GetCpuAssignedMaxOk returns a tuple with the CpuAssignedMax field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CPU) GetCpuAssignedOk

func (o *CPU) GetCpuAssignedOk() (*string, bool)

GetCpuAssignedOk returns a tuple with the CpuAssigned field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CPU) GetCpuCapacity

func (o *CPU) GetCpuCapacity() string

GetCpuCapacity returns the CpuCapacity field value if set, zero value otherwise.

func (*CPU) GetCpuCapacityMax

func (o *CPU) GetCpuCapacityMax() string

GetCpuCapacityMax returns the CpuCapacityMax field value if set, zero value otherwise.

func (*CPU) GetCpuCapacityMaxOk

func (o *CPU) GetCpuCapacityMaxOk() (*string, bool)

GetCpuCapacityMaxOk returns a tuple with the CpuCapacityMax field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CPU) GetCpuCapacityOk

func (o *CPU) GetCpuCapacityOk() (*string, bool)

GetCpuCapacityOk returns a tuple with the CpuCapacity field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CPU) HasCpuAssigned

func (o *CPU) HasCpuAssigned() bool

HasCpuAssigned returns a boolean if a field has been set.

func (*CPU) HasCpuAssignedMax

func (o *CPU) HasCpuAssignedMax() bool

HasCpuAssignedMax returns a boolean if a field has been set.

func (*CPU) HasCpuCapacity

func (o *CPU) HasCpuCapacity() bool

HasCpuCapacity returns a boolean if a field has been set.

func (*CPU) HasCpuCapacityMax

func (o *CPU) HasCpuCapacityMax() bool

HasCpuCapacityMax returns a boolean if a field has been set.

func (CPU) MarshalJSON

func (o CPU) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*CPU) SetCpuAssigned

func (o *CPU) SetCpuAssigned(v string)

SetCpuAssigned gets a reference to the given string and assigns it to the CpuAssigned field.

func (*CPU) SetCpuAssignedMax

func (o *CPU) SetCpuAssignedMax(v string)

SetCpuAssignedMax gets a reference to the given string and assigns it to the CpuAssignedMax field.

func (*CPU) SetCpuCapacity

func (o *CPU) SetCpuCapacity(v string)

SetCpuCapacity gets a reference to the given string and assigns it to the CpuCapacity field.

func (*CPU) SetCpuCapacityMax

func (o *CPU) SetCpuCapacityMax(v string)

SetCpuCapacityMax gets a reference to the given string and assigns it to the CpuCapacityMax field.

func (*CPU) UnmarshalJSON

func (o *CPU) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type Class

type Class struct {
	Engine        *string      `json:"engine,omitempty"`
	Code          *string      `json:"code,omitempty"`
	CodeShort     *string      `json:"codeShort,omitempty"`
	Mode          *string      `json:"mode,omitempty"`
	Cpu           *float64     `json:"cpu,omitempty"`
	CpuRequest    *float64     `json:"cpuRequest,omitempty"`
	CpuLimit      *float64     `json:"cpuLimit,omitempty"`
	Memory        *float64     `json:"memory,omitempty"`
	MemoryRequest *float64     `json:"memoryRequest,omitempty"`
	MemoryLimit   *float64     `json:"memoryLimit,omitempty"`
	Component     *string      `json:"component,omitempty"`
	Series        *ClassSeries `json:"series,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewClass

func NewClass() *Class

NewClass instantiates a new Class 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 NewClassWithDefaults

func NewClassWithDefaults() *Class

NewClassWithDefaults instantiates a new Class 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 (*Class) GetCode

func (o *Class) GetCode() string

GetCode returns the Code field value if set, zero value otherwise.

func (*Class) GetCodeOk

func (o *Class) GetCodeOk() (*string, bool)

GetCodeOk returns a tuple with the Code field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Class) GetCodeShort

func (o *Class) GetCodeShort() string

GetCodeShort returns the CodeShort field value if set, zero value otherwise.

func (*Class) GetCodeShortOk

func (o *Class) GetCodeShortOk() (*string, bool)

GetCodeShortOk returns a tuple with the CodeShort field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Class) GetComponent

func (o *Class) GetComponent() string

GetComponent returns the Component field value if set, zero value otherwise.

func (*Class) GetComponentOk

func (o *Class) GetComponentOk() (*string, bool)

GetComponentOk returns a tuple with the Component field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Class) GetCpu

func (o *Class) GetCpu() float64

GetCpu returns the Cpu field value if set, zero value otherwise.

func (*Class) GetCpuLimit

func (o *Class) GetCpuLimit() float64

GetCpuLimit returns the CpuLimit field value if set, zero value otherwise.

func (*Class) GetCpuLimitOk

func (o *Class) GetCpuLimitOk() (*float64, bool)

GetCpuLimitOk returns a tuple with the CpuLimit field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Class) GetCpuOk

func (o *Class) GetCpuOk() (*float64, bool)

GetCpuOk returns a tuple with the Cpu field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Class) GetCpuRequest

func (o *Class) GetCpuRequest() float64

GetCpuRequest returns the CpuRequest field value if set, zero value otherwise.

func (*Class) GetCpuRequestOk

func (o *Class) GetCpuRequestOk() (*float64, bool)

GetCpuRequestOk returns a tuple with the CpuRequest field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Class) GetEngine

func (o *Class) GetEngine() string

GetEngine returns the Engine field value if set, zero value otherwise.

func (*Class) GetEngineOk

func (o *Class) GetEngineOk() (*string, bool)

GetEngineOk returns a tuple with the Engine field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Class) GetMemory

func (o *Class) GetMemory() float64

GetMemory returns the Memory field value if set, zero value otherwise.

func (*Class) GetMemoryLimit

func (o *Class) GetMemoryLimit() float64

GetMemoryLimit returns the MemoryLimit field value if set, zero value otherwise.

func (*Class) GetMemoryLimitOk

func (o *Class) GetMemoryLimitOk() (*float64, bool)

GetMemoryLimitOk returns a tuple with the MemoryLimit field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Class) GetMemoryOk

func (o *Class) GetMemoryOk() (*float64, bool)

GetMemoryOk returns a tuple with the Memory field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Class) GetMemoryRequest

func (o *Class) GetMemoryRequest() float64

GetMemoryRequest returns the MemoryRequest field value if set, zero value otherwise.

func (*Class) GetMemoryRequestOk

func (o *Class) GetMemoryRequestOk() (*float64, bool)

GetMemoryRequestOk returns a tuple with the MemoryRequest field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Class) GetMode

func (o *Class) GetMode() string

GetMode returns the Mode field value if set, zero value otherwise.

func (*Class) GetModeOk

func (o *Class) GetModeOk() (*string, bool)

GetModeOk returns a tuple with the Mode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Class) GetSeries

func (o *Class) GetSeries() ClassSeries

GetSeries returns the Series field value if set, zero value otherwise.

func (*Class) GetSeriesOk

func (o *Class) GetSeriesOk() (*ClassSeries, bool)

GetSeriesOk returns a tuple with the Series field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Class) HasCode

func (o *Class) HasCode() bool

HasCode returns a boolean if a field has been set.

func (*Class) HasCodeShort

func (o *Class) HasCodeShort() bool

HasCodeShort returns a boolean if a field has been set.

func (*Class) HasComponent

func (o *Class) HasComponent() bool

HasComponent returns a boolean if a field has been set.

func (*Class) HasCpu

func (o *Class) HasCpu() bool

HasCpu returns a boolean if a field has been set.

func (*Class) HasCpuLimit

func (o *Class) HasCpuLimit() bool

HasCpuLimit returns a boolean if a field has been set.

func (*Class) HasCpuRequest

func (o *Class) HasCpuRequest() bool

HasCpuRequest returns a boolean if a field has been set.

func (*Class) HasEngine

func (o *Class) HasEngine() bool

HasEngine returns a boolean if a field has been set.

func (*Class) HasMemory

func (o *Class) HasMemory() bool

HasMemory returns a boolean if a field has been set.

func (*Class) HasMemoryLimit

func (o *Class) HasMemoryLimit() bool

HasMemoryLimit returns a boolean if a field has been set.

func (*Class) HasMemoryRequest

func (o *Class) HasMemoryRequest() bool

HasMemoryRequest returns a boolean if a field has been set.

func (*Class) HasMode

func (o *Class) HasMode() bool

HasMode returns a boolean if a field has been set.

func (*Class) HasSeries

func (o *Class) HasSeries() bool

HasSeries returns a boolean if a field has been set.

func (Class) MarshalJSON

func (o Class) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*Class) SetCode

func (o *Class) SetCode(v string)

SetCode gets a reference to the given string and assigns it to the Code field.

func (*Class) SetCodeShort

func (o *Class) SetCodeShort(v string)

SetCodeShort gets a reference to the given string and assigns it to the CodeShort field.

func (*Class) SetComponent

func (o *Class) SetComponent(v string)

SetComponent gets a reference to the given string and assigns it to the Component field.

func (*Class) SetCpu

func (o *Class) SetCpu(v float64)

SetCpu gets a reference to the given float64 and assigns it to the Cpu field.

func (*Class) SetCpuLimit

func (o *Class) SetCpuLimit(v float64)

SetCpuLimit gets a reference to the given float64 and assigns it to the CpuLimit field.

func (*Class) SetCpuRequest

func (o *Class) SetCpuRequest(v float64)

SetCpuRequest gets a reference to the given float64 and assigns it to the CpuRequest field.

func (*Class) SetEngine

func (o *Class) SetEngine(v string)

SetEngine gets a reference to the given string and assigns it to the Engine field.

func (*Class) SetMemory

func (o *Class) SetMemory(v float64)

SetMemory gets a reference to the given float64 and assigns it to the Memory field.

func (*Class) SetMemoryLimit

func (o *Class) SetMemoryLimit(v float64)

SetMemoryLimit gets a reference to the given float64 and assigns it to the MemoryLimit field.

func (*Class) SetMemoryRequest

func (o *Class) SetMemoryRequest(v float64)

SetMemoryRequest gets a reference to the given float64 and assigns it to the MemoryRequest field.

func (*Class) SetMode

func (o *Class) SetMode(v string)

SetMode gets a reference to the given string and assigns it to the Mode field.

func (*Class) SetSeries

func (o *Class) SetSeries(v ClassSeries)

SetSeries gets a reference to the given ClassSeries and assigns it to the Series field.

func (*Class) UnmarshalJSON

func (o *Class) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ClassApi

type ClassApi common.Service

ClassApi service type

func NewClassApi

func NewClassApi(client *common.APIClient) *ClassApi

NewClassApi Returns NewClassApi.

func (*ClassApi) CreateClass

CreateClass Create class.

func (*ClassApi) DeleteClass

func (a *ClassApi) DeleteClass(ctx _context.Context, code string) (interface{}, *_nethttp.Response, error)

DeleteClass Delete class.

func (*ClassApi) ListClasses

func (a *ClassApi) ListClasses(ctx _context.Context) ([]Class, *_nethttp.Response, error)

ListClasses List classes.

func (*ClassApi) PatchClass

PatchClass Patch class.

type ClassSeries

type ClassSeries string
const (
	ClassSeriesGeneral   ClassSeries = "general"
	ClassSeriesExclusive ClassSeries = "exclusive"
)

List of ClassSeries.

func NewClassSeriesFromValue

func NewClassSeriesFromValue(v string) (*ClassSeries, error)

NewClassSeriesFromValue returns a pointer to a valid ClassSeries for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*ClassSeries) GetAllowedValues

func (v *ClassSeries) GetAllowedValues() []ClassSeries

GetAllowedValues returns the list of possible values.

func (ClassSeries) IsValid

func (v ClassSeries) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (ClassSeries) Ptr

func (v ClassSeries) Ptr() *ClassSeries

Ptr returns reference to ClassSeries value.

func (*ClassSeries) UnmarshalJSON

func (v *ClassSeries) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type CloseSessionsOptionalParameters

type CloseSessionsOptionalParameters struct {
	Keep *string
}

CloseSessionsOptionalParameters holds optional parameters for CloseSessions.

func NewCloseSessionsOptionalParameters

func NewCloseSessionsOptionalParameters() *CloseSessionsOptionalParameters

NewCloseSessionsOptionalParameters creates an empty struct for parameters.

func (*CloseSessionsOptionalParameters) WithKeep

WithKeep sets the corresponding parameter name and returns the struct.

type Cluster

type Cluster struct {
	// Cluster ID
	Id interface{} `json:"id,omitempty"`
	// Org Name
	OrgName *string `json:"orgName,omitempty"`
	// Cloud Provider
	CloudProvider *string `json:"cloudProvider,omitempty"`
	// ID of the environment
	EnvironmentId *string `json:"environmentId,omitempty"`
	// Environment Name
	EnvironmentName string `json:"environmentName"`
	// Environment Types
	EnvironmentType *string `json:"environmentType,omitempty"`
	// Cloud Region
	CloudRegion *string `json:"cloudRegion,omitempty"`
	// Environment Namespace
	Namespace *string `json:"namespace,omitempty"`
	// Name of cluster. Name must be unique within an Org
	Name string `json:"name"`
	// Hash of cluster. Name must be unique within an Org
	Hash *string `json:"hash,omitempty"`
	// Cluster Application Engine
	Engine  string          `json:"engine"`
	License *ClusterLicense `json:"license,omitempty"`
	// Items is the list of parameter template in the list
	ParamTpls []ParamTplsItem `json:"paramTpls,omitempty"`
	// Values
	Values map[string]interface{} `json:"Values,omitempty"`
	// Cluster Application Version
	Version *string `json:"version,omitempty"`
	// The number of replicas, for standalone mode, the replicas is 1, for raftGroup mode, the default replicas is 3.
	Replicas *int32 `json:"replicas,omitempty"`
	// CPU cores.
	Cpu *float64 `json:"cpu,omitempty"`
	// Memory, the unit is Gi.
	Memory *float64 `json:"memory,omitempty"`
	// Storage size, the unit is Gi.
	Storage *float64 `json:"storage,omitempty"`
	// The termination policy of cluster.
	TerminationPolicy *ClusterTerminationPolicy `json:"terminationPolicy,omitempty"`
	// Specify whether the cluster enable monitoring.
	MonitorEnabled *bool `json:"monitorEnabled,omitempty"`
	// Specify whether the cluster can be accessed from within the VPC.
	VpcEndpointEnabled *bool `json:"vpcEndpointEnabled,omitempty"`
	// Specify whether the cluster can be accessed from the public internet.
	InternetEndpointEnabled *bool `json:"internetEndpointEnabled,omitempty"`
	// Enable the cluster to provide TLS connection or not.
	TlsEnabled *bool `json:"tlsEnabled,omitempty"`
	// Enable the cluster to provide NodePort service or not.
	NodePortEnabled *bool `json:"nodePortEnabled,omitempty"`
	// Cluster Status
	Status *string `json:"status,omitempty"`
	// CreatedAt is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists
	CreatedAt *time.Time `json:"createdAt,omitempty"`
	// UpdatedAt is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
	// CreateOnlySet
	CreateOnlySet *bool `json:"createOnlySet,omitempty"`
	// Cluster topology mode
	Mode *string `json:"mode,omitempty"`
	// Proxy Enabled
	ProxyEnabled *bool `json:"proxyEnabled,omitempty"`
	// Items is the list of ComponentSpec in the list
	Components []ComponentsItem `json:"components,omitempty"`
	// Values
	Extra map[string]interface{} `json:"extra,omitempty"`
	// Items is the list of init Options in the list
	InitOptions []InitOptionsItem `json:"initOptions,omitempty"`
	// ExtraInfo
	ExtraInfo map[string]interface{} `json:"extraInfo,omitempty"`
	// Tolerations of cluster
	Tolerations *string `json:"tolerations,omitempty"`
	// Use single availability zones
	SingleZone *bool `json:"singleZone,omitempty"`
	// Availability Zones
	AvailabilityZones []string `json:"availabilityZones,omitempty"`
	// Enable pod antiaffinity for cluster
	PodAntiAffinityEnabled *bool `json:"podAntiAffinityEnabled,omitempty"`
	// clusterBackup is the payload for cluster backup
	Backup *ClusterBackup `json:"backup,omitempty"`
	// Specify a NodeGroup for the cluster
	NodeGroup common.NullableString `json:"nodeGroup,omitempty"`
	// Cluster main component codeShort
	CodeShort *string `json:"codeShort,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

Cluster KubeBlocks cluster information

func NewCluster

func NewCluster(environmentName string, name string, engine string) *Cluster

NewCluster instantiates a new Cluster 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 NewClusterWithDefaults

func NewClusterWithDefaults() *Cluster

NewClusterWithDefaults instantiates a new Cluster 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 (*Cluster) GetAvailabilityZones

func (o *Cluster) GetAvailabilityZones() []string

GetAvailabilityZones returns the AvailabilityZones field value if set, zero value otherwise.

func (*Cluster) GetAvailabilityZonesOk

func (o *Cluster) GetAvailabilityZonesOk() (*[]string, bool)

GetAvailabilityZonesOk returns a tuple with the AvailabilityZones field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Cluster) GetBackup

func (o *Cluster) GetBackup() ClusterBackup

GetBackup returns the Backup field value if set, zero value otherwise.

func (*Cluster) GetBackupOk

func (o *Cluster) GetBackupOk() (*ClusterBackup, bool)

GetBackupOk returns a tuple with the Backup field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Cluster) GetCloudProvider

func (o *Cluster) GetCloudProvider() string

GetCloudProvider returns the CloudProvider field value if set, zero value otherwise.

func (*Cluster) GetCloudProviderOk

func (o *Cluster) GetCloudProviderOk() (*string, bool)

GetCloudProviderOk returns a tuple with the CloudProvider field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Cluster) GetCloudRegion

func (o *Cluster) GetCloudRegion() string

GetCloudRegion returns the CloudRegion field value if set, zero value otherwise.

func (*Cluster) GetCloudRegionOk

func (o *Cluster) GetCloudRegionOk() (*string, bool)

GetCloudRegionOk returns a tuple with the CloudRegion field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Cluster) GetCodeShort

func (o *Cluster) GetCodeShort() string

GetCodeShort returns the CodeShort field value if set, zero value otherwise.

func (*Cluster) GetCodeShortOk

func (o *Cluster) GetCodeShortOk() (*string, bool)

GetCodeShortOk returns a tuple with the CodeShort field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Cluster) GetComponents

func (o *Cluster) GetComponents() []ComponentsItem

GetComponents returns the Components field value if set, zero value otherwise.

func (*Cluster) GetComponentsOk

func (o *Cluster) GetComponentsOk() (*[]ComponentsItem, bool)

GetComponentsOk returns a tuple with the Components field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Cluster) GetCpu

func (o *Cluster) GetCpu() float64

GetCpu returns the Cpu field value if set, zero value otherwise.

func (*Cluster) GetCpuOk

func (o *Cluster) GetCpuOk() (*float64, bool)

GetCpuOk returns a tuple with the Cpu field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Cluster) GetCreateOnlySet

func (o *Cluster) GetCreateOnlySet() bool

GetCreateOnlySet returns the CreateOnlySet field value if set, zero value otherwise.

func (*Cluster) GetCreateOnlySetOk

func (o *Cluster) GetCreateOnlySetOk() (*bool, bool)

GetCreateOnlySetOk returns a tuple with the CreateOnlySet field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Cluster) GetCreatedAt

func (o *Cluster) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.

func (*Cluster) GetCreatedAtOk

func (o *Cluster) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Cluster) GetEngine

func (o *Cluster) GetEngine() string

GetEngine returns the Engine field value.

func (*Cluster) GetEngineOk

func (o *Cluster) GetEngineOk() (*string, bool)

GetEngineOk returns a tuple with the Engine field value and a boolean to check if the value has been set.

func (*Cluster) GetEnvironmentId

func (o *Cluster) GetEnvironmentId() string

GetEnvironmentId returns the EnvironmentId field value if set, zero value otherwise.

func (*Cluster) GetEnvironmentIdOk

func (o *Cluster) GetEnvironmentIdOk() (*string, bool)

GetEnvironmentIdOk returns a tuple with the EnvironmentId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Cluster) GetEnvironmentName

func (o *Cluster) GetEnvironmentName() string

GetEnvironmentName returns the EnvironmentName field value.

func (*Cluster) GetEnvironmentNameOk

func (o *Cluster) GetEnvironmentNameOk() (*string, bool)

GetEnvironmentNameOk returns a tuple with the EnvironmentName field value and a boolean to check if the value has been set.

func (*Cluster) GetEnvironmentType

func (o *Cluster) GetEnvironmentType() string

GetEnvironmentType returns the EnvironmentType field value if set, zero value otherwise.

func (*Cluster) GetEnvironmentTypeOk

func (o *Cluster) GetEnvironmentTypeOk() (*string, bool)

GetEnvironmentTypeOk returns a tuple with the EnvironmentType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Cluster) GetExtra

func (o *Cluster) GetExtra() map[string]interface{}

GetExtra returns the Extra field value if set, zero value otherwise.

func (*Cluster) GetExtraInfo

func (o *Cluster) GetExtraInfo() map[string]interface{}

GetExtraInfo returns the ExtraInfo field value if set, zero value otherwise.

func (*Cluster) GetExtraInfoOk

func (o *Cluster) GetExtraInfoOk() (*map[string]interface{}, bool)

GetExtraInfoOk returns a tuple with the ExtraInfo field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Cluster) GetExtraOk

func (o *Cluster) GetExtraOk() (*map[string]interface{}, bool)

GetExtraOk returns a tuple with the Extra field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Cluster) GetHash

func (o *Cluster) GetHash() string

GetHash returns the Hash field value if set, zero value otherwise.

func (*Cluster) GetHashOk

func (o *Cluster) GetHashOk() (*string, bool)

GetHashOk returns a tuple with the Hash field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Cluster) GetId

func (o *Cluster) GetId() interface{}

GetId returns the Id field value if set, zero value otherwise.

func (*Cluster) GetIdOk

func (o *Cluster) GetIdOk() (*interface{}, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Cluster) GetInitOptions

func (o *Cluster) GetInitOptions() []InitOptionsItem

GetInitOptions returns the InitOptions field value if set, zero value otherwise.

func (*Cluster) GetInitOptionsOk

func (o *Cluster) GetInitOptionsOk() (*[]InitOptionsItem, bool)

GetInitOptionsOk returns a tuple with the InitOptions field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Cluster) GetInternetEndpointEnabled

func (o *Cluster) GetInternetEndpointEnabled() bool

GetInternetEndpointEnabled returns the InternetEndpointEnabled field value if set, zero value otherwise.

func (*Cluster) GetInternetEndpointEnabledOk

func (o *Cluster) GetInternetEndpointEnabledOk() (*bool, bool)

GetInternetEndpointEnabledOk returns a tuple with the InternetEndpointEnabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Cluster) GetLicense

func (o *Cluster) GetLicense() ClusterLicense

GetLicense returns the License field value if set, zero value otherwise.

func (*Cluster) GetLicenseOk

func (o *Cluster) GetLicenseOk() (*ClusterLicense, bool)

GetLicenseOk returns a tuple with the License field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Cluster) GetMemory

func (o *Cluster) GetMemory() float64

GetMemory returns the Memory field value if set, zero value otherwise.

func (*Cluster) GetMemoryOk

func (o *Cluster) GetMemoryOk() (*float64, bool)

GetMemoryOk returns a tuple with the Memory field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Cluster) GetMode

func (o *Cluster) GetMode() string

GetMode returns the Mode field value if set, zero value otherwise.

func (*Cluster) GetModeOk

func (o *Cluster) GetModeOk() (*string, bool)

GetModeOk returns a tuple with the Mode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Cluster) GetMonitorEnabled

func (o *Cluster) GetMonitorEnabled() bool

GetMonitorEnabled returns the MonitorEnabled field value if set, zero value otherwise.

func (*Cluster) GetMonitorEnabledOk

func (o *Cluster) GetMonitorEnabledOk() (*bool, bool)

GetMonitorEnabledOk returns a tuple with the MonitorEnabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Cluster) GetName

func (o *Cluster) GetName() string

GetName returns the Name field value.

func (*Cluster) GetNameOk

func (o *Cluster) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*Cluster) GetNamespace

func (o *Cluster) GetNamespace() string

GetNamespace returns the Namespace field value if set, zero value otherwise.

func (*Cluster) GetNamespaceOk

func (o *Cluster) GetNamespaceOk() (*string, bool)

GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Cluster) GetNodeGroup

func (o *Cluster) GetNodeGroup() string

GetNodeGroup returns the NodeGroup field value if set, zero value otherwise (both if not set or set to explicit null).

func (*Cluster) GetNodeGroupOk

func (o *Cluster) GetNodeGroupOk() (*string, bool)

GetNodeGroupOk returns a tuple with the NodeGroup field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.

func (*Cluster) GetNodePortEnabled

func (o *Cluster) GetNodePortEnabled() bool

GetNodePortEnabled returns the NodePortEnabled field value if set, zero value otherwise.

func (*Cluster) GetNodePortEnabledOk

func (o *Cluster) GetNodePortEnabledOk() (*bool, bool)

GetNodePortEnabledOk returns a tuple with the NodePortEnabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Cluster) GetOrgName

func (o *Cluster) GetOrgName() string

GetOrgName returns the OrgName field value if set, zero value otherwise.

func (*Cluster) GetOrgNameOk

func (o *Cluster) GetOrgNameOk() (*string, bool)

GetOrgNameOk returns a tuple with the OrgName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Cluster) GetParamTpls

func (o *Cluster) GetParamTpls() []ParamTplsItem

GetParamTpls returns the ParamTpls field value if set, zero value otherwise.

func (*Cluster) GetParamTplsOk

func (o *Cluster) GetParamTplsOk() (*[]ParamTplsItem, bool)

GetParamTplsOk returns a tuple with the ParamTpls field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Cluster) GetPodAntiAffinityEnabled

func (o *Cluster) GetPodAntiAffinityEnabled() bool

GetPodAntiAffinityEnabled returns the PodAntiAffinityEnabled field value if set, zero value otherwise.

func (*Cluster) GetPodAntiAffinityEnabledOk

func (o *Cluster) GetPodAntiAffinityEnabledOk() (*bool, bool)

GetPodAntiAffinityEnabledOk returns a tuple with the PodAntiAffinityEnabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Cluster) GetProxyEnabled

func (o *Cluster) GetProxyEnabled() bool

GetProxyEnabled returns the ProxyEnabled field value if set, zero value otherwise.

func (*Cluster) GetProxyEnabledOk

func (o *Cluster) GetProxyEnabledOk() (*bool, bool)

GetProxyEnabledOk returns a tuple with the ProxyEnabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Cluster) GetReplicas

func (o *Cluster) GetReplicas() int32

GetReplicas returns the Replicas field value if set, zero value otherwise.

func (*Cluster) GetReplicasOk

func (o *Cluster) GetReplicasOk() (*int32, bool)

GetReplicasOk returns a tuple with the Replicas field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Cluster) GetSingleZone

func (o *Cluster) GetSingleZone() bool

GetSingleZone returns the SingleZone field value if set, zero value otherwise.

func (*Cluster) GetSingleZoneOk

func (o *Cluster) GetSingleZoneOk() (*bool, bool)

GetSingleZoneOk returns a tuple with the SingleZone field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Cluster) GetStatus

func (o *Cluster) GetStatus() string

GetStatus returns the Status field value if set, zero value otherwise.

func (*Cluster) GetStatusOk

func (o *Cluster) GetStatusOk() (*string, bool)

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 (*Cluster) GetStorage

func (o *Cluster) GetStorage() float64

GetStorage returns the Storage field value if set, zero value otherwise.

func (*Cluster) GetStorageOk

func (o *Cluster) GetStorageOk() (*float64, bool)

GetStorageOk returns a tuple with the Storage field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Cluster) GetTerminationPolicy

func (o *Cluster) GetTerminationPolicy() ClusterTerminationPolicy

GetTerminationPolicy returns the TerminationPolicy field value if set, zero value otherwise.

func (*Cluster) GetTerminationPolicyOk

func (o *Cluster) GetTerminationPolicyOk() (*ClusterTerminationPolicy, bool)

GetTerminationPolicyOk returns a tuple with the TerminationPolicy field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Cluster) GetTlsEnabled

func (o *Cluster) GetTlsEnabled() bool

GetTlsEnabled returns the TlsEnabled field value if set, zero value otherwise.

func (*Cluster) GetTlsEnabledOk

func (o *Cluster) GetTlsEnabledOk() (*bool, bool)

GetTlsEnabledOk returns a tuple with the TlsEnabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Cluster) GetTolerations

func (o *Cluster) GetTolerations() string

GetTolerations returns the Tolerations field value if set, zero value otherwise.

func (*Cluster) GetTolerationsOk

func (o *Cluster) GetTolerationsOk() (*string, bool)

GetTolerationsOk returns a tuple with the Tolerations field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Cluster) GetUpdatedAt

func (o *Cluster) GetUpdatedAt() time.Time

GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.

func (*Cluster) GetUpdatedAtOk

func (o *Cluster) GetUpdatedAtOk() (*time.Time, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Cluster) GetValues

func (o *Cluster) GetValues() map[string]interface{}

GetValues returns the Values field value if set, zero value otherwise.

func (*Cluster) GetValuesOk

func (o *Cluster) GetValuesOk() (*map[string]interface{}, bool)

GetValuesOk returns a tuple with the Values field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Cluster) GetVersion

func (o *Cluster) GetVersion() string

GetVersion returns the Version field value if set, zero value otherwise.

func (*Cluster) GetVersionOk

func (o *Cluster) GetVersionOk() (*string, bool)

GetVersionOk returns a tuple with the Version field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Cluster) GetVpcEndpointEnabled

func (o *Cluster) GetVpcEndpointEnabled() bool

GetVpcEndpointEnabled returns the VpcEndpointEnabled field value if set, zero value otherwise.

func (*Cluster) GetVpcEndpointEnabledOk

func (o *Cluster) GetVpcEndpointEnabledOk() (*bool, bool)

GetVpcEndpointEnabledOk returns a tuple with the VpcEndpointEnabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Cluster) HasAvailabilityZones

func (o *Cluster) HasAvailabilityZones() bool

HasAvailabilityZones returns a boolean if a field has been set.

func (*Cluster) HasBackup

func (o *Cluster) HasBackup() bool

HasBackup returns a boolean if a field has been set.

func (*Cluster) HasCloudProvider

func (o *Cluster) HasCloudProvider() bool

HasCloudProvider returns a boolean if a field has been set.

func (*Cluster) HasCloudRegion

func (o *Cluster) HasCloudRegion() bool

HasCloudRegion returns a boolean if a field has been set.

func (*Cluster) HasCodeShort

func (o *Cluster) HasCodeShort() bool

HasCodeShort returns a boolean if a field has been set.

func (*Cluster) HasComponents

func (o *Cluster) HasComponents() bool

HasComponents returns a boolean if a field has been set.

func (*Cluster) HasCpu

func (o *Cluster) HasCpu() bool

HasCpu returns a boolean if a field has been set.

func (*Cluster) HasCreateOnlySet

func (o *Cluster) HasCreateOnlySet() bool

HasCreateOnlySet returns a boolean if a field has been set.

func (*Cluster) HasCreatedAt

func (o *Cluster) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*Cluster) HasEnvironmentId

func (o *Cluster) HasEnvironmentId() bool

HasEnvironmentId returns a boolean if a field has been set.

func (*Cluster) HasEnvironmentType

func (o *Cluster) HasEnvironmentType() bool

HasEnvironmentType returns a boolean if a field has been set.

func (*Cluster) HasExtra

func (o *Cluster) HasExtra() bool

HasExtra returns a boolean if a field has been set.

func (*Cluster) HasExtraInfo

func (o *Cluster) HasExtraInfo() bool

HasExtraInfo returns a boolean if a field has been set.

func (*Cluster) HasHash

func (o *Cluster) HasHash() bool

HasHash returns a boolean if a field has been set.

func (*Cluster) HasId

func (o *Cluster) HasId() bool

HasId returns a boolean if a field has been set.

func (*Cluster) HasInitOptions

func (o *Cluster) HasInitOptions() bool

HasInitOptions returns a boolean if a field has been set.

func (*Cluster) HasInternetEndpointEnabled

func (o *Cluster) HasInternetEndpointEnabled() bool

HasInternetEndpointEnabled returns a boolean if a field has been set.

func (*Cluster) HasLicense

func (o *Cluster) HasLicense() bool

HasLicense returns a boolean if a field has been set.

func (*Cluster) HasMemory

func (o *Cluster) HasMemory() bool

HasMemory returns a boolean if a field has been set.

func (*Cluster) HasMode

func (o *Cluster) HasMode() bool

HasMode returns a boolean if a field has been set.

func (*Cluster) HasMonitorEnabled

func (o *Cluster) HasMonitorEnabled() bool

HasMonitorEnabled returns a boolean if a field has been set.

func (*Cluster) HasNamespace

func (o *Cluster) HasNamespace() bool

HasNamespace returns a boolean if a field has been set.

func (*Cluster) HasNodeGroup

func (o *Cluster) HasNodeGroup() bool

HasNodeGroup returns a boolean if a field has been set.

func (*Cluster) HasNodePortEnabled

func (o *Cluster) HasNodePortEnabled() bool

HasNodePortEnabled returns a boolean if a field has been set.

func (*Cluster) HasOrgName

func (o *Cluster) HasOrgName() bool

HasOrgName returns a boolean if a field has been set.

func (*Cluster) HasParamTpls

func (o *Cluster) HasParamTpls() bool

HasParamTpls returns a boolean if a field has been set.

func (*Cluster) HasPodAntiAffinityEnabled

func (o *Cluster) HasPodAntiAffinityEnabled() bool

HasPodAntiAffinityEnabled returns a boolean if a field has been set.

func (*Cluster) HasProxyEnabled

func (o *Cluster) HasProxyEnabled() bool

HasProxyEnabled returns a boolean if a field has been set.

func (*Cluster) HasReplicas

func (o *Cluster) HasReplicas() bool

HasReplicas returns a boolean if a field has been set.

func (*Cluster) HasSingleZone

func (o *Cluster) HasSingleZone() bool

HasSingleZone returns a boolean if a field has been set.

func (*Cluster) HasStatus

func (o *Cluster) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (*Cluster) HasStorage

func (o *Cluster) HasStorage() bool

HasStorage returns a boolean if a field has been set.

func (*Cluster) HasTerminationPolicy

func (o *Cluster) HasTerminationPolicy() bool

HasTerminationPolicy returns a boolean if a field has been set.

func (*Cluster) HasTlsEnabled

func (o *Cluster) HasTlsEnabled() bool

HasTlsEnabled returns a boolean if a field has been set.

func (*Cluster) HasTolerations

func (o *Cluster) HasTolerations() bool

HasTolerations returns a boolean if a field has been set.

func (*Cluster) HasUpdatedAt

func (o *Cluster) HasUpdatedAt() bool

HasUpdatedAt returns a boolean if a field has been set.

func (*Cluster) HasValues

func (o *Cluster) HasValues() bool

HasValues returns a boolean if a field has been set.

func (*Cluster) HasVersion

func (o *Cluster) HasVersion() bool

HasVersion returns a boolean if a field has been set.

func (*Cluster) HasVpcEndpointEnabled

func (o *Cluster) HasVpcEndpointEnabled() bool

HasVpcEndpointEnabled returns a boolean if a field has been set.

func (Cluster) MarshalJSON

func (o Cluster) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*Cluster) SetAvailabilityZones

func (o *Cluster) SetAvailabilityZones(v []string)

SetAvailabilityZones gets a reference to the given []string and assigns it to the AvailabilityZones field.

func (*Cluster) SetBackup

func (o *Cluster) SetBackup(v ClusterBackup)

SetBackup gets a reference to the given ClusterBackup and assigns it to the Backup field.

func (*Cluster) SetCloudProvider

func (o *Cluster) SetCloudProvider(v string)

SetCloudProvider gets a reference to the given string and assigns it to the CloudProvider field.

func (*Cluster) SetCloudRegion

func (o *Cluster) SetCloudRegion(v string)

SetCloudRegion gets a reference to the given string and assigns it to the CloudRegion field.

func (*Cluster) SetCodeShort

func (o *Cluster) SetCodeShort(v string)

SetCodeShort gets a reference to the given string and assigns it to the CodeShort field.

func (*Cluster) SetComponents

func (o *Cluster) SetComponents(v []ComponentsItem)

SetComponents gets a reference to the given []ComponentsItem and assigns it to the Components field.

func (*Cluster) SetCpu

func (o *Cluster) SetCpu(v float64)

SetCpu gets a reference to the given float64 and assigns it to the Cpu field.

func (*Cluster) SetCreateOnlySet

func (o *Cluster) SetCreateOnlySet(v bool)

SetCreateOnlySet gets a reference to the given bool and assigns it to the CreateOnlySet field.

func (*Cluster) SetCreatedAt

func (o *Cluster) SetCreatedAt(v time.Time)

SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.

func (*Cluster) SetEngine

func (o *Cluster) SetEngine(v string)

SetEngine sets field value.

func (*Cluster) SetEnvironmentId

func (o *Cluster) SetEnvironmentId(v string)

SetEnvironmentId gets a reference to the given string and assigns it to the EnvironmentId field.

func (*Cluster) SetEnvironmentName

func (o *Cluster) SetEnvironmentName(v string)

SetEnvironmentName sets field value.

func (*Cluster) SetEnvironmentType

func (o *Cluster) SetEnvironmentType(v string)

SetEnvironmentType gets a reference to the given string and assigns it to the EnvironmentType field.

func (*Cluster) SetExtra

func (o *Cluster) SetExtra(v map[string]interface{})

SetExtra gets a reference to the given map[string]interface{} and assigns it to the Extra field.

func (*Cluster) SetExtraInfo

func (o *Cluster) SetExtraInfo(v map[string]interface{})

SetExtraInfo gets a reference to the given map[string]interface{} and assigns it to the ExtraInfo field.

func (*Cluster) SetHash

func (o *Cluster) SetHash(v string)

SetHash gets a reference to the given string and assigns it to the Hash field.

func (*Cluster) SetId

func (o *Cluster) SetId(v interface{})

SetId gets a reference to the given interface{} and assigns it to the Id field.

func (*Cluster) SetInitOptions

func (o *Cluster) SetInitOptions(v []InitOptionsItem)

SetInitOptions gets a reference to the given []InitOptionsItem and assigns it to the InitOptions field.

func (*Cluster) SetInternetEndpointEnabled

func (o *Cluster) SetInternetEndpointEnabled(v bool)

SetInternetEndpointEnabled gets a reference to the given bool and assigns it to the InternetEndpointEnabled field.

func (*Cluster) SetLicense

func (o *Cluster) SetLicense(v ClusterLicense)

SetLicense gets a reference to the given ClusterLicense and assigns it to the License field.

func (*Cluster) SetMemory

func (o *Cluster) SetMemory(v float64)

SetMemory gets a reference to the given float64 and assigns it to the Memory field.

func (*Cluster) SetMode

func (o *Cluster) SetMode(v string)

SetMode gets a reference to the given string and assigns it to the Mode field.

func (*Cluster) SetMonitorEnabled

func (o *Cluster) SetMonitorEnabled(v bool)

SetMonitorEnabled gets a reference to the given bool and assigns it to the MonitorEnabled field.

func (*Cluster) SetName

func (o *Cluster) SetName(v string)

SetName sets field value.

func (*Cluster) SetNamespace

func (o *Cluster) SetNamespace(v string)

SetNamespace gets a reference to the given string and assigns it to the Namespace field.

func (*Cluster) SetNodeGroup

func (o *Cluster) SetNodeGroup(v string)

SetNodeGroup gets a reference to the given common.NullableString and assigns it to the NodeGroup field.

func (*Cluster) SetNodeGroupNil

func (o *Cluster) SetNodeGroupNil()

SetNodeGroupNil sets the value for NodeGroup to be an explicit nil.

func (*Cluster) SetNodePortEnabled

func (o *Cluster) SetNodePortEnabled(v bool)

SetNodePortEnabled gets a reference to the given bool and assigns it to the NodePortEnabled field.

func (*Cluster) SetOrgName

func (o *Cluster) SetOrgName(v string)

SetOrgName gets a reference to the given string and assigns it to the OrgName field.

func (*Cluster) SetParamTpls

func (o *Cluster) SetParamTpls(v []ParamTplsItem)

SetParamTpls gets a reference to the given []ParamTplsItem and assigns it to the ParamTpls field.

func (*Cluster) SetPodAntiAffinityEnabled

func (o *Cluster) SetPodAntiAffinityEnabled(v bool)

SetPodAntiAffinityEnabled gets a reference to the given bool and assigns it to the PodAntiAffinityEnabled field.

func (*Cluster) SetProxyEnabled

func (o *Cluster) SetProxyEnabled(v bool)

SetProxyEnabled gets a reference to the given bool and assigns it to the ProxyEnabled field.

func (*Cluster) SetReplicas

func (o *Cluster) SetReplicas(v int32)

SetReplicas gets a reference to the given int32 and assigns it to the Replicas field.

func (*Cluster) SetSingleZone

func (o *Cluster) SetSingleZone(v bool)

SetSingleZone gets a reference to the given bool and assigns it to the SingleZone field.

func (*Cluster) SetStatus

func (o *Cluster) SetStatus(v string)

SetStatus gets a reference to the given string and assigns it to the Status field.

func (*Cluster) SetStorage

func (o *Cluster) SetStorage(v float64)

SetStorage gets a reference to the given float64 and assigns it to the Storage field.

func (*Cluster) SetTerminationPolicy

func (o *Cluster) SetTerminationPolicy(v ClusterTerminationPolicy)

SetTerminationPolicy gets a reference to the given ClusterTerminationPolicy and assigns it to the TerminationPolicy field.

func (*Cluster) SetTlsEnabled

func (o *Cluster) SetTlsEnabled(v bool)

SetTlsEnabled gets a reference to the given bool and assigns it to the TlsEnabled field.

func (*Cluster) SetTolerations

func (o *Cluster) SetTolerations(v string)

SetTolerations gets a reference to the given string and assigns it to the Tolerations field.

func (*Cluster) SetUpdatedAt

func (o *Cluster) SetUpdatedAt(v time.Time)

SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field.

func (*Cluster) SetValues

func (o *Cluster) SetValues(v map[string]interface{})

SetValues gets a reference to the given map[string]interface{} and assigns it to the Values field.

func (*Cluster) SetVersion

func (o *Cluster) SetVersion(v string)

SetVersion gets a reference to the given string and assigns it to the Version field.

func (*Cluster) SetVpcEndpointEnabled

func (o *Cluster) SetVpcEndpointEnabled(v bool)

SetVpcEndpointEnabled gets a reference to the given bool and assigns it to the VpcEndpointEnabled field.

func (*Cluster) UnmarshalJSON

func (o *Cluster) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

func (*Cluster) UnsetNodeGroup

func (o *Cluster) UnsetNodeGroup()

UnsetNodeGroup ensures that no value is present for NodeGroup, not even an explicit nil.

type ClusterAlertSwitchApi

type ClusterAlertSwitchApi common.Service

ClusterAlertSwitchApi service type

func NewClusterAlertSwitchApi

func NewClusterAlertSwitchApi(client *common.APIClient) *ClusterAlertSwitchApi

NewClusterAlertSwitchApi Returns NewClusterAlertSwitchApi.

func (*ClusterAlertSwitchApi) GetClusterAlertDisabled

func (a *ClusterAlertSwitchApi) GetClusterAlertDisabled(ctx _context.Context, orgName string, clusterName string) (AlertCluster, *_nethttp.Response, error)

GetClusterAlertDisabled Check if cluster alert is disabled.

func (*ClusterAlertSwitchApi) SetClusterAlertDisabled

func (a *ClusterAlertSwitchApi) SetClusterAlertDisabled(ctx _context.Context, orgName string, clusterName string, o ...SetClusterAlertDisabledOptionalParameters) (AlertCluster, *_nethttp.Response, error)

SetClusterAlertDisabled Set cluster alert disabled or enabled.

type ClusterApi

type ClusterApi common.Service

ClusterApi service type

func NewClusterApi

func NewClusterApi(client *common.APIClient) *ClusterApi

NewClusterApi Returns NewClusterApi.

func (*ClusterApi) CreateCluster

func (a *ClusterApi) CreateCluster(ctx _context.Context, orgName string, body Cluster) (Cluster, *_nethttp.Response, error)

CreateCluster Create new cluster.

func (*ClusterApi) DeleteCluster

func (a *ClusterApi) DeleteCluster(ctx _context.Context, orgName string, clusterName string, o ...DeleteClusterOptionalParameters) (interface{}, *_nethttp.Response, error)

DeleteCluster Delete cluster.

func (*ClusterApi) DescribeClusterHaHistory

func (a *ClusterApi) DescribeClusterHaHistory(ctx _context.Context, orgName string, clusterName string, o ...DescribeClusterHaHistoryOptionalParameters) (HaHistoryResponse, *_nethttp.Response, error)

DescribeClusterHaHistory describe cluster HA history.

func (*ClusterApi) GetCluster

func (a *ClusterApi) GetCluster(ctx _context.Context, orgName string, clusterName string) (Cluster, *_nethttp.Response, error)

GetCluster Get cluster details.

func (*ClusterApi) GetClusterByID

func (a *ClusterApi) GetClusterByID(ctx _context.Context, orgName string, clusterId int32) (Cluster, *_nethttp.Response, error)

GetClusterByID Get cluster details by ID.

func (*ClusterApi) GetClusterInstanceLog

func (a *ClusterApi) GetClusterInstanceLog(ctx _context.Context, orgName string, clusterName string, workloadName string, o ...GetClusterInstanceLogOptionalParameters) (string, *_nethttp.Response, error)

GetClusterInstanceLog Tail cluster instance container log. read log of the specified cluster instance

func (*ClusterApi) GetClusterManifest

func (a *ClusterApi) GetClusterManifest(ctx _context.Context, orgName string, clusterName string, manifestType ManifestType, o ...GetClusterManifestOptionalParameters) (KubernetesManifestList, *_nethttp.Response, error)

GetClusterManifest Get cluster manifests of kubernetes.

func (*ClusterApi) GetInstacesMetrics

func (a *ClusterApi) GetInstacesMetrics(ctx _context.Context, orgName string, clusterName string) (InstanceMetricsList, *_nethttp.Response, error)

GetInstacesMetrics Get instaces metrics in cluster.

func (*ClusterApi) ListCluster

ListCluster List clusters in the Org.

func (*ClusterApi) ListEndpoints

func (a *ClusterApi) ListEndpoints(ctx _context.Context, orgName string, clusterName string, o ...ListEndpointsOptionalParameters) (EndpointList, *_nethttp.Response, error)

ListEndpoints List cluster endpoints.

func (*ClusterApi) ListInstance

func (a *ClusterApi) ListInstance(ctx _context.Context, orgName string, clusterName string) (InstanceList, *_nethttp.Response, error)

ListInstance List cluster instances.

func (*ClusterApi) PatchCluster

func (a *ClusterApi) PatchCluster(ctx _context.Context, orgName string, clusterName string, body ClusterUpdate) (Cluster, *_nethttp.Response, error)

PatchCluster Update cluster specified fields. Update the specified Cluster

type ClusterBackup

type ClusterBackup struct {
	// PITREnabled or not
	PitrEnabled *bool `json:"PITREnabled,omitempty"`
	// autoBackup or not
	AutoBackup *bool `json:"autoBackup,omitempty"`
	// name of the backup method
	AutoBackupMethod *string `json:"autoBackupMethod,omitempty"`
	// backupRepoName is the name of backupRepo and it is used to store the backup data
	BackupRepo *string `json:"backupRepo,omitempty"`
	// cronExpression specifies the cron expression
	CronExpression *string `json:"cronExpression,omitempty"`
	// retentionPeriod specifies the retention period
	RetentionPeriod *string `json:"retentionPeriod,omitempty"`
	// backup retention policy when cluster is deleted
	RetentionPolicy *BackupRetentionPolicy `json:"retentionPolicy,omitempty"`
	// snapshotVolumes specifies whether to take snapshots of persistent volumes to back up
	SnapshotVolumes common.NullableBool `json:"snapshotVolumes,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ClusterBackup clusterBackup is the payload for cluster backup

func NewClusterBackup

func NewClusterBackup() *ClusterBackup

NewClusterBackup instantiates a new ClusterBackup 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 NewClusterBackupWithDefaults

func NewClusterBackupWithDefaults() *ClusterBackup

NewClusterBackupWithDefaults instantiates a new ClusterBackup 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 (*ClusterBackup) GetAutoBackup

func (o *ClusterBackup) GetAutoBackup() bool

GetAutoBackup returns the AutoBackup field value if set, zero value otherwise.

func (*ClusterBackup) GetAutoBackupMethod

func (o *ClusterBackup) GetAutoBackupMethod() string

GetAutoBackupMethod returns the AutoBackupMethod field value if set, zero value otherwise.

func (*ClusterBackup) GetAutoBackupMethodOk

func (o *ClusterBackup) GetAutoBackupMethodOk() (*string, bool)

GetAutoBackupMethodOk returns a tuple with the AutoBackupMethod field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterBackup) GetAutoBackupOk

func (o *ClusterBackup) GetAutoBackupOk() (*bool, bool)

GetAutoBackupOk returns a tuple with the AutoBackup field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterBackup) GetBackupRepo

func (o *ClusterBackup) GetBackupRepo() string

GetBackupRepo returns the BackupRepo field value if set, zero value otherwise.

func (*ClusterBackup) GetBackupRepoOk

func (o *ClusterBackup) GetBackupRepoOk() (*string, bool)

GetBackupRepoOk returns a tuple with the BackupRepo field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterBackup) GetCronExpression

func (o *ClusterBackup) GetCronExpression() string

GetCronExpression returns the CronExpression field value if set, zero value otherwise.

func (*ClusterBackup) GetCronExpressionOk

func (o *ClusterBackup) GetCronExpressionOk() (*string, bool)

GetCronExpressionOk returns a tuple with the CronExpression field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterBackup) GetPitrEnabled

func (o *ClusterBackup) GetPitrEnabled() bool

GetPitrEnabled returns the PitrEnabled field value if set, zero value otherwise.

func (*ClusterBackup) GetPitrEnabledOk

func (o *ClusterBackup) GetPitrEnabledOk() (*bool, bool)

GetPitrEnabledOk returns a tuple with the PitrEnabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterBackup) GetRetentionPeriod

func (o *ClusterBackup) GetRetentionPeriod() string

GetRetentionPeriod returns the RetentionPeriod field value if set, zero value otherwise.

func (*ClusterBackup) GetRetentionPeriodOk

func (o *ClusterBackup) GetRetentionPeriodOk() (*string, bool)

GetRetentionPeriodOk returns a tuple with the RetentionPeriod field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterBackup) GetRetentionPolicy

func (o *ClusterBackup) GetRetentionPolicy() BackupRetentionPolicy

GetRetentionPolicy returns the RetentionPolicy field value if set, zero value otherwise.

func (*ClusterBackup) GetRetentionPolicyOk

func (o *ClusterBackup) GetRetentionPolicyOk() (*BackupRetentionPolicy, bool)

GetRetentionPolicyOk returns a tuple with the RetentionPolicy field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterBackup) GetSnapshotVolumes

func (o *ClusterBackup) GetSnapshotVolumes() bool

GetSnapshotVolumes returns the SnapshotVolumes field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ClusterBackup) GetSnapshotVolumesOk

func (o *ClusterBackup) GetSnapshotVolumesOk() (*bool, bool)

GetSnapshotVolumesOk returns a tuple with the SnapshotVolumes field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.

func (*ClusterBackup) HasAutoBackup

func (o *ClusterBackup) HasAutoBackup() bool

HasAutoBackup returns a boolean if a field has been set.

func (*ClusterBackup) HasAutoBackupMethod

func (o *ClusterBackup) HasAutoBackupMethod() bool

HasAutoBackupMethod returns a boolean if a field has been set.

func (*ClusterBackup) HasBackupRepo

func (o *ClusterBackup) HasBackupRepo() bool

HasBackupRepo returns a boolean if a field has been set.

func (*ClusterBackup) HasCronExpression

func (o *ClusterBackup) HasCronExpression() bool

HasCronExpression returns a boolean if a field has been set.

func (*ClusterBackup) HasPitrEnabled

func (o *ClusterBackup) HasPitrEnabled() bool

HasPitrEnabled returns a boolean if a field has been set.

func (*ClusterBackup) HasRetentionPeriod

func (o *ClusterBackup) HasRetentionPeriod() bool

HasRetentionPeriod returns a boolean if a field has been set.

func (*ClusterBackup) HasRetentionPolicy

func (o *ClusterBackup) HasRetentionPolicy() bool

HasRetentionPolicy returns a boolean if a field has been set.

func (*ClusterBackup) HasSnapshotVolumes

func (o *ClusterBackup) HasSnapshotVolumes() bool

HasSnapshotVolumes returns a boolean if a field has been set.

func (ClusterBackup) MarshalJSON

func (o ClusterBackup) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ClusterBackup) SetAutoBackup

func (o *ClusterBackup) SetAutoBackup(v bool)

SetAutoBackup gets a reference to the given bool and assigns it to the AutoBackup field.

func (*ClusterBackup) SetAutoBackupMethod

func (o *ClusterBackup) SetAutoBackupMethod(v string)

SetAutoBackupMethod gets a reference to the given string and assigns it to the AutoBackupMethod field.

func (*ClusterBackup) SetBackupRepo

func (o *ClusterBackup) SetBackupRepo(v string)

SetBackupRepo gets a reference to the given string and assigns it to the BackupRepo field.

func (*ClusterBackup) SetCronExpression

func (o *ClusterBackup) SetCronExpression(v string)

SetCronExpression gets a reference to the given string and assigns it to the CronExpression field.

func (*ClusterBackup) SetPitrEnabled

func (o *ClusterBackup) SetPitrEnabled(v bool)

SetPitrEnabled gets a reference to the given bool and assigns it to the PitrEnabled field.

func (*ClusterBackup) SetRetentionPeriod

func (o *ClusterBackup) SetRetentionPeriod(v string)

SetRetentionPeriod gets a reference to the given string and assigns it to the RetentionPeriod field.

func (*ClusterBackup) SetRetentionPolicy

func (o *ClusterBackup) SetRetentionPolicy(v BackupRetentionPolicy)

SetRetentionPolicy gets a reference to the given BackupRetentionPolicy and assigns it to the RetentionPolicy field.

func (*ClusterBackup) SetSnapshotVolumes

func (o *ClusterBackup) SetSnapshotVolumes(v bool)

SetSnapshotVolumes gets a reference to the given common.NullableBool and assigns it to the SnapshotVolumes field.

func (*ClusterBackup) SetSnapshotVolumesNil

func (o *ClusterBackup) SetSnapshotVolumesNil()

SetSnapshotVolumesNil sets the value for SnapshotVolumes to be an explicit nil.

func (*ClusterBackup) UnmarshalJSON

func (o *ClusterBackup) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

func (*ClusterBackup) UnsetSnapshotVolumes

func (o *ClusterBackup) UnsetSnapshotVolumes()

UnsetSnapshotVolumes ensures that no value is present for SnapshotVolumes, not even an explicit nil.

type ClusterExecutionLog

type ClusterExecutionLog struct {
	// Timestamp of the execution
	Timestamp int64 `json:"timestamp"`
	// Client identifier
	Client string `json:"client"`
	// Database name
	DbName string `json:"dbName"`
	// User who executed the command
	User string `json:"user"`
	// Time taken for execution
	ExecutionTime float64 `json:"executionTime"`
	// Command that was executed
	Command string `json:"command"`
	// Additional information
	Extra map[string]interface{} `json:"extra"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ClusterExecutionLog Log entry for cluster execution

func NewClusterExecutionLog

func NewClusterExecutionLog(timestamp int64, client string, dbName string, user string, executionTime float64, command string, extra map[string]interface{}) *ClusterExecutionLog

NewClusterExecutionLog instantiates a new ClusterExecutionLog 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 NewClusterExecutionLogWithDefaults

func NewClusterExecutionLogWithDefaults() *ClusterExecutionLog

NewClusterExecutionLogWithDefaults instantiates a new ClusterExecutionLog 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 (*ClusterExecutionLog) GetClient

func (o *ClusterExecutionLog) GetClient() string

GetClient returns the Client field value.

func (*ClusterExecutionLog) GetClientOk

func (o *ClusterExecutionLog) GetClientOk() (*string, bool)

GetClientOk returns a tuple with the Client field value and a boolean to check if the value has been set.

func (*ClusterExecutionLog) GetCommand

func (o *ClusterExecutionLog) GetCommand() string

GetCommand returns the Command field value.

func (*ClusterExecutionLog) GetCommandOk

func (o *ClusterExecutionLog) GetCommandOk() (*string, bool)

GetCommandOk returns a tuple with the Command field value and a boolean to check if the value has been set.

func (*ClusterExecutionLog) GetDbName

func (o *ClusterExecutionLog) GetDbName() string

GetDbName returns the DbName field value.

func (*ClusterExecutionLog) GetDbNameOk

func (o *ClusterExecutionLog) GetDbNameOk() (*string, bool)

GetDbNameOk returns a tuple with the DbName field value and a boolean to check if the value has been set.

func (*ClusterExecutionLog) GetExecutionTime

func (o *ClusterExecutionLog) GetExecutionTime() float64

GetExecutionTime returns the ExecutionTime field value.

func (*ClusterExecutionLog) GetExecutionTimeOk

func (o *ClusterExecutionLog) GetExecutionTimeOk() (*float64, bool)

GetExecutionTimeOk returns a tuple with the ExecutionTime field value and a boolean to check if the value has been set.

func (*ClusterExecutionLog) GetExtra

func (o *ClusterExecutionLog) GetExtra() map[string]interface{}

GetExtra returns the Extra field value.

func (*ClusterExecutionLog) GetExtraOk

func (o *ClusterExecutionLog) GetExtraOk() (*map[string]interface{}, bool)

GetExtraOk returns a tuple with the Extra field value and a boolean to check if the value has been set.

func (*ClusterExecutionLog) GetTimestamp

func (o *ClusterExecutionLog) GetTimestamp() int64

GetTimestamp returns the Timestamp field value.

func (*ClusterExecutionLog) GetTimestampOk

func (o *ClusterExecutionLog) GetTimestampOk() (*int64, bool)

GetTimestampOk returns a tuple with the Timestamp field value and a boolean to check if the value has been set.

func (*ClusterExecutionLog) GetUser

func (o *ClusterExecutionLog) GetUser() string

GetUser returns the User field value.

func (*ClusterExecutionLog) GetUserOk

func (o *ClusterExecutionLog) GetUserOk() (*string, bool)

GetUserOk returns a tuple with the User field value and a boolean to check if the value has been set.

func (ClusterExecutionLog) MarshalJSON

func (o ClusterExecutionLog) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ClusterExecutionLog) SetClient

func (o *ClusterExecutionLog) SetClient(v string)

SetClient sets field value.

func (*ClusterExecutionLog) SetCommand

func (o *ClusterExecutionLog) SetCommand(v string)

SetCommand sets field value.

func (*ClusterExecutionLog) SetDbName

func (o *ClusterExecutionLog) SetDbName(v string)

SetDbName sets field value.

func (*ClusterExecutionLog) SetExecutionTime

func (o *ClusterExecutionLog) SetExecutionTime(v float64)

SetExecutionTime sets field value.

func (*ClusterExecutionLog) SetExtra

func (o *ClusterExecutionLog) SetExtra(v map[string]interface{})

SetExtra sets field value.

func (*ClusterExecutionLog) SetTimestamp

func (o *ClusterExecutionLog) SetTimestamp(v int64)

SetTimestamp sets field value.

func (*ClusterExecutionLog) SetUser

func (o *ClusterExecutionLog) SetUser(v string)

SetUser sets field value.

func (*ClusterExecutionLog) UnmarshalJSON

func (o *ClusterExecutionLog) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ClusterLicense

type ClusterLicense struct {
	Id        *string     `json:"id,omitempty"`
	Name      *string     `json:"name,omitempty"`
	ExpiredAt *time.Time  `json:"expiredAt,omitempty"`
	Key       *_io.Reader `json:"key,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewClusterLicense

func NewClusterLicense() *ClusterLicense

NewClusterLicense instantiates a new ClusterLicense 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 NewClusterLicenseWithDefaults

func NewClusterLicenseWithDefaults() *ClusterLicense

NewClusterLicenseWithDefaults instantiates a new ClusterLicense 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 (*ClusterLicense) GetExpiredAt

func (o *ClusterLicense) GetExpiredAt() time.Time

GetExpiredAt returns the ExpiredAt field value if set, zero value otherwise.

func (*ClusterLicense) GetExpiredAtOk

func (o *ClusterLicense) GetExpiredAtOk() (*time.Time, bool)

GetExpiredAtOk returns a tuple with the ExpiredAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterLicense) GetId

func (o *ClusterLicense) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*ClusterLicense) GetIdOk

func (o *ClusterLicense) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterLicense) GetKey

func (o *ClusterLicense) GetKey() _io.Reader

GetKey returns the Key field value if set, zero value otherwise.

func (*ClusterLicense) GetKeyOk

func (o *ClusterLicense) GetKeyOk() (*_io.Reader, bool)

GetKeyOk returns a tuple with the Key field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterLicense) GetName

func (o *ClusterLicense) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*ClusterLicense) GetNameOk

func (o *ClusterLicense) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterLicense) HasExpiredAt

func (o *ClusterLicense) HasExpiredAt() bool

HasExpiredAt returns a boolean if a field has been set.

func (*ClusterLicense) HasId

func (o *ClusterLicense) HasId() bool

HasId returns a boolean if a field has been set.

func (*ClusterLicense) HasKey

func (o *ClusterLicense) HasKey() bool

HasKey returns a boolean if a field has been set.

func (*ClusterLicense) HasName

func (o *ClusterLicense) HasName() bool

HasName returns a boolean if a field has been set.

func (ClusterLicense) MarshalJSON

func (o ClusterLicense) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ClusterLicense) SetExpiredAt

func (o *ClusterLicense) SetExpiredAt(v time.Time)

SetExpiredAt gets a reference to the given time.Time and assigns it to the ExpiredAt field.

func (*ClusterLicense) SetId

func (o *ClusterLicense) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*ClusterLicense) SetKey

func (o *ClusterLicense) SetKey(v _io.Reader)

SetKey gets a reference to the given _io.Reader and assigns it to the Key field.

func (*ClusterLicense) SetName

func (o *ClusterLicense) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*ClusterLicense) UnmarshalJSON

func (o *ClusterLicense) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ClusterList

type ClusterList struct {
	// Items is the list of KubeBlocks cluster objects in the list
	Items []ClusterListItem `json:"items"`
	// PageResult info
	PageResult *PageResult `json:"pageResult,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ClusterList ClusterList is a list of KubeBlocks clusters

func NewClusterList

func NewClusterList(items []ClusterListItem) *ClusterList

NewClusterList instantiates a new ClusterList 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 NewClusterListWithDefaults

func NewClusterListWithDefaults() *ClusterList

NewClusterListWithDefaults instantiates a new ClusterList 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 (*ClusterList) GetItems

func (o *ClusterList) GetItems() []ClusterListItem

GetItems returns the Items field value.

func (*ClusterList) GetItemsOk

func (o *ClusterList) GetItemsOk() (*[]ClusterListItem, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (*ClusterList) GetPageResult

func (o *ClusterList) GetPageResult() PageResult

GetPageResult returns the PageResult field value if set, zero value otherwise.

func (*ClusterList) GetPageResultOk

func (o *ClusterList) GetPageResultOk() (*PageResult, bool)

GetPageResultOk returns a tuple with the PageResult field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterList) HasPageResult

func (o *ClusterList) HasPageResult() bool

HasPageResult returns a boolean if a field has been set.

func (ClusterList) MarshalJSON

func (o ClusterList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ClusterList) SetItems

func (o *ClusterList) SetItems(v []ClusterListItem)

SetItems sets field value.

func (*ClusterList) SetPageResult

func (o *ClusterList) SetPageResult(v PageResult)

SetPageResult gets a reference to the given PageResult and assigns it to the PageResult field.

func (*ClusterList) UnmarshalJSON

func (o *ClusterList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ClusterListItem

type ClusterListItem struct {
	// Cloud Provider
	CloudProvider string `json:"cloudProvider"`
	// Cloud Provider
	CloudRegion *string `json:"cloudRegion,omitempty"`
	// Availability Zones
	AvailabilityZones []string `json:"availabilityZones,omitempty"`
	// CreatedAt is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists
	CreatedAt time.Time `json:"createdAt"`
	// Display name of cluster.
	DisplayName *string `json:"displayName,omitempty"`
	// Cluster Application Engine
	Engine string `json:"engine"`
	// Cluster topology mode
	Mode *string `json:"mode,omitempty"`
	// Environment Name
	EnvironmentName string `json:"environmentName"`
	// ID of cluster
	Id string `json:"id"`
	// Name of cluster. Name must be unique within an Org
	Name string `json:"name"`
	// Cluster Status
	Status string `json:"status"`
	// Cluster termination policy
	TerminationPolicy string `json:"terminationPolicy"`
	// UpdatedAt is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists
	UpdatedAt time.Time `json:"updatedAt"`
	// Cluster Application Version
	Version string `json:"version"`
	// Cluster main component classCode
	ClassCode *string `json:"classCode,omitempty"`
	// Cluster main component storage
	Storage *string `json:"storage,omitempty"`
	// Cluster main component codeShort
	CodeShort *string `json:"codeShort,omitempty"`
	// Org Name
	OrgName *string `json:"orgName,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ClusterListItem KubeBlocks cluster information

func NewClusterListItem

func NewClusterListItem(cloudProvider string, createdAt time.Time, engine string, environmentName string, id string, name string, status string, terminationPolicy string, updatedAt time.Time, version string) *ClusterListItem

NewClusterListItem instantiates a new ClusterListItem 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 NewClusterListItemWithDefaults

func NewClusterListItemWithDefaults() *ClusterListItem

NewClusterListItemWithDefaults instantiates a new ClusterListItem 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 (*ClusterListItem) GetAvailabilityZones

func (o *ClusterListItem) GetAvailabilityZones() []string

GetAvailabilityZones returns the AvailabilityZones field value if set, zero value otherwise.

func (*ClusterListItem) GetAvailabilityZonesOk

func (o *ClusterListItem) GetAvailabilityZonesOk() (*[]string, bool)

GetAvailabilityZonesOk returns a tuple with the AvailabilityZones field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterListItem) GetClassCode

func (o *ClusterListItem) GetClassCode() string

GetClassCode returns the ClassCode field value if set, zero value otherwise.

func (*ClusterListItem) GetClassCodeOk

func (o *ClusterListItem) GetClassCodeOk() (*string, bool)

GetClassCodeOk returns a tuple with the ClassCode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterListItem) GetCloudProvider

func (o *ClusterListItem) GetCloudProvider() string

GetCloudProvider returns the CloudProvider field value.

func (*ClusterListItem) GetCloudProviderOk

func (o *ClusterListItem) GetCloudProviderOk() (*string, bool)

GetCloudProviderOk returns a tuple with the CloudProvider field value and a boolean to check if the value has been set.

func (*ClusterListItem) GetCloudRegion

func (o *ClusterListItem) GetCloudRegion() string

GetCloudRegion returns the CloudRegion field value if set, zero value otherwise.

func (*ClusterListItem) GetCloudRegionOk

func (o *ClusterListItem) GetCloudRegionOk() (*string, bool)

GetCloudRegionOk returns a tuple with the CloudRegion field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterListItem) GetCodeShort

func (o *ClusterListItem) GetCodeShort() string

GetCodeShort returns the CodeShort field value if set, zero value otherwise.

func (*ClusterListItem) GetCodeShortOk

func (o *ClusterListItem) GetCodeShortOk() (*string, bool)

GetCodeShortOk returns a tuple with the CodeShort field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterListItem) GetCreatedAt

func (o *ClusterListItem) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field value.

func (*ClusterListItem) GetCreatedAtOk

func (o *ClusterListItem) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value and a boolean to check if the value has been set.

func (*ClusterListItem) GetDisplayName

func (o *ClusterListItem) GetDisplayName() string

GetDisplayName returns the DisplayName field value if set, zero value otherwise.

func (*ClusterListItem) GetDisplayNameOk

func (o *ClusterListItem) GetDisplayNameOk() (*string, bool)

GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterListItem) GetEngine

func (o *ClusterListItem) GetEngine() string

GetEngine returns the Engine field value.

func (*ClusterListItem) GetEngineOk

func (o *ClusterListItem) GetEngineOk() (*string, bool)

GetEngineOk returns a tuple with the Engine field value and a boolean to check if the value has been set.

func (*ClusterListItem) GetEnvironmentName

func (o *ClusterListItem) GetEnvironmentName() string

GetEnvironmentName returns the EnvironmentName field value.

func (*ClusterListItem) GetEnvironmentNameOk

func (o *ClusterListItem) GetEnvironmentNameOk() (*string, bool)

GetEnvironmentNameOk returns a tuple with the EnvironmentName field value and a boolean to check if the value has been set.

func (*ClusterListItem) GetId

func (o *ClusterListItem) GetId() string

GetId returns the Id field value.

func (*ClusterListItem) GetIdOk

func (o *ClusterListItem) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*ClusterListItem) GetMode

func (o *ClusterListItem) GetMode() string

GetMode returns the Mode field value if set, zero value otherwise.

func (*ClusterListItem) GetModeOk

func (o *ClusterListItem) GetModeOk() (*string, bool)

GetModeOk returns a tuple with the Mode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterListItem) GetName

func (o *ClusterListItem) GetName() string

GetName returns the Name field value.

func (*ClusterListItem) GetNameOk

func (o *ClusterListItem) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*ClusterListItem) GetOrgName

func (o *ClusterListItem) GetOrgName() string

GetOrgName returns the OrgName field value if set, zero value otherwise.

func (*ClusterListItem) GetOrgNameOk

func (o *ClusterListItem) GetOrgNameOk() (*string, bool)

GetOrgNameOk returns a tuple with the OrgName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterListItem) GetStatus

func (o *ClusterListItem) GetStatus() string

GetStatus returns the Status field value.

func (*ClusterListItem) GetStatusOk

func (o *ClusterListItem) GetStatusOk() (*string, bool)

GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.

func (*ClusterListItem) GetStorage

func (o *ClusterListItem) GetStorage() string

GetStorage returns the Storage field value if set, zero value otherwise.

func (*ClusterListItem) GetStorageOk

func (o *ClusterListItem) GetStorageOk() (*string, bool)

GetStorageOk returns a tuple with the Storage field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterListItem) GetTerminationPolicy

func (o *ClusterListItem) GetTerminationPolicy() string

GetTerminationPolicy returns the TerminationPolicy field value.

func (*ClusterListItem) GetTerminationPolicyOk

func (o *ClusterListItem) GetTerminationPolicyOk() (*string, bool)

GetTerminationPolicyOk returns a tuple with the TerminationPolicy field value and a boolean to check if the value has been set.

func (*ClusterListItem) GetUpdatedAt

func (o *ClusterListItem) GetUpdatedAt() time.Time

GetUpdatedAt returns the UpdatedAt field value.

func (*ClusterListItem) GetUpdatedAtOk

func (o *ClusterListItem) GetUpdatedAtOk() (*time.Time, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value and a boolean to check if the value has been set.

func (*ClusterListItem) GetVersion

func (o *ClusterListItem) GetVersion() string

GetVersion returns the Version field value.

func (*ClusterListItem) GetVersionOk

func (o *ClusterListItem) GetVersionOk() (*string, bool)

GetVersionOk returns a tuple with the Version field value and a boolean to check if the value has been set.

func (*ClusterListItem) HasAvailabilityZones

func (o *ClusterListItem) HasAvailabilityZones() bool

HasAvailabilityZones returns a boolean if a field has been set.

func (*ClusterListItem) HasClassCode

func (o *ClusterListItem) HasClassCode() bool

HasClassCode returns a boolean if a field has been set.

func (*ClusterListItem) HasCloudRegion

func (o *ClusterListItem) HasCloudRegion() bool

HasCloudRegion returns a boolean if a field has been set.

func (*ClusterListItem) HasCodeShort

func (o *ClusterListItem) HasCodeShort() bool

HasCodeShort returns a boolean if a field has been set.

func (*ClusterListItem) HasDisplayName

func (o *ClusterListItem) HasDisplayName() bool

HasDisplayName returns a boolean if a field has been set.

func (*ClusterListItem) HasMode

func (o *ClusterListItem) HasMode() bool

HasMode returns a boolean if a field has been set.

func (*ClusterListItem) HasOrgName

func (o *ClusterListItem) HasOrgName() bool

HasOrgName returns a boolean if a field has been set.

func (*ClusterListItem) HasStorage

func (o *ClusterListItem) HasStorage() bool

HasStorage returns a boolean if a field has been set.

func (ClusterListItem) MarshalJSON

func (o ClusterListItem) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ClusterListItem) SetAvailabilityZones

func (o *ClusterListItem) SetAvailabilityZones(v []string)

SetAvailabilityZones gets a reference to the given []string and assigns it to the AvailabilityZones field.

func (*ClusterListItem) SetClassCode

func (o *ClusterListItem) SetClassCode(v string)

SetClassCode gets a reference to the given string and assigns it to the ClassCode field.

func (*ClusterListItem) SetCloudProvider

func (o *ClusterListItem) SetCloudProvider(v string)

SetCloudProvider sets field value.

func (*ClusterListItem) SetCloudRegion

func (o *ClusterListItem) SetCloudRegion(v string)

SetCloudRegion gets a reference to the given string and assigns it to the CloudRegion field.

func (*ClusterListItem) SetCodeShort

func (o *ClusterListItem) SetCodeShort(v string)

SetCodeShort gets a reference to the given string and assigns it to the CodeShort field.

func (*ClusterListItem) SetCreatedAt

func (o *ClusterListItem) SetCreatedAt(v time.Time)

SetCreatedAt sets field value.

func (*ClusterListItem) SetDisplayName

func (o *ClusterListItem) SetDisplayName(v string)

SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.

func (*ClusterListItem) SetEngine

func (o *ClusterListItem) SetEngine(v string)

SetEngine sets field value.

func (*ClusterListItem) SetEnvironmentName

func (o *ClusterListItem) SetEnvironmentName(v string)

SetEnvironmentName sets field value.

func (*ClusterListItem) SetId

func (o *ClusterListItem) SetId(v string)

SetId sets field value.

func (*ClusterListItem) SetMode

func (o *ClusterListItem) SetMode(v string)

SetMode gets a reference to the given string and assigns it to the Mode field.

func (*ClusterListItem) SetName

func (o *ClusterListItem) SetName(v string)

SetName sets field value.

func (*ClusterListItem) SetOrgName

func (o *ClusterListItem) SetOrgName(v string)

SetOrgName gets a reference to the given string and assigns it to the OrgName field.

func (*ClusterListItem) SetStatus

func (o *ClusterListItem) SetStatus(v string)

SetStatus sets field value.

func (*ClusterListItem) SetStorage

func (o *ClusterListItem) SetStorage(v string)

SetStorage gets a reference to the given string and assigns it to the Storage field.

func (*ClusterListItem) SetTerminationPolicy

func (o *ClusterListItem) SetTerminationPolicy(v string)

SetTerminationPolicy sets field value.

func (*ClusterListItem) SetUpdatedAt

func (o *ClusterListItem) SetUpdatedAt(v time.Time)

SetUpdatedAt sets field value.

func (*ClusterListItem) SetVersion

func (o *ClusterListItem) SetVersion(v string)

SetVersion sets field value.

func (*ClusterListItem) UnmarshalJSON

func (o *ClusterListItem) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ClusterLogApi

type ClusterLogApi common.Service

ClusterLogApi service type

func NewClusterLogApi

func NewClusterLogApi(client *common.APIClient) *ClusterLogApi

NewClusterLogApi Returns NewClusterLogApi.

func (*ClusterLogApi) QueryAuditLogs

func (a *ClusterLogApi) QueryAuditLogs(ctx _context.Context, orgName string, clusterName string, startTime string, endTime string, o ...QueryAuditLogsOptionalParameters) (interface{}, *_nethttp.Response, error)

QueryAuditLogs Query cluster audit logs. Query audit logs of a cluster

func (*ClusterLogApi) QueryErrorLogs

func (a *ClusterLogApi) QueryErrorLogs(ctx _context.Context, orgName string, clusterName string, startTime string, endTime string, o ...QueryErrorLogsOptionalParameters) (interface{}, *_nethttp.Response, error)

QueryErrorLogs Query cluster error logs. Query error logs of a cluster

func (*ClusterLogApi) QueryPodLogs

func (a *ClusterLogApi) QueryPodLogs(ctx _context.Context, orgName string, clusterName string, startTime string, endTime string, o ...QueryPodLogsOptionalParameters) (interface{}, *_nethttp.Response, error)

QueryPodLogs Query cluster pod logs. Query pod logs of a cluster

func (*ClusterLogApi) QueryRunningLogs

func (a *ClusterLogApi) QueryRunningLogs(ctx _context.Context, orgName string, clusterName string, startTime string, endTime string, o ...QueryRunningLogsOptionalParameters) (interface{}, *_nethttp.Response, error)

QueryRunningLogs Query cluster running logs. Query running logs of a cluster

func (*ClusterLogApi) QuerySlowLogs

func (a *ClusterLogApi) QuerySlowLogs(ctx _context.Context, orgName string, clusterName string, startTime string, endTime string, o ...QuerySlowLogsOptionalParameters) (interface{}, *_nethttp.Response, error)

QuerySlowLogs Query cluster slow logs. Query slow logs of a cluster

type ClusterMetrics

type ClusterMetrics struct {
	Value  []interface{}   `json:"value,omitempty"`
	Values [][]interface{} `json:"values,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ClusterMetrics Cluster metrics

func NewClusterMetrics

func NewClusterMetrics() *ClusterMetrics

NewClusterMetrics instantiates a new ClusterMetrics 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 NewClusterMetricsWithDefaults

func NewClusterMetricsWithDefaults() *ClusterMetrics

NewClusterMetricsWithDefaults instantiates a new ClusterMetrics 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 (*ClusterMetrics) GetValue

func (o *ClusterMetrics) GetValue() []interface{}

GetValue returns the Value field value if set, zero value otherwise (both if not set or set to explicit null).

func (*ClusterMetrics) GetValueOk

func (o *ClusterMetrics) GetValueOk() (*[]interface{}, bool)

GetValueOk returns a tuple with the Value field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.

func (*ClusterMetrics) GetValues

func (o *ClusterMetrics) GetValues() [][]interface{}

GetValues returns the Values field value if set, zero value otherwise.

func (*ClusterMetrics) GetValuesOk

func (o *ClusterMetrics) GetValuesOk() (*[][]interface{}, bool)

GetValuesOk returns a tuple with the Values field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterMetrics) HasValue

func (o *ClusterMetrics) HasValue() bool

HasValue returns a boolean if a field has been set.

func (*ClusterMetrics) HasValues

func (o *ClusterMetrics) HasValues() bool

HasValues returns a boolean if a field has been set.

func (ClusterMetrics) MarshalJSON

func (o ClusterMetrics) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ClusterMetrics) SetValue

func (o *ClusterMetrics) SetValue(v []interface{})

SetValue gets a reference to the given []interface{} and assigns it to the Value field.

func (*ClusterMetrics) SetValues

func (o *ClusterMetrics) SetValues(v [][]interface{})

SetValues gets a reference to the given [][]interface{} and assigns it to the Values field.

func (*ClusterMetrics) UnmarshalJSON

func (o *ClusterMetrics) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ClusterTerminationPolicy

type ClusterTerminationPolicy string

ClusterTerminationPolicy The termination policy of cluster.

const (
	ClusterTerminationPolicyDoNotTerminate ClusterTerminationPolicy = "DoNotTerminate"
	ClusterTerminationPolicyHalt           ClusterTerminationPolicy = "Halt"
	ClusterTerminationPolicyDelete         ClusterTerminationPolicy = "Delete"
	ClusterTerminationPolicyWipeOut        ClusterTerminationPolicy = "WipeOut"
)

List of ClusterTerminationPolicy.

func NewClusterTerminationPolicyFromValue

func NewClusterTerminationPolicyFromValue(v string) (*ClusterTerminationPolicy, error)

NewClusterTerminationPolicyFromValue returns a pointer to a valid ClusterTerminationPolicy for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*ClusterTerminationPolicy) GetAllowedValues

func (v *ClusterTerminationPolicy) GetAllowedValues() []ClusterTerminationPolicy

GetAllowedValues returns the list of possible values.

func (ClusterTerminationPolicy) IsValid

func (v ClusterTerminationPolicy) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (ClusterTerminationPolicy) Ptr

Ptr returns reference to ClusterTerminationPolicy value.

func (*ClusterTerminationPolicy) UnmarshalJSON

func (v *ClusterTerminationPolicy) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type ClusterUpdate

type ClusterUpdate struct {
	// The number of replicas, for standalone mode, the replicas is 1, for raftGroup mode, the default replicas is 3.
	Replicas *int32 `json:"replicas,omitempty"`
	// CPU cores.
	Cpu *float64 `json:"cpu,omitempty"`
	// Memory, the unit is Gi.
	Memory *float64 `json:"memory,omitempty"`
	// Storage size, the unit is Gi.
	Storage *float64 `json:"storage,omitempty"`
	// The termination policy of cluster.
	TerminationPolicy *ClusterTerminationPolicy `json:"terminationPolicy,omitempty"`
	// Specify whether the cluster enable monitoring.
	MonitorEnabled *bool `json:"monitorEnabled,omitempty"`
	// Specify whether the cluster can be accessed from within the VPC.
	VpcEndpointEnabled *bool `json:"vpcEndpointEnabled,omitempty"`
	// Specify whether the cluster can be accessed from the public internet.
	InternetEndpointEnabled *bool `json:"internetEndpointEnabled,omitempty"`
	// Items is the list of parameter template in the list
	ParamTpls []ParamTplsItem `json:"paramTpls,omitempty"`
	// Tolerations of cluster
	Tolerations *string `json:"tolerations,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ClusterUpdate ClusterUpdate is the payload to update a KubeBlocks cluster

func NewClusterUpdate

func NewClusterUpdate() *ClusterUpdate

NewClusterUpdate instantiates a new ClusterUpdate 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 NewClusterUpdateWithDefaults

func NewClusterUpdateWithDefaults() *ClusterUpdate

NewClusterUpdateWithDefaults instantiates a new ClusterUpdate 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 (*ClusterUpdate) GetCpu

func (o *ClusterUpdate) GetCpu() float64

GetCpu returns the Cpu field value if set, zero value otherwise.

func (*ClusterUpdate) GetCpuOk

func (o *ClusterUpdate) GetCpuOk() (*float64, bool)

GetCpuOk returns a tuple with the Cpu field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterUpdate) GetInternetEndpointEnabled

func (o *ClusterUpdate) GetInternetEndpointEnabled() bool

GetInternetEndpointEnabled returns the InternetEndpointEnabled field value if set, zero value otherwise.

func (*ClusterUpdate) GetInternetEndpointEnabledOk

func (o *ClusterUpdate) GetInternetEndpointEnabledOk() (*bool, bool)

GetInternetEndpointEnabledOk returns a tuple with the InternetEndpointEnabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterUpdate) GetMemory

func (o *ClusterUpdate) GetMemory() float64

GetMemory returns the Memory field value if set, zero value otherwise.

func (*ClusterUpdate) GetMemoryOk

func (o *ClusterUpdate) GetMemoryOk() (*float64, bool)

GetMemoryOk returns a tuple with the Memory field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterUpdate) GetMonitorEnabled

func (o *ClusterUpdate) GetMonitorEnabled() bool

GetMonitorEnabled returns the MonitorEnabled field value if set, zero value otherwise.

func (*ClusterUpdate) GetMonitorEnabledOk

func (o *ClusterUpdate) GetMonitorEnabledOk() (*bool, bool)

GetMonitorEnabledOk returns a tuple with the MonitorEnabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterUpdate) GetParamTpls

func (o *ClusterUpdate) GetParamTpls() []ParamTplsItem

GetParamTpls returns the ParamTpls field value if set, zero value otherwise.

func (*ClusterUpdate) GetParamTplsOk

func (o *ClusterUpdate) GetParamTplsOk() (*[]ParamTplsItem, bool)

GetParamTplsOk returns a tuple with the ParamTpls field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterUpdate) GetReplicas

func (o *ClusterUpdate) GetReplicas() int32

GetReplicas returns the Replicas field value if set, zero value otherwise.

func (*ClusterUpdate) GetReplicasOk

func (o *ClusterUpdate) GetReplicasOk() (*int32, bool)

GetReplicasOk returns a tuple with the Replicas field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterUpdate) GetStorage

func (o *ClusterUpdate) GetStorage() float64

GetStorage returns the Storage field value if set, zero value otherwise.

func (*ClusterUpdate) GetStorageOk

func (o *ClusterUpdate) GetStorageOk() (*float64, bool)

GetStorageOk returns a tuple with the Storage field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterUpdate) GetTerminationPolicy

func (o *ClusterUpdate) GetTerminationPolicy() ClusterTerminationPolicy

GetTerminationPolicy returns the TerminationPolicy field value if set, zero value otherwise.

func (*ClusterUpdate) GetTerminationPolicyOk

func (o *ClusterUpdate) GetTerminationPolicyOk() (*ClusterTerminationPolicy, bool)

GetTerminationPolicyOk returns a tuple with the TerminationPolicy field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterUpdate) GetTolerations

func (o *ClusterUpdate) GetTolerations() string

GetTolerations returns the Tolerations field value if set, zero value otherwise.

func (*ClusterUpdate) GetTolerationsOk

func (o *ClusterUpdate) GetTolerationsOk() (*string, bool)

GetTolerationsOk returns a tuple with the Tolerations field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterUpdate) GetVpcEndpointEnabled

func (o *ClusterUpdate) GetVpcEndpointEnabled() bool

GetVpcEndpointEnabled returns the VpcEndpointEnabled field value if set, zero value otherwise.

func (*ClusterUpdate) GetVpcEndpointEnabledOk

func (o *ClusterUpdate) GetVpcEndpointEnabledOk() (*bool, bool)

GetVpcEndpointEnabledOk returns a tuple with the VpcEndpointEnabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ClusterUpdate) HasCpu

func (o *ClusterUpdate) HasCpu() bool

HasCpu returns a boolean if a field has been set.

func (*ClusterUpdate) HasInternetEndpointEnabled

func (o *ClusterUpdate) HasInternetEndpointEnabled() bool

HasInternetEndpointEnabled returns a boolean if a field has been set.

func (*ClusterUpdate) HasMemory

func (o *ClusterUpdate) HasMemory() bool

HasMemory returns a boolean if a field has been set.

func (*ClusterUpdate) HasMonitorEnabled

func (o *ClusterUpdate) HasMonitorEnabled() bool

HasMonitorEnabled returns a boolean if a field has been set.

func (*ClusterUpdate) HasParamTpls

func (o *ClusterUpdate) HasParamTpls() bool

HasParamTpls returns a boolean if a field has been set.

func (*ClusterUpdate) HasReplicas

func (o *ClusterUpdate) HasReplicas() bool

HasReplicas returns a boolean if a field has been set.

func (*ClusterUpdate) HasStorage

func (o *ClusterUpdate) HasStorage() bool

HasStorage returns a boolean if a field has been set.

func (*ClusterUpdate) HasTerminationPolicy

func (o *ClusterUpdate) HasTerminationPolicy() bool

HasTerminationPolicy returns a boolean if a field has been set.

func (*ClusterUpdate) HasTolerations

func (o *ClusterUpdate) HasTolerations() bool

HasTolerations returns a boolean if a field has been set.

func (*ClusterUpdate) HasVpcEndpointEnabled

func (o *ClusterUpdate) HasVpcEndpointEnabled() bool

HasVpcEndpointEnabled returns a boolean if a field has been set.

func (ClusterUpdate) MarshalJSON

func (o ClusterUpdate) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ClusterUpdate) SetCpu

func (o *ClusterUpdate) SetCpu(v float64)

SetCpu gets a reference to the given float64 and assigns it to the Cpu field.

func (*ClusterUpdate) SetInternetEndpointEnabled

func (o *ClusterUpdate) SetInternetEndpointEnabled(v bool)

SetInternetEndpointEnabled gets a reference to the given bool and assigns it to the InternetEndpointEnabled field.

func (*ClusterUpdate) SetMemory

func (o *ClusterUpdate) SetMemory(v float64)

SetMemory gets a reference to the given float64 and assigns it to the Memory field.

func (*ClusterUpdate) SetMonitorEnabled

func (o *ClusterUpdate) SetMonitorEnabled(v bool)

SetMonitorEnabled gets a reference to the given bool and assigns it to the MonitorEnabled field.

func (*ClusterUpdate) SetParamTpls

func (o *ClusterUpdate) SetParamTpls(v []ParamTplsItem)

SetParamTpls gets a reference to the given []ParamTplsItem and assigns it to the ParamTpls field.

func (*ClusterUpdate) SetReplicas

func (o *ClusterUpdate) SetReplicas(v int32)

SetReplicas gets a reference to the given int32 and assigns it to the Replicas field.

func (*ClusterUpdate) SetStorage

func (o *ClusterUpdate) SetStorage(v float64)

SetStorage gets a reference to the given float64 and assigns it to the Storage field.

func (*ClusterUpdate) SetTerminationPolicy

func (o *ClusterUpdate) SetTerminationPolicy(v ClusterTerminationPolicy)

SetTerminationPolicy gets a reference to the given ClusterTerminationPolicy and assigns it to the TerminationPolicy field.

func (*ClusterUpdate) SetTolerations

func (o *ClusterUpdate) SetTolerations(v string)

SetTolerations gets a reference to the given string and assigns it to the Tolerations field.

func (*ClusterUpdate) SetVpcEndpointEnabled

func (o *ClusterUpdate) SetVpcEndpointEnabled(v bool)

SetVpcEndpointEnabled gets a reference to the given bool and assigns it to the VpcEndpointEnabled field.

func (*ClusterUpdate) UnmarshalJSON

func (o *ClusterUpdate) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ComponentOpsOption

type ComponentOpsOption struct {
	Component string `json:"component"`
	DisableHa *bool  `json:"disableHA,omitempty"`
	// parameter for rebuild instance ops
	InPlace *bool `json:"inPlace,omitempty"`
	// indicate whether backup is required when Inplace is true
	NeedBackupWhenInPlace *bool                                 `json:"needBackupWhenInPlace,omitempty"`
	RestoreEnv            []ComponentOpsOptionRestoreEnvItem    `json:"restoreEnv,omitempty"`
	DependentCustomOps    *ComponentOpsOptionDependentCustomOps `json:"dependentCustomOps,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewComponentOpsOption

func NewComponentOpsOption(component string) *ComponentOpsOption

NewComponentOpsOption instantiates a new ComponentOpsOption 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 NewComponentOpsOptionWithDefaults

func NewComponentOpsOptionWithDefaults() *ComponentOpsOption

NewComponentOpsOptionWithDefaults instantiates a new ComponentOpsOption 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 (*ComponentOpsOption) GetComponent

func (o *ComponentOpsOption) GetComponent() string

GetComponent returns the Component field value.

func (*ComponentOpsOption) GetComponentOk

func (o *ComponentOpsOption) GetComponentOk() (*string, bool)

GetComponentOk returns a tuple with the Component field value and a boolean to check if the value has been set.

func (*ComponentOpsOption) GetDependentCustomOps

func (o *ComponentOpsOption) GetDependentCustomOps() ComponentOpsOptionDependentCustomOps

GetDependentCustomOps returns the DependentCustomOps field value if set, zero value otherwise.

func (*ComponentOpsOption) GetDependentCustomOpsOk

func (o *ComponentOpsOption) GetDependentCustomOpsOk() (*ComponentOpsOptionDependentCustomOps, bool)

GetDependentCustomOpsOk returns a tuple with the DependentCustomOps field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ComponentOpsOption) GetDisableHa

func (o *ComponentOpsOption) GetDisableHa() bool

GetDisableHa returns the DisableHa field value if set, zero value otherwise.

func (*ComponentOpsOption) GetDisableHaOk

func (o *ComponentOpsOption) GetDisableHaOk() (*bool, bool)

GetDisableHaOk returns a tuple with the DisableHa field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ComponentOpsOption) GetInPlace

func (o *ComponentOpsOption) GetInPlace() bool

GetInPlace returns the InPlace field value if set, zero value otherwise.

func (*ComponentOpsOption) GetInPlaceOk

func (o *ComponentOpsOption) GetInPlaceOk() (*bool, bool)

GetInPlaceOk returns a tuple with the InPlace field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ComponentOpsOption) GetNeedBackupWhenInPlace

func (o *ComponentOpsOption) GetNeedBackupWhenInPlace() bool

GetNeedBackupWhenInPlace returns the NeedBackupWhenInPlace field value if set, zero value otherwise.

func (*ComponentOpsOption) GetNeedBackupWhenInPlaceOk

func (o *ComponentOpsOption) GetNeedBackupWhenInPlaceOk() (*bool, bool)

GetNeedBackupWhenInPlaceOk returns a tuple with the NeedBackupWhenInPlace field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ComponentOpsOption) GetRestoreEnv

GetRestoreEnv returns the RestoreEnv field value if set, zero value otherwise.

func (*ComponentOpsOption) GetRestoreEnvOk

func (o *ComponentOpsOption) GetRestoreEnvOk() (*[]ComponentOpsOptionRestoreEnvItem, bool)

GetRestoreEnvOk returns a tuple with the RestoreEnv field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ComponentOpsOption) HasDependentCustomOps

func (o *ComponentOpsOption) HasDependentCustomOps() bool

HasDependentCustomOps returns a boolean if a field has been set.

func (*ComponentOpsOption) HasDisableHa

func (o *ComponentOpsOption) HasDisableHa() bool

HasDisableHa returns a boolean if a field has been set.

func (*ComponentOpsOption) HasInPlace

func (o *ComponentOpsOption) HasInPlace() bool

HasInPlace returns a boolean if a field has been set.

func (*ComponentOpsOption) HasNeedBackupWhenInPlace

func (o *ComponentOpsOption) HasNeedBackupWhenInPlace() bool

HasNeedBackupWhenInPlace returns a boolean if a field has been set.

func (*ComponentOpsOption) HasRestoreEnv

func (o *ComponentOpsOption) HasRestoreEnv() bool

HasRestoreEnv returns a boolean if a field has been set.

func (ComponentOpsOption) MarshalJSON

func (o ComponentOpsOption) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ComponentOpsOption) SetComponent

func (o *ComponentOpsOption) SetComponent(v string)

SetComponent sets field value.

func (*ComponentOpsOption) SetDependentCustomOps

func (o *ComponentOpsOption) SetDependentCustomOps(v ComponentOpsOptionDependentCustomOps)

SetDependentCustomOps gets a reference to the given ComponentOpsOptionDependentCustomOps and assigns it to the DependentCustomOps field.

func (*ComponentOpsOption) SetDisableHa

func (o *ComponentOpsOption) SetDisableHa(v bool)

SetDisableHa gets a reference to the given bool and assigns it to the DisableHa field.

func (*ComponentOpsOption) SetInPlace

func (o *ComponentOpsOption) SetInPlace(v bool)

SetInPlace gets a reference to the given bool and assigns it to the InPlace field.

func (*ComponentOpsOption) SetNeedBackupWhenInPlace

func (o *ComponentOpsOption) SetNeedBackupWhenInPlace(v bool)

SetNeedBackupWhenInPlace gets a reference to the given bool and assigns it to the NeedBackupWhenInPlace field.

func (*ComponentOpsOption) SetRestoreEnv

SetRestoreEnv gets a reference to the given []ComponentOpsOptionRestoreEnvItem and assigns it to the RestoreEnv field.

func (*ComponentOpsOption) UnmarshalJSON

func (o *ComponentOpsOption) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ComponentOpsOptionDependentCustomOps

type ComponentOpsOptionDependentCustomOps struct {
	// opsDefinition name
	OpsDefName *string `json:"opsDefName,omitempty"`
	// component type name
	Component *string `json:"component,omitempty"`
	// go template conditional judgment expression, such as $.root.inPlace == true
	// available built-in objects that can be referenced in the expression include:
	// - cluster: cluster record
	// - params: ops input parameters
	// - component: current component
	// - root: current object
	//
	When *string `json:"when,omitempty"`
	// custom ops parameters
	Params []ComponentOpsOptionDependentCustomOpsParamsItem `json:"params,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewComponentOpsOptionDependentCustomOps

func NewComponentOpsOptionDependentCustomOps() *ComponentOpsOptionDependentCustomOps

NewComponentOpsOptionDependentCustomOps instantiates a new ComponentOpsOptionDependentCustomOps 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 NewComponentOpsOptionDependentCustomOpsWithDefaults

func NewComponentOpsOptionDependentCustomOpsWithDefaults() *ComponentOpsOptionDependentCustomOps

NewComponentOpsOptionDependentCustomOpsWithDefaults instantiates a new ComponentOpsOptionDependentCustomOps 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 (*ComponentOpsOptionDependentCustomOps) GetComponent

func (o *ComponentOpsOptionDependentCustomOps) GetComponent() string

GetComponent returns the Component field value if set, zero value otherwise.

func (*ComponentOpsOptionDependentCustomOps) GetComponentOk

func (o *ComponentOpsOptionDependentCustomOps) GetComponentOk() (*string, bool)

GetComponentOk returns a tuple with the Component field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ComponentOpsOptionDependentCustomOps) GetOpsDefName

func (o *ComponentOpsOptionDependentCustomOps) GetOpsDefName() string

GetOpsDefName returns the OpsDefName field value if set, zero value otherwise.

func (*ComponentOpsOptionDependentCustomOps) GetOpsDefNameOk

func (o *ComponentOpsOptionDependentCustomOps) GetOpsDefNameOk() (*string, bool)

GetOpsDefNameOk returns a tuple with the OpsDefName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ComponentOpsOptionDependentCustomOps) GetParams

GetParams returns the Params field value if set, zero value otherwise.

func (*ComponentOpsOptionDependentCustomOps) GetParamsOk

GetParamsOk returns a tuple with the Params field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ComponentOpsOptionDependentCustomOps) GetWhen

GetWhen returns the When field value if set, zero value otherwise.

func (*ComponentOpsOptionDependentCustomOps) GetWhenOk

GetWhenOk returns a tuple with the When field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ComponentOpsOptionDependentCustomOps) HasComponent

func (o *ComponentOpsOptionDependentCustomOps) HasComponent() bool

HasComponent returns a boolean if a field has been set.

func (*ComponentOpsOptionDependentCustomOps) HasOpsDefName

func (o *ComponentOpsOptionDependentCustomOps) HasOpsDefName() bool

HasOpsDefName returns a boolean if a field has been set.

func (*ComponentOpsOptionDependentCustomOps) HasParams

HasParams returns a boolean if a field has been set.

func (*ComponentOpsOptionDependentCustomOps) HasWhen

HasWhen returns a boolean if a field has been set.

func (ComponentOpsOptionDependentCustomOps) MarshalJSON

func (o ComponentOpsOptionDependentCustomOps) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ComponentOpsOptionDependentCustomOps) SetComponent

func (o *ComponentOpsOptionDependentCustomOps) SetComponent(v string)

SetComponent gets a reference to the given string and assigns it to the Component field.

func (*ComponentOpsOptionDependentCustomOps) SetOpsDefName

func (o *ComponentOpsOptionDependentCustomOps) SetOpsDefName(v string)

SetOpsDefName gets a reference to the given string and assigns it to the OpsDefName field.

func (*ComponentOpsOptionDependentCustomOps) SetParams

SetParams gets a reference to the given []ComponentOpsOptionDependentCustomOpsParamsItem and assigns it to the Params field.

func (*ComponentOpsOptionDependentCustomOps) SetWhen

SetWhen gets a reference to the given string and assigns it to the When field.

func (*ComponentOpsOptionDependentCustomOps) UnmarshalJSON

func (o *ComponentOpsOptionDependentCustomOps) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ComponentOpsOptionDependentCustomOpsParamsItem

type ComponentOpsOptionDependentCustomOpsParamsItem struct {
	// parameter name.
	Name *string `json:"name,omitempty"`
	// parameter value, you can define a go template expression to refer the variable of the current ops.
	// available built-in objects that can be referenced in the expression include:
	// - cluster: cluster record
	// - params: ops input parameters
	// - component: current component
	// - root: current object
	//
	Value *string `json:"value,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewComponentOpsOptionDependentCustomOpsParamsItem

func NewComponentOpsOptionDependentCustomOpsParamsItem() *ComponentOpsOptionDependentCustomOpsParamsItem

NewComponentOpsOptionDependentCustomOpsParamsItem instantiates a new ComponentOpsOptionDependentCustomOpsParamsItem 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 NewComponentOpsOptionDependentCustomOpsParamsItemWithDefaults

func NewComponentOpsOptionDependentCustomOpsParamsItemWithDefaults() *ComponentOpsOptionDependentCustomOpsParamsItem

NewComponentOpsOptionDependentCustomOpsParamsItemWithDefaults instantiates a new ComponentOpsOptionDependentCustomOpsParamsItem 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 (*ComponentOpsOptionDependentCustomOpsParamsItem) GetName

GetName returns the Name field value if set, zero value otherwise.

func (*ComponentOpsOptionDependentCustomOpsParamsItem) GetNameOk

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ComponentOpsOptionDependentCustomOpsParamsItem) GetValue

GetValue returns the Value field value if set, zero value otherwise.

func (*ComponentOpsOptionDependentCustomOpsParamsItem) GetValueOk

GetValueOk returns a tuple with the Value field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ComponentOpsOptionDependentCustomOpsParamsItem) HasName

HasName returns a boolean if a field has been set.

func (*ComponentOpsOptionDependentCustomOpsParamsItem) HasValue

HasValue returns a boolean if a field has been set.

func (ComponentOpsOptionDependentCustomOpsParamsItem) MarshalJSON

MarshalJSON serializes the struct using spec logic.

func (*ComponentOpsOptionDependentCustomOpsParamsItem) SetName

SetName gets a reference to the given string and assigns it to the Name field.

func (*ComponentOpsOptionDependentCustomOpsParamsItem) SetValue

SetValue gets a reference to the given string and assigns it to the Value field.

func (*ComponentOpsOptionDependentCustomOpsParamsItem) UnmarshalJSON

func (o *ComponentOpsOptionDependentCustomOpsParamsItem) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ComponentOpsOptionRestoreEnvItem

type ComponentOpsOptionRestoreEnvItem struct {
	// env name
	Name string `json:"name"`
	// env value
	Value string `json:"value"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewComponentOpsOptionRestoreEnvItem

func NewComponentOpsOptionRestoreEnvItem(name string, value string) *ComponentOpsOptionRestoreEnvItem

NewComponentOpsOptionRestoreEnvItem instantiates a new ComponentOpsOptionRestoreEnvItem 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 NewComponentOpsOptionRestoreEnvItemWithDefaults

func NewComponentOpsOptionRestoreEnvItemWithDefaults() *ComponentOpsOptionRestoreEnvItem

NewComponentOpsOptionRestoreEnvItemWithDefaults instantiates a new ComponentOpsOptionRestoreEnvItem 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 (*ComponentOpsOptionRestoreEnvItem) GetName

GetName returns the Name field value.

func (*ComponentOpsOptionRestoreEnvItem) GetNameOk

func (o *ComponentOpsOptionRestoreEnvItem) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*ComponentOpsOptionRestoreEnvItem) GetValue

GetValue returns the Value field value.

func (*ComponentOpsOptionRestoreEnvItem) GetValueOk

func (o *ComponentOpsOptionRestoreEnvItem) GetValueOk() (*string, bool)

GetValueOk returns a tuple with the Value field value and a boolean to check if the value has been set.

func (ComponentOpsOptionRestoreEnvItem) MarshalJSON

func (o ComponentOpsOptionRestoreEnvItem) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ComponentOpsOptionRestoreEnvItem) SetName

SetName sets field value.

func (*ComponentOpsOptionRestoreEnvItem) SetValue

SetValue sets field value.

func (*ComponentOpsOptionRestoreEnvItem) UnmarshalJSON

func (o *ComponentOpsOptionRestoreEnvItem) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ComponentOption

type ComponentOption struct {
	// component type
	Name string `json:"name"`
	// Determine whether the componentDef of kb-cluster belongs to this component type through this matching regularization.
	// if not set, componentDef must be equal to component type.
	//
	MatchRegex *string                 `json:"matchRegex,omitempty"`
	Title      LocalizedDescription    `json:"title"`
	Order      int32                   `json:"order"`
	RoleOrder  []string                `json:"roleOrder,omitempty"`
	Version    *ComponentOptionVersion `json:"version,omitempty"`
	// Main component flag
	Main *bool `json:"main,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewComponentOption

func NewComponentOption(name string, title LocalizedDescription, order int32) *ComponentOption

NewComponentOption instantiates a new ComponentOption 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 NewComponentOptionWithDefaults

func NewComponentOptionWithDefaults() *ComponentOption

NewComponentOptionWithDefaults instantiates a new ComponentOption 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 (*ComponentOption) GetMain

func (o *ComponentOption) GetMain() bool

GetMain returns the Main field value if set, zero value otherwise.

func (*ComponentOption) GetMainOk

func (o *ComponentOption) GetMainOk() (*bool, bool)

GetMainOk returns a tuple with the Main field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ComponentOption) GetMatchRegex

func (o *ComponentOption) GetMatchRegex() string

GetMatchRegex returns the MatchRegex field value if set, zero value otherwise.

func (*ComponentOption) GetMatchRegexOk

func (o *ComponentOption) GetMatchRegexOk() (*string, bool)

GetMatchRegexOk returns a tuple with the MatchRegex field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ComponentOption) GetName

func (o *ComponentOption) GetName() string

GetName returns the Name field value.

func (*ComponentOption) GetNameOk

func (o *ComponentOption) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*ComponentOption) GetOrder

func (o *ComponentOption) GetOrder() int32

GetOrder returns the Order field value.

func (*ComponentOption) GetOrderOk

func (o *ComponentOption) GetOrderOk() (*int32, bool)

GetOrderOk returns a tuple with the Order field value and a boolean to check if the value has been set.

func (*ComponentOption) GetRoleOrder

func (o *ComponentOption) GetRoleOrder() []string

GetRoleOrder returns the RoleOrder field value if set, zero value otherwise.

func (*ComponentOption) GetRoleOrderOk

func (o *ComponentOption) GetRoleOrderOk() (*[]string, bool)

GetRoleOrderOk returns a tuple with the RoleOrder field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ComponentOption) GetTitle

func (o *ComponentOption) GetTitle() LocalizedDescription

GetTitle returns the Title field value.

func (*ComponentOption) GetTitleOk

func (o *ComponentOption) GetTitleOk() (*LocalizedDescription, bool)

GetTitleOk returns a tuple with the Title field value and a boolean to check if the value has been set.

func (*ComponentOption) GetVersion

func (o *ComponentOption) GetVersion() ComponentOptionVersion

GetVersion returns the Version field value if set, zero value otherwise.

func (*ComponentOption) GetVersionOk

func (o *ComponentOption) GetVersionOk() (*ComponentOptionVersion, bool)

GetVersionOk returns a tuple with the Version field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ComponentOption) HasMain

func (o *ComponentOption) HasMain() bool

HasMain returns a boolean if a field has been set.

func (*ComponentOption) HasMatchRegex

func (o *ComponentOption) HasMatchRegex() bool

HasMatchRegex returns a boolean if a field has been set.

func (*ComponentOption) HasRoleOrder added in v0.28.44

func (o *ComponentOption) HasRoleOrder() bool

HasRoleOrder returns a boolean if a field has been set.

func (*ComponentOption) HasVersion

func (o *ComponentOption) HasVersion() bool

HasVersion returns a boolean if a field has been set.

func (ComponentOption) MarshalJSON

func (o ComponentOption) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ComponentOption) SetMain

func (o *ComponentOption) SetMain(v bool)

SetMain gets a reference to the given bool and assigns it to the Main field.

func (*ComponentOption) SetMatchRegex

func (o *ComponentOption) SetMatchRegex(v string)

SetMatchRegex gets a reference to the given string and assigns it to the MatchRegex field.

func (*ComponentOption) SetName

func (o *ComponentOption) SetName(v string)

SetName sets field value.

func (*ComponentOption) SetOrder

func (o *ComponentOption) SetOrder(v int32)

SetOrder sets field value.

func (*ComponentOption) SetRoleOrder

func (o *ComponentOption) SetRoleOrder(v []string)

SetRoleOrder gets a reference to the given []string and assigns it to the RoleOrder field.

func (*ComponentOption) SetTitle

func (o *ComponentOption) SetTitle(v LocalizedDescription)

SetTitle sets field value.

func (*ComponentOption) SetVersion

func (o *ComponentOption) SetVersion(v ComponentOptionVersion)

SetVersion gets a reference to the given ComponentOptionVersion and assigns it to the Version field.

func (*ComponentOption) UnmarshalJSON

func (o *ComponentOption) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ComponentOptionVersion

type ComponentOptionVersion struct {
	// component version name
	ComponentVersionName string                              `json:"componentVersionName"`
	MinorVersion         *ComponentOptionVersionMinorVersion `json:"minorVersion,omitempty"`
	MajorVersion         ComponentOptionVersionMajorVersion  `json:"majorVersion"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewComponentOptionVersion

func NewComponentOptionVersion(componentVersionName string, majorVersion ComponentOptionVersionMajorVersion) *ComponentOptionVersion

NewComponentOptionVersion instantiates a new ComponentOptionVersion 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 NewComponentOptionVersionWithDefaults

func NewComponentOptionVersionWithDefaults() *ComponentOptionVersion

NewComponentOptionVersionWithDefaults instantiates a new ComponentOptionVersion 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 (*ComponentOptionVersion) GetComponentVersionName

func (o *ComponentOptionVersion) GetComponentVersionName() string

GetComponentVersionName returns the ComponentVersionName field value.

func (*ComponentOptionVersion) GetComponentVersionNameOk

func (o *ComponentOptionVersion) GetComponentVersionNameOk() (*string, bool)

GetComponentVersionNameOk returns a tuple with the ComponentVersionName field value and a boolean to check if the value has been set.

func (*ComponentOptionVersion) GetMajorVersion

GetMajorVersion returns the MajorVersion field value.

func (*ComponentOptionVersion) GetMajorVersionOk

GetMajorVersionOk returns a tuple with the MajorVersion field value and a boolean to check if the value has been set.

func (*ComponentOptionVersion) GetMinorVersion

GetMinorVersion returns the MinorVersion field value if set, zero value otherwise.

func (*ComponentOptionVersion) GetMinorVersionOk

GetMinorVersionOk returns a tuple with the MinorVersion field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ComponentOptionVersion) HasMinorVersion

func (o *ComponentOptionVersion) HasMinorVersion() bool

HasMinorVersion returns a boolean if a field has been set.

func (ComponentOptionVersion) MarshalJSON

func (o ComponentOptionVersion) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ComponentOptionVersion) SetComponentVersionName

func (o *ComponentOptionVersion) SetComponentVersionName(v string)

SetComponentVersionName sets field value.

func (*ComponentOptionVersion) SetMajorVersion

SetMajorVersion sets field value.

func (*ComponentOptionVersion) SetMinorVersion

SetMinorVersion gets a reference to the given ComponentOptionVersionMinorVersion and assigns it to the MinorVersion field.

func (*ComponentOptionVersion) UnmarshalJSON

func (o *ComponentOptionVersion) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ComponentOptionVersionMajorVersion

type ComponentOptionVersionMajorVersion struct {
	// default major version.
	Default *string `json:"default,omitempty"`
	// ServiceVersion uses semver syntax(X Y.Z), such MySQL 5.7.4 and PG 14.8.0.
	// Currently supports [X, X.Y, X.Y.Z] formats to determine major versions of the engine from the serviceVersion
	//
	Rule           string                                                 `json:"rule"`
	VersionMapping []ComponentOptionVersionMajorVersionVersionMappingItem `json:"versionMapping,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewComponentOptionVersionMajorVersion

func NewComponentOptionVersionMajorVersion(rule string) *ComponentOptionVersionMajorVersion

NewComponentOptionVersionMajorVersion instantiates a new ComponentOptionVersionMajorVersion 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 NewComponentOptionVersionMajorVersionWithDefaults

func NewComponentOptionVersionMajorVersionWithDefaults() *ComponentOptionVersionMajorVersion

NewComponentOptionVersionMajorVersionWithDefaults instantiates a new ComponentOptionVersionMajorVersion 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 (*ComponentOptionVersionMajorVersion) GetDefault

GetDefault returns the Default field value if set, zero value otherwise.

func (*ComponentOptionVersionMajorVersion) GetDefaultOk

func (o *ComponentOptionVersionMajorVersion) GetDefaultOk() (*string, bool)

GetDefaultOk returns a tuple with the Default field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ComponentOptionVersionMajorVersion) GetRule

GetRule returns the Rule field value.

func (*ComponentOptionVersionMajorVersion) GetRuleOk

func (o *ComponentOptionVersionMajorVersion) GetRuleOk() (*string, bool)

GetRuleOk returns a tuple with the Rule field value and a boolean to check if the value has been set.

func (*ComponentOptionVersionMajorVersion) GetVersionMapping

GetVersionMapping returns the VersionMapping field value if set, zero value otherwise.

func (*ComponentOptionVersionMajorVersion) GetVersionMappingOk

GetVersionMappingOk returns a tuple with the VersionMapping field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ComponentOptionVersionMajorVersion) HasDefault

func (o *ComponentOptionVersionMajorVersion) HasDefault() bool

HasDefault returns a boolean if a field has been set.

func (*ComponentOptionVersionMajorVersion) HasVersionMapping

func (o *ComponentOptionVersionMajorVersion) HasVersionMapping() bool

HasVersionMapping returns a boolean if a field has been set.

func (ComponentOptionVersionMajorVersion) MarshalJSON

func (o ComponentOptionVersionMajorVersion) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ComponentOptionVersionMajorVersion) SetDefault

func (o *ComponentOptionVersionMajorVersion) SetDefault(v string)

SetDefault gets a reference to the given string and assigns it to the Default field.

func (*ComponentOptionVersionMajorVersion) SetRule

SetRule sets field value.

func (*ComponentOptionVersionMajorVersion) SetVersionMapping

SetVersionMapping gets a reference to the given []ComponentOptionVersionMajorVersionVersionMappingItem and assigns it to the VersionMapping field.

func (*ComponentOptionVersionMajorVersion) UnmarshalJSON

func (o *ComponentOptionVersionMajorVersion) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ComponentOptionVersionMajorVersionVersionMappingItem

type ComponentOptionVersionMajorVersionVersionMappingItem struct {
	// major version of the main component
	MainComponentMajorVersion *string `json:"mainComponentMajorVersion,omitempty"`
	// major versions of the current component
	Versions []string `json:"versions,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ComponentOptionVersionMajorVersionVersionMappingItem Configure the mapping relationship with the main component's major versions.

func NewComponentOptionVersionMajorVersionVersionMappingItem

func NewComponentOptionVersionMajorVersionVersionMappingItem() *ComponentOptionVersionMajorVersionVersionMappingItem

NewComponentOptionVersionMajorVersionVersionMappingItem instantiates a new ComponentOptionVersionMajorVersionVersionMappingItem 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 NewComponentOptionVersionMajorVersionVersionMappingItemWithDefaults

func NewComponentOptionVersionMajorVersionVersionMappingItemWithDefaults() *ComponentOptionVersionMajorVersionVersionMappingItem

NewComponentOptionVersionMajorVersionVersionMappingItemWithDefaults instantiates a new ComponentOptionVersionMajorVersionVersionMappingItem 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 (*ComponentOptionVersionMajorVersionVersionMappingItem) GetMainComponentMajorVersion

func (o *ComponentOptionVersionMajorVersionVersionMappingItem) GetMainComponentMajorVersion() string

GetMainComponentMajorVersion returns the MainComponentMajorVersion field value if set, zero value otherwise.

func (*ComponentOptionVersionMajorVersionVersionMappingItem) GetMainComponentMajorVersionOk

func (o *ComponentOptionVersionMajorVersionVersionMappingItem) GetMainComponentMajorVersionOk() (*string, bool)

GetMainComponentMajorVersionOk returns a tuple with the MainComponentMajorVersion field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ComponentOptionVersionMajorVersionVersionMappingItem) GetVersions

GetVersions returns the Versions field value if set, zero value otherwise.

func (*ComponentOptionVersionMajorVersionVersionMappingItem) GetVersionsOk

GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ComponentOptionVersionMajorVersionVersionMappingItem) HasMainComponentMajorVersion

func (o *ComponentOptionVersionMajorVersionVersionMappingItem) HasMainComponentMajorVersion() bool

HasMainComponentMajorVersion returns a boolean if a field has been set.

func (*ComponentOptionVersionMajorVersionVersionMappingItem) HasVersions

HasVersions returns a boolean if a field has been set.

func (ComponentOptionVersionMajorVersionVersionMappingItem) MarshalJSON

MarshalJSON serializes the struct using spec logic.

func (*ComponentOptionVersionMajorVersionVersionMappingItem) SetMainComponentMajorVersion

func (o *ComponentOptionVersionMajorVersionVersionMappingItem) SetMainComponentMajorVersion(v string)

SetMainComponentMajorVersion gets a reference to the given string and assigns it to the MainComponentMajorVersion field.

func (*ComponentOptionVersionMajorVersionVersionMappingItem) SetVersions

SetVersions gets a reference to the given []string and assigns it to the Versions field.

func (*ComponentOptionVersionMajorVersionVersionMappingItem) UnmarshalJSON

func (o *ComponentOptionVersionMajorVersionVersionMappingItem) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ComponentOptionVersionMinorVersion

type ComponentOptionVersionMinorVersion struct {
	// determine whether minor version can be rolled back.
	Rollback *bool `json:"rollback,omitempty"`
	// disable roll back the preRelease minor version.
	DisableRollbackPreRelease *bool `json:"disableRollbackPreRelease,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewComponentOptionVersionMinorVersion

func NewComponentOptionVersionMinorVersion() *ComponentOptionVersionMinorVersion

NewComponentOptionVersionMinorVersion instantiates a new ComponentOptionVersionMinorVersion 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 NewComponentOptionVersionMinorVersionWithDefaults

func NewComponentOptionVersionMinorVersionWithDefaults() *ComponentOptionVersionMinorVersion

NewComponentOptionVersionMinorVersionWithDefaults instantiates a new ComponentOptionVersionMinorVersion 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 (*ComponentOptionVersionMinorVersion) GetDisableRollbackPreRelease

func (o *ComponentOptionVersionMinorVersion) GetDisableRollbackPreRelease() bool

GetDisableRollbackPreRelease returns the DisableRollbackPreRelease field value if set, zero value otherwise.

func (*ComponentOptionVersionMinorVersion) GetDisableRollbackPreReleaseOk

func (o *ComponentOptionVersionMinorVersion) GetDisableRollbackPreReleaseOk() (*bool, bool)

GetDisableRollbackPreReleaseOk returns a tuple with the DisableRollbackPreRelease field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ComponentOptionVersionMinorVersion) GetRollback

func (o *ComponentOptionVersionMinorVersion) GetRollback() bool

GetRollback returns the Rollback field value if set, zero value otherwise.

func (*ComponentOptionVersionMinorVersion) GetRollbackOk

func (o *ComponentOptionVersionMinorVersion) GetRollbackOk() (*bool, bool)

GetRollbackOk returns a tuple with the Rollback field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ComponentOptionVersionMinorVersion) HasDisableRollbackPreRelease

func (o *ComponentOptionVersionMinorVersion) HasDisableRollbackPreRelease() bool

HasDisableRollbackPreRelease returns a boolean if a field has been set.

func (*ComponentOptionVersionMinorVersion) HasRollback

func (o *ComponentOptionVersionMinorVersion) HasRollback() bool

HasRollback returns a boolean if a field has been set.

func (ComponentOptionVersionMinorVersion) MarshalJSON

func (o ComponentOptionVersionMinorVersion) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ComponentOptionVersionMinorVersion) SetDisableRollbackPreRelease

func (o *ComponentOptionVersionMinorVersion) SetDisableRollbackPreRelease(v bool)

SetDisableRollbackPreRelease gets a reference to the given bool and assigns it to the DisableRollbackPreRelease field.

func (*ComponentOptionVersionMinorVersion) SetRollback

func (o *ComponentOptionVersionMinorVersion) SetRollback(v bool)

SetRollback gets a reference to the given bool and assigns it to the Rollback field.

func (*ComponentOptionVersionMinorVersion) UnmarshalJSON

func (o *ComponentOptionVersionMinorVersion) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ComponentsItem

type ComponentsItem struct {
	// component name
	Name *string `json:"name,omitempty"`
	// component type, refer to componentDef and support NamePrefix
	Component *string `json:"component,omitempty"`
	// componentDefinition name
	ComponentDef *string `json:"componentDef,omitempty"`
	// number of components
	CompNum *int32 `json:"compNum,omitempty"`
	// enable monitor
	Monitor *bool `json:"monitor,omitempty"`
	// The number of replicas, for standalone mode, the replicas is 1, for raftGroup mode, the default replicas is 3.
	Replicas    *int32  `json:"replicas,omitempty"`
	ClassCode   *string `json:"classCode,omitempty"`
	ClassSeries *string `json:"classSeries,omitempty"`
	// CPU cores.
	Cpu *float64 `json:"cpu,omitempty"`
	// Memory, the unit is Gi.
	Memory *float64 `json:"memory,omitempty"`
	// Storage
	Storage *string `json:"storage,omitempty"`
	// StorageClass name
	StorageClass *string                     `json:"storageClass,omitempty"`
	Volumes      []ComponentsItemVolumesItem `json:"volumes,omitempty"`
	// Cluster main component codeShort
	CodeShort *string `json:"codeShort,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewComponentsItem

func NewComponentsItem() *ComponentsItem

NewComponentsItem instantiates a new ComponentsItem 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 NewComponentsItemWithDefaults

func NewComponentsItemWithDefaults() *ComponentsItem

NewComponentsItemWithDefaults instantiates a new ComponentsItem 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 (*ComponentsItem) GetClassCode

func (o *ComponentsItem) GetClassCode() string

GetClassCode returns the ClassCode field value if set, zero value otherwise.

func (*ComponentsItem) GetClassCodeOk

func (o *ComponentsItem) GetClassCodeOk() (*string, bool)

GetClassCodeOk returns a tuple with the ClassCode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ComponentsItem) GetClassSeries

func (o *ComponentsItem) GetClassSeries() string

GetClassSeries returns the ClassSeries field value if set, zero value otherwise.

func (*ComponentsItem) GetClassSeriesOk

func (o *ComponentsItem) GetClassSeriesOk() (*string, bool)

GetClassSeriesOk returns a tuple with the ClassSeries field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ComponentsItem) GetCodeShort

func (o *ComponentsItem) GetCodeShort() string

GetCodeShort returns the CodeShort field value if set, zero value otherwise.

func (*ComponentsItem) GetCodeShortOk

func (o *ComponentsItem) GetCodeShortOk() (*string, bool)

GetCodeShortOk returns a tuple with the CodeShort field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ComponentsItem) GetCompNum

func (o *ComponentsItem) GetCompNum() int32

GetCompNum returns the CompNum field value if set, zero value otherwise.

func (*ComponentsItem) GetCompNumOk

func (o *ComponentsItem) GetCompNumOk() (*int32, bool)

GetCompNumOk returns a tuple with the CompNum field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ComponentsItem) GetComponent

func (o *ComponentsItem) GetComponent() string

GetComponent returns the Component field value if set, zero value otherwise.

func (*ComponentsItem) GetComponentDef

func (o *ComponentsItem) GetComponentDef() string

GetComponentDef returns the ComponentDef field value if set, zero value otherwise.

func (*ComponentsItem) GetComponentDefOk

func (o *ComponentsItem) GetComponentDefOk() (*string, bool)

GetComponentDefOk returns a tuple with the ComponentDef field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ComponentsItem) GetComponentOk

func (o *ComponentsItem) GetComponentOk() (*string, bool)

GetComponentOk returns a tuple with the Component field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ComponentsItem) GetCpu

func (o *ComponentsItem) GetCpu() float64

GetCpu returns the Cpu field value if set, zero value otherwise.

func (*ComponentsItem) GetCpuOk

func (o *ComponentsItem) GetCpuOk() (*float64, bool)

GetCpuOk returns a tuple with the Cpu field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ComponentsItem) GetMemory

func (o *ComponentsItem) GetMemory() float64

GetMemory returns the Memory field value if set, zero value otherwise.

func (*ComponentsItem) GetMemoryOk

func (o *ComponentsItem) GetMemoryOk() (*float64, bool)

GetMemoryOk returns a tuple with the Memory field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ComponentsItem) GetMonitor

func (o *ComponentsItem) GetMonitor() bool

GetMonitor returns the Monitor field value if set, zero value otherwise.

func (*ComponentsItem) GetMonitorOk

func (o *ComponentsItem) GetMonitorOk() (*bool, bool)

GetMonitorOk returns a tuple with the Monitor field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ComponentsItem) GetName

func (o *ComponentsItem) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*ComponentsItem) GetNameOk

func (o *ComponentsItem) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ComponentsItem) GetReplicas

func (o *ComponentsItem) GetReplicas() int32

GetReplicas returns the Replicas field value if set, zero value otherwise.

func (*ComponentsItem) GetReplicasOk

func (o *ComponentsItem) GetReplicasOk() (*int32, bool)

GetReplicasOk returns a tuple with the Replicas field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ComponentsItem) GetStorage

func (o *ComponentsItem) GetStorage() string

GetStorage returns the Storage field value if set, zero value otherwise.

func (*ComponentsItem) GetStorageClass

func (o *ComponentsItem) GetStorageClass() string

GetStorageClass returns the StorageClass field value if set, zero value otherwise.

func (*ComponentsItem) GetStorageClassOk

func (o *ComponentsItem) GetStorageClassOk() (*string, bool)

GetStorageClassOk returns a tuple with the StorageClass field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ComponentsItem) GetStorageOk

func (o *ComponentsItem) GetStorageOk() (*string, bool)

GetStorageOk returns a tuple with the Storage field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ComponentsItem) GetVolumes

func (o *ComponentsItem) GetVolumes() []ComponentsItemVolumesItem

GetVolumes returns the Volumes field value if set, zero value otherwise.

func (*ComponentsItem) GetVolumesOk

func (o *ComponentsItem) GetVolumesOk() (*[]ComponentsItemVolumesItem, bool)

GetVolumesOk returns a tuple with the Volumes field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ComponentsItem) HasClassCode

func (o *ComponentsItem) HasClassCode() bool

HasClassCode returns a boolean if a field has been set.

func (*ComponentsItem) HasClassSeries

func (o *ComponentsItem) HasClassSeries() bool

HasClassSeries returns a boolean if a field has been set.

func (*ComponentsItem) HasCodeShort

func (o *ComponentsItem) HasCodeShort() bool

HasCodeShort returns a boolean if a field has been set.

func (*ComponentsItem) HasCompNum

func (o *ComponentsItem) HasCompNum() bool

HasCompNum returns a boolean if a field has been set.

func (*ComponentsItem) HasComponent

func (o *ComponentsItem) HasComponent() bool

HasComponent returns a boolean if a field has been set.

func (*ComponentsItem) HasComponentDef

func (o *ComponentsItem) HasComponentDef() bool

HasComponentDef returns a boolean if a field has been set.

func (*ComponentsItem) HasCpu

func (o *ComponentsItem) HasCpu() bool

HasCpu returns a boolean if a field has been set.

func (*ComponentsItem) HasMemory

func (o *ComponentsItem) HasMemory() bool

HasMemory returns a boolean if a field has been set.

func (*ComponentsItem) HasMonitor

func (o *ComponentsItem) HasMonitor() bool

HasMonitor returns a boolean if a field has been set.

func (*ComponentsItem) HasName

func (o *ComponentsItem) HasName() bool

HasName returns a boolean if a field has been set.

func (*ComponentsItem) HasReplicas

func (o *ComponentsItem) HasReplicas() bool

HasReplicas returns a boolean if a field has been set.

func (*ComponentsItem) HasStorage

func (o *ComponentsItem) HasStorage() bool

HasStorage returns a boolean if a field has been set.

func (*ComponentsItem) HasStorageClass

func (o *ComponentsItem) HasStorageClass() bool

HasStorageClass returns a boolean if a field has been set.

func (*ComponentsItem) HasVolumes

func (o *ComponentsItem) HasVolumes() bool

HasVolumes returns a boolean if a field has been set.

func (ComponentsItem) MarshalJSON

func (o ComponentsItem) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ComponentsItem) SetClassCode

func (o *ComponentsItem) SetClassCode(v string)

SetClassCode gets a reference to the given string and assigns it to the ClassCode field.

func (*ComponentsItem) SetClassSeries

func (o *ComponentsItem) SetClassSeries(v string)

SetClassSeries gets a reference to the given string and assigns it to the ClassSeries field.

func (*ComponentsItem) SetCodeShort

func (o *ComponentsItem) SetCodeShort(v string)

SetCodeShort gets a reference to the given string and assigns it to the CodeShort field.

func (*ComponentsItem) SetCompNum

func (o *ComponentsItem) SetCompNum(v int32)

SetCompNum gets a reference to the given int32 and assigns it to the CompNum field.

func (*ComponentsItem) SetComponent

func (o *ComponentsItem) SetComponent(v string)

SetComponent gets a reference to the given string and assigns it to the Component field.

func (*ComponentsItem) SetComponentDef

func (o *ComponentsItem) SetComponentDef(v string)

SetComponentDef gets a reference to the given string and assigns it to the ComponentDef field.

func (*ComponentsItem) SetCpu

func (o *ComponentsItem) SetCpu(v float64)

SetCpu gets a reference to the given float64 and assigns it to the Cpu field.

func (*ComponentsItem) SetMemory

func (o *ComponentsItem) SetMemory(v float64)

SetMemory gets a reference to the given float64 and assigns it to the Memory field.

func (*ComponentsItem) SetMonitor

func (o *ComponentsItem) SetMonitor(v bool)

SetMonitor gets a reference to the given bool and assigns it to the Monitor field.

func (*ComponentsItem) SetName

func (o *ComponentsItem) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*ComponentsItem) SetReplicas

func (o *ComponentsItem) SetReplicas(v int32)

SetReplicas gets a reference to the given int32 and assigns it to the Replicas field.

func (*ComponentsItem) SetStorage

func (o *ComponentsItem) SetStorage(v string)

SetStorage gets a reference to the given string and assigns it to the Storage field.

func (*ComponentsItem) SetStorageClass

func (o *ComponentsItem) SetStorageClass(v string)

SetStorageClass gets a reference to the given string and assigns it to the StorageClass field.

func (*ComponentsItem) SetVolumes

func (o *ComponentsItem) SetVolumes(v []ComponentsItemVolumesItem)

SetVolumes gets a reference to the given []ComponentsItemVolumesItem and assigns it to the Volumes field.

func (*ComponentsItem) UnmarshalJSON

func (o *ComponentsItem) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ComponentsItemVolumesItem

type ComponentsItemVolumesItem struct {
	// volume name
	Name *string `json:"name,omitempty"`
	// Storage size, the unit is Gi.
	Storage *float64 `json:"storage,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewComponentsItemVolumesItem

func NewComponentsItemVolumesItem() *ComponentsItemVolumesItem

NewComponentsItemVolumesItem instantiates a new ComponentsItemVolumesItem 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 NewComponentsItemVolumesItemWithDefaults

func NewComponentsItemVolumesItemWithDefaults() *ComponentsItemVolumesItem

NewComponentsItemVolumesItemWithDefaults instantiates a new ComponentsItemVolumesItem 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 (*ComponentsItemVolumesItem) GetName

func (o *ComponentsItemVolumesItem) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*ComponentsItemVolumesItem) GetNameOk

func (o *ComponentsItemVolumesItem) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ComponentsItemVolumesItem) GetStorage

func (o *ComponentsItemVolumesItem) GetStorage() float64

GetStorage returns the Storage field value if set, zero value otherwise.

func (*ComponentsItemVolumesItem) GetStorageOk

func (o *ComponentsItemVolumesItem) GetStorageOk() (*float64, bool)

GetStorageOk returns a tuple with the Storage field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ComponentsItemVolumesItem) HasName

func (o *ComponentsItemVolumesItem) HasName() bool

HasName returns a boolean if a field has been set.

func (*ComponentsItemVolumesItem) HasStorage

func (o *ComponentsItemVolumesItem) HasStorage() bool

HasStorage returns a boolean if a field has been set.

func (ComponentsItemVolumesItem) MarshalJSON

func (o ComponentsItemVolumesItem) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ComponentsItemVolumesItem) SetName

func (o *ComponentsItemVolumesItem) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*ComponentsItemVolumesItem) SetStorage

func (o *ComponentsItemVolumesItem) SetStorage(v float64)

SetStorage gets a reference to the given float64 and assigns it to the Storage field.

func (*ComponentsItemVolumesItem) UnmarshalJSON

func (o *ComponentsItemVolumesItem) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type Configuration

type Configuration struct {
	// The name of the configuration file
	FileName string `json:"fileName"`
	// The content of the configuration file
	Content string `json:"content"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

Configuration Cluster parameters configuration, include the file name and content of the parameters

func NewConfiguration

func NewConfiguration(fileName string, content string) *Configuration

NewConfiguration instantiates a new Configuration 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 NewConfigurationWithDefaults

func NewConfigurationWithDefaults() *Configuration

NewConfigurationWithDefaults instantiates a new Configuration 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 (*Configuration) GetContent

func (o *Configuration) GetContent() string

GetContent returns the Content field value.

func (*Configuration) GetContentOk

func (o *Configuration) GetContentOk() (*string, bool)

GetContentOk returns a tuple with the Content field value and a boolean to check if the value has been set.

func (*Configuration) GetFileName

func (o *Configuration) GetFileName() string

GetFileName returns the FileName field value.

func (*Configuration) GetFileNameOk

func (o *Configuration) GetFileNameOk() (*string, bool)

GetFileNameOk returns a tuple with the FileName field value and a boolean to check if the value has been set.

func (Configuration) MarshalJSON

func (o Configuration) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*Configuration) SetContent

func (o *Configuration) SetContent(v string)

SetContent sets field value.

func (*Configuration) SetFileName

func (o *Configuration) SetFileName(v string)

SetFileName sets field value.

func (*Configuration) UnmarshalJSON

func (o *Configuration) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ConfigurationList

type ConfigurationList struct {
	Items []Configuration `json:"items,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ConfigurationList A list of cluster parameters configuration

func NewConfigurationList

func NewConfigurationList() *ConfigurationList

NewConfigurationList instantiates a new ConfigurationList 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 NewConfigurationListWithDefaults

func NewConfigurationListWithDefaults() *ConfigurationList

NewConfigurationListWithDefaults instantiates a new ConfigurationList 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 (*ConfigurationList) GetItems

func (o *ConfigurationList) GetItems() []Configuration

GetItems returns the Items field value if set, zero value otherwise.

func (*ConfigurationList) GetItemsOk

func (o *ConfigurationList) GetItemsOk() (*[]Configuration, bool)

GetItemsOk returns a tuple with the Items field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ConfigurationList) HasItems

func (o *ConfigurationList) HasItems() bool

HasItems returns a boolean if a field has been set.

func (ConfigurationList) MarshalJSON

func (o ConfigurationList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ConfigurationList) SetItems

func (o *ConfigurationList) SetItems(v []Configuration)

SetItems gets a reference to the given []Configuration and assigns it to the Items field.

func (*ConfigurationList) UnmarshalJSON

func (o *ConfigurationList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ConfigurationWithRegex

type ConfigurationWithRegex struct {
	// The name of the configuration file
	FileName string `json:"fileName"`
	// The content of the configuration file
	Content string `json:"content"`
	// the template regex
	Regex string `json:"regex"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ConfigurationWithRegex Cluster parameters configuration, include the file name and content of the parameters

func NewConfigurationWithRegex

func NewConfigurationWithRegex(fileName string, content string, regex string) *ConfigurationWithRegex

NewConfigurationWithRegex instantiates a new ConfigurationWithRegex 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 NewConfigurationWithRegexWithDefaults

func NewConfigurationWithRegexWithDefaults() *ConfigurationWithRegex

NewConfigurationWithRegexWithDefaults instantiates a new ConfigurationWithRegex 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 (*ConfigurationWithRegex) GetContent

func (o *ConfigurationWithRegex) GetContent() string

GetContent returns the Content field value.

func (*ConfigurationWithRegex) GetContentOk

func (o *ConfigurationWithRegex) GetContentOk() (*string, bool)

GetContentOk returns a tuple with the Content field value and a boolean to check if the value has been set.

func (*ConfigurationWithRegex) GetFileName

func (o *ConfigurationWithRegex) GetFileName() string

GetFileName returns the FileName field value.

func (*ConfigurationWithRegex) GetFileNameOk

func (o *ConfigurationWithRegex) GetFileNameOk() (*string, bool)

GetFileNameOk returns a tuple with the FileName field value and a boolean to check if the value has been set.

func (*ConfigurationWithRegex) GetRegex

func (o *ConfigurationWithRegex) GetRegex() string

GetRegex returns the Regex field value.

func (*ConfigurationWithRegex) GetRegexOk

func (o *ConfigurationWithRegex) GetRegexOk() (*string, bool)

GetRegexOk returns a tuple with the Regex field value and a boolean to check if the value has been set.

func (ConfigurationWithRegex) MarshalJSON

func (o ConfigurationWithRegex) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ConfigurationWithRegex) SetContent

func (o *ConfigurationWithRegex) SetContent(v string)

SetContent sets field value.

func (*ConfigurationWithRegex) SetFileName

func (o *ConfigurationWithRegex) SetFileName(v string)

SetFileName sets field value.

func (*ConfigurationWithRegex) SetRegex

func (o *ConfigurationWithRegex) SetRegex(v string)

SetRegex sets field value.

func (*ConfigurationWithRegex) UnmarshalJSON

func (o *ConfigurationWithRegex) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type CreateAlertInhibitOptionalParameters

type CreateAlertInhibitOptionalParameters struct {
	Body *AlertInhibit
}

CreateAlertInhibitOptionalParameters holds optional parameters for CreateAlertInhibit.

func NewCreateAlertInhibitOptionalParameters

func NewCreateAlertInhibitOptionalParameters() *CreateAlertInhibitOptionalParameters

NewCreateAlertInhibitOptionalParameters creates an empty struct for parameters.

func (*CreateAlertInhibitOptionalParameters) WithBody

WithBody sets the corresponding parameter name and returns the struct.

type CreateClassOptionalParameters

type CreateClassOptionalParameters struct {
	Body *Class
}

CreateClassOptionalParameters holds optional parameters for CreateClass.

func NewCreateClassOptionalParameters

func NewCreateClassOptionalParameters() *CreateClassOptionalParameters

NewCreateClassOptionalParameters creates an empty struct for parameters.

func (*CreateClassOptionalParameters) WithBody

WithBody sets the corresponding parameter name and returns the struct.

type CreateInvitationOptionalParameters

type CreateInvitationOptionalParameters struct {
	OrgName *string
	UserId  *string
}

CreateInvitationOptionalParameters holds optional parameters for CreateInvitation.

func NewCreateInvitationOptionalParameters

func NewCreateInvitationOptionalParameters() *CreateInvitationOptionalParameters

NewCreateInvitationOptionalParameters creates an empty struct for parameters.

func (*CreateInvitationOptionalParameters) WithOrgName

WithOrgName sets the corresponding parameter name and returns the struct.

func (*CreateInvitationOptionalParameters) WithUserId

WithUserId sets the corresponding parameter name and returns the struct.

type DashboardOption

type DashboardOption struct {
	Component      string                              `json:"component"`
	DashboardUid   string                              `json:"dashboardUid"`
	Variables      map[string]string                   `json:"variables"`
	InstancePanels []DashboardOptionInstancePanelsItem `json:"instancePanels,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewDashboardOption

func NewDashboardOption(component string, dashboardUid string, variables map[string]string) *DashboardOption

NewDashboardOption instantiates a new DashboardOption 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 NewDashboardOptionWithDefaults

func NewDashboardOptionWithDefaults() *DashboardOption

NewDashboardOptionWithDefaults instantiates a new DashboardOption 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 (*DashboardOption) GetComponent

func (o *DashboardOption) GetComponent() string

GetComponent returns the Component field value.

func (*DashboardOption) GetComponentOk

func (o *DashboardOption) GetComponentOk() (*string, bool)

GetComponentOk returns a tuple with the Component field value and a boolean to check if the value has been set.

func (*DashboardOption) GetDashboardUid

func (o *DashboardOption) GetDashboardUid() string

GetDashboardUid returns the DashboardUid field value.

func (*DashboardOption) GetDashboardUidOk

func (o *DashboardOption) GetDashboardUidOk() (*string, bool)

GetDashboardUidOk returns a tuple with the DashboardUid field value and a boolean to check if the value has been set.

func (*DashboardOption) GetInstancePanels

func (o *DashboardOption) GetInstancePanels() []DashboardOptionInstancePanelsItem

GetInstancePanels returns the InstancePanels field value if set, zero value otherwise.

func (*DashboardOption) GetInstancePanelsOk

func (o *DashboardOption) GetInstancePanelsOk() (*[]DashboardOptionInstancePanelsItem, bool)

GetInstancePanelsOk returns a tuple with the InstancePanels field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DashboardOption) GetVariables

func (o *DashboardOption) GetVariables() map[string]string

GetVariables returns the Variables field value.

func (*DashboardOption) GetVariablesOk

func (o *DashboardOption) GetVariablesOk() (*map[string]string, bool)

GetVariablesOk returns a tuple with the Variables field value and a boolean to check if the value has been set.

func (*DashboardOption) HasInstancePanels added in v0.28.38

func (o *DashboardOption) HasInstancePanels() bool

HasInstancePanels returns a boolean if a field has been set.

func (DashboardOption) MarshalJSON

func (o DashboardOption) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*DashboardOption) SetComponent

func (o *DashboardOption) SetComponent(v string)

SetComponent sets field value.

func (*DashboardOption) SetDashboardUid

func (o *DashboardOption) SetDashboardUid(v string)

SetDashboardUid sets field value.

func (*DashboardOption) SetInstancePanels

func (o *DashboardOption) SetInstancePanels(v []DashboardOptionInstancePanelsItem)

SetInstancePanels gets a reference to the given []DashboardOptionInstancePanelsItem and assigns it to the InstancePanels field.

func (*DashboardOption) SetVariables

func (o *DashboardOption) SetVariables(v map[string]string)

SetVariables sets field value.

func (*DashboardOption) UnmarshalJSON

func (o *DashboardOption) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type DashboardOptionInstancePanelsItem

type DashboardOptionInstancePanelsItem struct {
	Role   *string                                       `json:"role,omitempty"`
	Panels []DashboardOptionInstancePanelsItemPanelsItem `json:"panels,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewDashboardOptionInstancePanelsItem

func NewDashboardOptionInstancePanelsItem() *DashboardOptionInstancePanelsItem

NewDashboardOptionInstancePanelsItem instantiates a new DashboardOptionInstancePanelsItem 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 NewDashboardOptionInstancePanelsItemWithDefaults

func NewDashboardOptionInstancePanelsItemWithDefaults() *DashboardOptionInstancePanelsItem

NewDashboardOptionInstancePanelsItemWithDefaults instantiates a new DashboardOptionInstancePanelsItem 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 (*DashboardOptionInstancePanelsItem) GetPanels

GetPanels returns the Panels field value if set, zero value otherwise.

func (*DashboardOptionInstancePanelsItem) GetPanelsOk

GetPanelsOk returns a tuple with the Panels field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DashboardOptionInstancePanelsItem) GetRole

GetRole returns the Role field value if set, zero value otherwise.

func (*DashboardOptionInstancePanelsItem) GetRoleOk

func (o *DashboardOptionInstancePanelsItem) GetRoleOk() (*string, bool)

GetRoleOk returns a tuple with the Role field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DashboardOptionInstancePanelsItem) HasPanels

func (o *DashboardOptionInstancePanelsItem) HasPanels() bool

HasPanels returns a boolean if a field has been set.

func (*DashboardOptionInstancePanelsItem) HasRole

HasRole returns a boolean if a field has been set.

func (DashboardOptionInstancePanelsItem) MarshalJSON

func (o DashboardOptionInstancePanelsItem) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*DashboardOptionInstancePanelsItem) SetPanels

SetPanels gets a reference to the given []DashboardOptionInstancePanelsItemPanelsItem and assigns it to the Panels field.

func (*DashboardOptionInstancePanelsItem) SetRole

SetRole gets a reference to the given string and assigns it to the Role field.

func (*DashboardOptionInstancePanelsItem) UnmarshalJSON

func (o *DashboardOptionInstancePanelsItem) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type DashboardOptionInstancePanelsItemPanelsItem

type DashboardOptionInstancePanelsItemPanelsItem struct {
	Description *string `json:"description,omitempty"`
	Id          *string `json:"id,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewDashboardOptionInstancePanelsItemPanelsItem

func NewDashboardOptionInstancePanelsItemPanelsItem() *DashboardOptionInstancePanelsItemPanelsItem

NewDashboardOptionInstancePanelsItemPanelsItem instantiates a new DashboardOptionInstancePanelsItemPanelsItem 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 NewDashboardOptionInstancePanelsItemPanelsItemWithDefaults

func NewDashboardOptionInstancePanelsItemPanelsItemWithDefaults() *DashboardOptionInstancePanelsItemPanelsItem

NewDashboardOptionInstancePanelsItemPanelsItemWithDefaults instantiates a new DashboardOptionInstancePanelsItemPanelsItem 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 (*DashboardOptionInstancePanelsItemPanelsItem) GetDescription

GetDescription returns the Description field value if set, zero value otherwise.

func (*DashboardOptionInstancePanelsItemPanelsItem) GetDescriptionOk

func (o *DashboardOptionInstancePanelsItemPanelsItem) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DashboardOptionInstancePanelsItemPanelsItem) GetId

GetId returns the Id field value if set, zero value otherwise.

func (*DashboardOptionInstancePanelsItemPanelsItem) GetIdOk

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DashboardOptionInstancePanelsItemPanelsItem) HasDescription

HasDescription returns a boolean if a field has been set.

func (*DashboardOptionInstancePanelsItemPanelsItem) HasId

HasId returns a boolean if a field has been set.

func (DashboardOptionInstancePanelsItemPanelsItem) MarshalJSON

MarshalJSON serializes the struct using spec logic.

func (*DashboardOptionInstancePanelsItemPanelsItem) SetDescription

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*DashboardOptionInstancePanelsItemPanelsItem) SetId

SetId gets a reference to the given string and assigns it to the Id field.

func (*DashboardOptionInstancePanelsItemPanelsItem) UnmarshalJSON

func (o *DashboardOptionInstancePanelsItemPanelsItem) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type DataDisk

type DataDisk struct {
	DataDiskCapacity     *string `json:"data_disk_capacity,omitempty"`
	DataDiskAllocated    *string `json:"data_disk_allocated,omitempty"`
	DataDiskInUse        *string `json:"data_disk_in_use,omitempty"`
	DataDiskHealthStatus *string `json:"data_disk_health_status,omitempty"`
	DataDiskAbnormalTime *string `json:"data_disk_abnormal_time,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewDataDisk

func NewDataDisk() *DataDisk

NewDataDisk instantiates a new DataDisk 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 NewDataDiskWithDefaults

func NewDataDiskWithDefaults() *DataDisk

NewDataDiskWithDefaults instantiates a new DataDisk 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 (*DataDisk) GetDataDiskAbnormalTime

func (o *DataDisk) GetDataDiskAbnormalTime() string

GetDataDiskAbnormalTime returns the DataDiskAbnormalTime field value if set, zero value otherwise.

func (*DataDisk) GetDataDiskAbnormalTimeOk

func (o *DataDisk) GetDataDiskAbnormalTimeOk() (*string, bool)

GetDataDiskAbnormalTimeOk returns a tuple with the DataDiskAbnormalTime field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DataDisk) GetDataDiskAllocated

func (o *DataDisk) GetDataDiskAllocated() string

GetDataDiskAllocated returns the DataDiskAllocated field value if set, zero value otherwise.

func (*DataDisk) GetDataDiskAllocatedOk

func (o *DataDisk) GetDataDiskAllocatedOk() (*string, bool)

GetDataDiskAllocatedOk returns a tuple with the DataDiskAllocated field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DataDisk) GetDataDiskCapacity

func (o *DataDisk) GetDataDiskCapacity() string

GetDataDiskCapacity returns the DataDiskCapacity field value if set, zero value otherwise.

func (*DataDisk) GetDataDiskCapacityOk

func (o *DataDisk) GetDataDiskCapacityOk() (*string, bool)

GetDataDiskCapacityOk returns a tuple with the DataDiskCapacity field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DataDisk) GetDataDiskHealthStatus

func (o *DataDisk) GetDataDiskHealthStatus() string

GetDataDiskHealthStatus returns the DataDiskHealthStatus field value if set, zero value otherwise.

func (*DataDisk) GetDataDiskHealthStatusOk

func (o *DataDisk) GetDataDiskHealthStatusOk() (*string, bool)

GetDataDiskHealthStatusOk returns a tuple with the DataDiskHealthStatus field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DataDisk) GetDataDiskInUse

func (o *DataDisk) GetDataDiskInUse() string

GetDataDiskInUse returns the DataDiskInUse field value if set, zero value otherwise.

func (*DataDisk) GetDataDiskInUseOk

func (o *DataDisk) GetDataDiskInUseOk() (*string, bool)

GetDataDiskInUseOk returns a tuple with the DataDiskInUse field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DataDisk) HasDataDiskAbnormalTime

func (o *DataDisk) HasDataDiskAbnormalTime() bool

HasDataDiskAbnormalTime returns a boolean if a field has been set.

func (*DataDisk) HasDataDiskAllocated

func (o *DataDisk) HasDataDiskAllocated() bool

HasDataDiskAllocated returns a boolean if a field has been set.

func (*DataDisk) HasDataDiskCapacity

func (o *DataDisk) HasDataDiskCapacity() bool

HasDataDiskCapacity returns a boolean if a field has been set.

func (*DataDisk) HasDataDiskHealthStatus

func (o *DataDisk) HasDataDiskHealthStatus() bool

HasDataDiskHealthStatus returns a boolean if a field has been set.

func (*DataDisk) HasDataDiskInUse

func (o *DataDisk) HasDataDiskInUse() bool

HasDataDiskInUse returns a boolean if a field has been set.

func (DataDisk) MarshalJSON

func (o DataDisk) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*DataDisk) SetDataDiskAbnormalTime

func (o *DataDisk) SetDataDiskAbnormalTime(v string)

SetDataDiskAbnormalTime gets a reference to the given string and assigns it to the DataDiskAbnormalTime field.

func (*DataDisk) SetDataDiskAllocated

func (o *DataDisk) SetDataDiskAllocated(v string)

SetDataDiskAllocated gets a reference to the given string and assigns it to the DataDiskAllocated field.

func (*DataDisk) SetDataDiskCapacity

func (o *DataDisk) SetDataDiskCapacity(v string)

SetDataDiskCapacity gets a reference to the given string and assigns it to the DataDiskCapacity field.

func (*DataDisk) SetDataDiskHealthStatus

func (o *DataDisk) SetDataDiskHealthStatus(v string)

SetDataDiskHealthStatus gets a reference to the given string and assigns it to the DataDiskHealthStatus field.

func (*DataDisk) SetDataDiskInUse

func (o *DataDisk) SetDataDiskInUse(v string)

SetDataDiskInUse gets a reference to the given string and assigns it to the DataDiskInUse field.

func (*DataDisk) UnmarshalJSON

func (o *DataDisk) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type DataExportOptionalParameters

type DataExportOptionalParameters struct {
	Body *interface{}
}

DataExportOptionalParameters holds optional parameters for DataExport.

func NewDataExportOptionalParameters

func NewDataExportOptionalParameters() *DataExportOptionalParameters

NewDataExportOptionalParameters creates an empty struct for parameters.

func (*DataExportOptionalParameters) WithBody

func (r *DataExportOptionalParameters) WithBody(body interface{}) *DataExportOptionalParameters

WithBody sets the corresponding parameter name and returns the struct.

type Database

type Database struct {
	// component type
	Component *string `json:"component,omitempty"`
	// Specify the name of database, which must be unique.
	Name string `json:"name"`
	// Specify account name who can manage this database
	AccountName *string `json:"accountName,omitempty"`
	// Specify charsetName of database.
	Charset *string `json:"charset,omitempty"`
	// Description of the database.
	Description *string `json:"description,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

Database Cluster database information

func NewDatabase

func NewDatabase(name string) *Database

NewDatabase instantiates a new Database 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 NewDatabaseWithDefaults

func NewDatabaseWithDefaults() *Database

NewDatabaseWithDefaults instantiates a new Database 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 (*Database) GetAccountName

func (o *Database) GetAccountName() string

GetAccountName returns the AccountName field value if set, zero value otherwise.

func (*Database) GetAccountNameOk

func (o *Database) GetAccountNameOk() (*string, bool)

GetAccountNameOk returns a tuple with the AccountName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Database) GetCharset

func (o *Database) GetCharset() string

GetCharset returns the Charset field value if set, zero value otherwise.

func (*Database) GetCharsetOk

func (o *Database) GetCharsetOk() (*string, bool)

GetCharsetOk returns a tuple with the Charset field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Database) GetComponent

func (o *Database) GetComponent() string

GetComponent returns the Component field value if set, zero value otherwise.

func (*Database) GetComponentOk

func (o *Database) GetComponentOk() (*string, bool)

GetComponentOk returns a tuple with the Component field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Database) GetDescription

func (o *Database) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*Database) GetDescriptionOk

func (o *Database) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Database) GetName

func (o *Database) GetName() string

GetName returns the Name field value.

func (*Database) GetNameOk

func (o *Database) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*Database) HasAccountName

func (o *Database) HasAccountName() bool

HasAccountName returns a boolean if a field has been set.

func (*Database) HasCharset

func (o *Database) HasCharset() bool

HasCharset returns a boolean if a field has been set.

func (*Database) HasComponent

func (o *Database) HasComponent() bool

HasComponent returns a boolean if a field has been set.

func (*Database) HasDescription

func (o *Database) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (Database) MarshalJSON

func (o Database) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*Database) SetAccountName

func (o *Database) SetAccountName(v string)

SetAccountName gets a reference to the given string and assigns it to the AccountName field.

func (*Database) SetCharset

func (o *Database) SetCharset(v string)

SetCharset gets a reference to the given string and assigns it to the Charset field.

func (*Database) SetComponent

func (o *Database) SetComponent(v string)

SetComponent gets a reference to the given string and assigns it to the Component field.

func (*Database) SetDescription

func (o *Database) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*Database) SetName

func (o *Database) SetName(v string)

SetName sets field value.

func (*Database) UnmarshalJSON

func (o *Database) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type DatabaseApi

type DatabaseApi common.Service

DatabaseApi service type

func NewDatabaseApi

func NewDatabaseApi(client *common.APIClient) *DatabaseApi

NewDatabaseApi Returns NewDatabaseApi.

func (*DatabaseApi) CreateDatabase

func (a *DatabaseApi) CreateDatabase(ctx _context.Context, orgName string, clusterName string, body Database) (*_nethttp.Response, error)

CreateDatabase Create cluster database. create a database in cluster

func (*DatabaseApi) DeleteDatabase

func (a *DatabaseApi) DeleteDatabase(ctx _context.Context, orgName string, clusterName string, databaseName string) (*_nethttp.Response, error)

DeleteDatabase Delete cluster database. delete a database in cluster

func (*DatabaseApi) ListDatabases

func (a *DatabaseApi) ListDatabases(ctx _context.Context, orgName string, clusterName string) (DatabaseList, *_nethttp.Response, error)

ListDatabases List cluster databases. list databases in cluster

type DatabaseItem

type DatabaseItem struct {
	// Specify the name of database, which must be unique.
	Name string `json:"name"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

DatabaseItem Cluster database information

func NewDatabaseItem

func NewDatabaseItem(name string) *DatabaseItem

NewDatabaseItem instantiates a new DatabaseItem 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 NewDatabaseItemWithDefaults

func NewDatabaseItemWithDefaults() *DatabaseItem

NewDatabaseItemWithDefaults instantiates a new DatabaseItem 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 (*DatabaseItem) GetName

func (o *DatabaseItem) GetName() string

GetName returns the Name field value.

func (*DatabaseItem) GetNameOk

func (o *DatabaseItem) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (DatabaseItem) MarshalJSON

func (o DatabaseItem) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*DatabaseItem) SetName

func (o *DatabaseItem) SetName(v string)

SetName sets field value.

func (*DatabaseItem) UnmarshalJSON

func (o *DatabaseItem) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type DatabaseList

type DatabaseList struct {
	// Items is the list of Databases objects in the list
	Items []DatabaseItem `json:"items"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

DatabaseList DatabaesList is a list of Databaes

func NewDatabaseList

func NewDatabaseList(items []DatabaseItem) *DatabaseList

NewDatabaseList instantiates a new DatabaseList 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 NewDatabaseListWithDefaults

func NewDatabaseListWithDefaults() *DatabaseList

NewDatabaseListWithDefaults instantiates a new DatabaseList 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 (*DatabaseList) GetItems

func (o *DatabaseList) GetItems() []DatabaseItem

GetItems returns the Items field value.

func (*DatabaseList) GetItemsOk

func (o *DatabaseList) GetItemsOk() (*[]DatabaseItem, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (DatabaseList) MarshalJSON

func (o DatabaseList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*DatabaseList) SetItems

func (o *DatabaseList) SetItems(v []DatabaseItem)

SetItems sets field value.

func (*DatabaseList) UnmarshalJSON

func (o *DatabaseList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type DatabaseOption

type DatabaseOption struct {
	Enabled bool `json:"enabled"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewDatabaseOption

func NewDatabaseOption(enabled bool) *DatabaseOption

NewDatabaseOption instantiates a new DatabaseOption 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 NewDatabaseOptionWithDefaults

func NewDatabaseOptionWithDefaults() *DatabaseOption

NewDatabaseOptionWithDefaults instantiates a new DatabaseOption 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 (*DatabaseOption) GetEnabled

func (o *DatabaseOption) GetEnabled() bool

GetEnabled returns the Enabled field value.

func (*DatabaseOption) GetEnabledOk

func (o *DatabaseOption) GetEnabledOk() (*bool, bool)

GetEnabledOk returns a tuple with the Enabled field value and a boolean to check if the value has been set.

func (DatabaseOption) MarshalJSON

func (o DatabaseOption) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*DatabaseOption) SetEnabled

func (o *DatabaseOption) SetEnabled(v bool)

SetEnabled sets field value.

func (*DatabaseOption) UnmarshalJSON

func (o *DatabaseOption) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type Datasource

type Datasource struct {
	// the id of datasource
	Id *string `json:"id,omitempty"`
	// the name of datasource
	Name *string `json:"name,omitempty"`
	// the database type
	Type    string                 `json:"type"`
	Options map[string]interface{} `json:"options,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewDatasource

func NewDatasource(typeVar string) *Datasource

NewDatasource instantiates a new Datasource 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 NewDatasourceWithDefaults

func NewDatasourceWithDefaults() *Datasource

NewDatasourceWithDefaults instantiates a new Datasource 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 (*Datasource) GetId

func (o *Datasource) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*Datasource) GetIdOk

func (o *Datasource) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Datasource) GetName

func (o *Datasource) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*Datasource) GetNameOk

func (o *Datasource) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Datasource) GetOptions

func (o *Datasource) GetOptions() map[string]interface{}

GetOptions returns the Options field value if set, zero value otherwise.

func (*Datasource) GetOptionsOk

func (o *Datasource) GetOptionsOk() (*map[string]interface{}, bool)

GetOptionsOk returns a tuple with the Options field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Datasource) GetType

func (o *Datasource) GetType() string

GetType returns the Type field value.

func (*Datasource) GetTypeOk

func (o *Datasource) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (*Datasource) HasId

func (o *Datasource) HasId() bool

HasId returns a boolean if a field has been set.

func (*Datasource) HasName

func (o *Datasource) HasName() bool

HasName returns a boolean if a field has been set.

func (*Datasource) HasOptions

func (o *Datasource) HasOptions() bool

HasOptions returns a boolean if a field has been set.

func (Datasource) MarshalJSON

func (o Datasource) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*Datasource) SetId

func (o *Datasource) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*Datasource) SetName

func (o *Datasource) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*Datasource) SetOptions

func (o *Datasource) SetOptions(v map[string]interface{})

SetOptions gets a reference to the given map[string]interface{} and assigns it to the Options field.

func (*Datasource) SetType

func (o *Datasource) SetType(v string)

SetType sets field value.

func (*Datasource) UnmarshalJSON

func (o *Datasource) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type DeleteClusterOptionalParameters

type DeleteClusterOptionalParameters struct {
	Force *bool
}

DeleteClusterOptionalParameters holds optional parameters for DeleteCluster.

func NewDeleteClusterOptionalParameters

func NewDeleteClusterOptionalParameters() *DeleteClusterOptionalParameters

NewDeleteClusterOptionalParameters creates an empty struct for parameters.

func (*DeleteClusterOptionalParameters) WithForce

WithForce sets the corresponding parameter name and returns the struct.

type DescribeClusterHaHistoryOptionalParameters

type DescribeClusterHaHistoryOptionalParameters struct {
	ComponentName *string
}

DescribeClusterHaHistoryOptionalParameters holds optional parameters for DescribeClusterHaHistory.

func NewDescribeClusterHaHistoryOptionalParameters

func NewDescribeClusterHaHistoryOptionalParameters() *DescribeClusterHaHistoryOptionalParameters

NewDescribeClusterHaHistoryOptionalParameters creates an empty struct for parameters.

func (*DescribeClusterHaHistoryOptionalParameters) WithComponentName

WithComponentName sets the corresponding parameter name and returns the struct.

type DmsApi

type DmsApi common.Service

DmsApi service type

func NewDmsApi

func NewDmsApi(client *common.APIClient) *DmsApi

NewDmsApi Returns NewDmsApi.

func (*DmsApi) AlterParameter

func (a *DmsApi) AlterParameter(ctx _context.Context, orgName string, clusterName string, tenantId string, body interface{}) (string, *_nethttp.Response, error)

AlterParameter alter cluster parameter.

func (*DmsApi) AlterVolumes

func (a *DmsApi) AlterVolumes(ctx _context.Context, orgName string, clusterName string, volumeName string, body interface{}) (string, *_nethttp.Response, error)

AlterVolumes Alter the Storage Volume.

func (*DmsApi) CloseSessions

func (a *DmsApi) CloseSessions(ctx _context.Context, orgName string, clusterName string, session string, o ...CloseSessionsOptionalParameters) (string, *_nethttp.Response, error)

CloseSessions close the session for the cluster.

func (*DmsApi) CreateDataSourceV2

func (a *DmsApi) CreateDataSourceV2(ctx _context.Context, orgName string, clusterName string, body Datasource) (bool, *_nethttp.Response, error)

CreateDataSourceV2 create the datasource.

func (*DmsApi) CreateVolumes

func (a *DmsApi) CreateVolumes(ctx _context.Context, orgName string, clusterName string, body interface{}) (string, *_nethttp.Response, error)

CreateVolumes Create the Storage Volume.

func (*DmsApi) DataExport

func (a *DmsApi) DataExport(ctx _context.Context, orgName string, clusterName string, id string, o ...DataExportOptionalParameters) (*_nethttp.Response, error)

DataExport Data Export.

func (*DmsApi) DataImport

func (a *DmsApi) DataImport(ctx _context.Context, orgName string, clusterName string, id string, file _io.Reader) (interface{}, *_nethttp.Response, error)

DataImport Data Import.

func (*DmsApi) DeleteDataSourceV2

func (a *DmsApi) DeleteDataSourceV2(ctx _context.Context, orgName string, clusterName string, id string) (*_nethttp.Response, error)

DeleteDataSourceV2 delete the datasource.

func (*DmsApi) DropVolumes

func (a *DmsApi) DropVolumes(ctx _context.Context, orgName string, clusterName string, volumeName string) (string, *_nethttp.Response, error)

DropVolumes Drop the Storage Volume.

func (*DmsApi) GenerateDDL

func (a *DmsApi) GenerateDDL(ctx _context.Context, orgName string, clusterName string, id string, o ...GenerateDDLOptionalParameters) (string, *_nethttp.Response, error)

GenerateDDL support ddl and dml operations.

func (*DmsApi) GetDataSourceV2

func (a *DmsApi) GetDataSourceV2(ctx _context.Context, orgName string, clusterName string, id string) (Datasource, *_nethttp.Response, error)

GetDataSourceV2 get the datasource.

func (*DmsApi) GetObjectInfo

func (a *DmsApi) GetObjectInfo(ctx _context.Context, orgName string, clusterName string, id string, schema string, typeVar string, objectName string) (ObjectResponse, *_nethttp.Response, error)

GetObjectInfo get the detail object info.

func (*DmsApi) GetSchemaList

func (a *DmsApi) GetSchemaList(ctx _context.Context, orgName string, clusterName string, id string) ([]string, *_nethttp.Response, error)

GetSchemaList list all databases or schema of the cluster.

func (*DmsApi) GetTaskList

func (a *DmsApi) GetTaskList(ctx _context.Context, orgName string, clusterName string, id string) (DmsTaskList, *_nethttp.Response, error)

GetTaskList Get the task list.

func (*DmsApi) GetTaskProgress

func (a *DmsApi) GetTaskProgress(ctx _context.Context, orgName string, clusterName string, id string, taskId string) (DmsTaskInfo, *_nethttp.Response, error)

GetTaskProgress Get the task progress.

func (*DmsApi) ListDataSourceV2

func (a *DmsApi) ListDataSourceV2(ctx _context.Context, orgName string, clusterName string) ([]Datasource, *_nethttp.Response, error)

ListDataSourceV2 list the datasource of a cluster.

func (*DmsApi) ListObjectNamesByType

func (a *DmsApi) ListObjectNamesByType(ctx _context.Context, orgName string, clusterName string, id string, schema string, typeVar string) ([]string, *_nethttp.Response, error)

ListObjectNamesByType list the all name for the specified object type.

func (*DmsApi) ListObjectTypesInSchema

func (a *DmsApi) ListObjectTypesInSchema(ctx _context.Context, orgName string, clusterName string, id string, schema string) ([]Object, *_nethttp.Response, error)

ListObjectTypesInSchema list the type and number of database objects in the specified database or schema.

func (*DmsApi) ListParameters

func (a *DmsApi) ListParameters(ctx _context.Context, orgName string, clusterName string, tenantId string, mode string) ([]ObParameter, *_nethttp.Response, error)

ListParameters list cluster parameters.

func (*DmsApi) ListQueryHistory

func (a *DmsApi) ListQueryHistory(ctx _context.Context, orgName string, clusterName string, id string) (QueryHistory, *_nethttp.Response, error)

ListQueryHistory list the query History.

func (*DmsApi) ListSessions

func (a *DmsApi) ListSessions(ctx _context.Context, orgName string, clusterName string, o ...ListSessionsOptionalParameters) ([]ObSession, *_nethttp.Response, error)

ListSessions list all session for the cluster.

func (*DmsApi) ListVolumes

func (a *DmsApi) ListVolumes(ctx _context.Context, orgName string, clusterName string) ([]Volume, *_nethttp.Response, error)

ListVolumes List all Storage Volumes.

func (*DmsApi) Query

func (a *DmsApi) Query(ctx _context.Context, orgName string, clusterName string, id string, body interface{}) (QueryResponse, *_nethttp.Response, error)

Query create a SQL query.

func (*DmsApi) SetDefaultVolumes

func (a *DmsApi) SetDefaultVolumes(ctx _context.Context, orgName string, clusterName string, volumeName string) (string, *_nethttp.Response, error)

SetDefaultVolumes Set the Default Storage Volume.

func (*DmsApi) ShowData

func (a *DmsApi) ShowData(ctx _context.Context, orgName string, clusterName string, id string, body interface{}) (Result, *_nethttp.Response, error)

ShowData read data of table or view.

func (*DmsApi) SqlExplain

func (a *DmsApi) SqlExplain(ctx _context.Context, orgName string, clusterName string, id string, body interface{}) (QueryResponse, *_nethttp.Response, error)

SqlExplain explain a SQL.

func (*DmsApi) TenantParameterHistory

func (a *DmsApi) TenantParameterHistory(ctx _context.Context, orgName string, clusterName string, tenantId string, o ...TenantParameterHistoryOptionalParameters) (ParameterHistoryList, *_nethttp.Response, error)

TenantParameterHistory List parameters history of the Oceanbase tenant.

func (*DmsApi) TestDataSourceV2

func (a *DmsApi) TestDataSourceV2(ctx _context.Context, orgName string, clusterName string, body Datasource) (bool, *_nethttp.Response, error)

TestDataSourceV2 test the datasource.

func (*DmsApi) UpdateDataSourceV2

func (a *DmsApi) UpdateDataSourceV2(ctx _context.Context, orgName string, clusterName string, body Datasource) (bool, *_nethttp.Response, error)

UpdateDataSourceV2 update the datasource.

type DmsImportFormData

type DmsImportFormData struct {
	// the data file, csv or other format
	File _io.Reader `json:"file"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

DmsImportFormData the data of the import task

func NewDmsImportFormData

func NewDmsImportFormData(file _io.Reader) *DmsImportFormData

NewDmsImportFormData instantiates a new DmsImportFormData 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 NewDmsImportFormDataWithDefaults

func NewDmsImportFormDataWithDefaults() *DmsImportFormData

NewDmsImportFormDataWithDefaults instantiates a new DmsImportFormData 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 (*DmsImportFormData) GetFile

func (o *DmsImportFormData) GetFile() _io.Reader

GetFile returns the File field value.

func (*DmsImportFormData) GetFileOk

func (o *DmsImportFormData) GetFileOk() (*_io.Reader, bool)

GetFileOk returns a tuple with the File field value and a boolean to check if the value has been set.

func (DmsImportFormData) MarshalJSON

func (o DmsImportFormData) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*DmsImportFormData) SetFile

func (o *DmsImportFormData) SetFile(v _io.Reader)

SetFile sets field value.

func (*DmsImportFormData) UnmarshalJSON

func (o *DmsImportFormData) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type DmsOption

type DmsOption struct {
	Enabled       bool                   `json:"enabled"`
	Protocol      string                 `json:"protocol"`
	Feature       map[string]interface{} `json:"feature,omitempty"`
	TableMetadata []interface{}          `json:"tableMetadata,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewDmsOption

func NewDmsOption(enabled bool, protocol string) *DmsOption

NewDmsOption instantiates a new DmsOption 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 NewDmsOptionWithDefaults

func NewDmsOptionWithDefaults() *DmsOption

NewDmsOptionWithDefaults instantiates a new DmsOption 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 (*DmsOption) GetEnabled

func (o *DmsOption) GetEnabled() bool

GetEnabled returns the Enabled field value.

func (*DmsOption) GetEnabledOk

func (o *DmsOption) GetEnabledOk() (*bool, bool)

GetEnabledOk returns a tuple with the Enabled field value and a boolean to check if the value has been set.

func (*DmsOption) GetFeature

func (o *DmsOption) GetFeature() map[string]interface{}

GetFeature returns the Feature field value if set, zero value otherwise.

func (*DmsOption) GetFeatureOk

func (o *DmsOption) GetFeatureOk() (*map[string]interface{}, bool)

GetFeatureOk returns a tuple with the Feature field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DmsOption) GetProtocol

func (o *DmsOption) GetProtocol() string

GetProtocol returns the Protocol field value.

func (*DmsOption) GetProtocolOk

func (o *DmsOption) GetProtocolOk() (*string, bool)

GetProtocolOk returns a tuple with the Protocol field value and a boolean to check if the value has been set.

func (*DmsOption) GetTableMetadata

func (o *DmsOption) GetTableMetadata() []interface{}

GetTableMetadata returns the TableMetadata field value if set, zero value otherwise.

func (*DmsOption) GetTableMetadataOk

func (o *DmsOption) GetTableMetadataOk() (*[]interface{}, bool)

GetTableMetadataOk returns a tuple with the TableMetadata field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DmsOption) HasFeature

func (o *DmsOption) HasFeature() bool

HasFeature returns a boolean if a field has been set.

func (*DmsOption) HasTableMetadata

func (o *DmsOption) HasTableMetadata() bool

HasTableMetadata returns a boolean if a field has been set.

func (DmsOption) MarshalJSON

func (o DmsOption) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*DmsOption) SetEnabled

func (o *DmsOption) SetEnabled(v bool)

SetEnabled sets field value.

func (*DmsOption) SetFeature

func (o *DmsOption) SetFeature(v map[string]interface{})

SetFeature gets a reference to the given map[string]interface{} and assigns it to the Feature field.

func (*DmsOption) SetProtocol

func (o *DmsOption) SetProtocol(v string)

SetProtocol sets field value.

func (*DmsOption) SetTableMetadata

func (o *DmsOption) SetTableMetadata(v []interface{})

SetTableMetadata gets a reference to the given []interface{} and assigns it to the TableMetadata field.

func (*DmsOption) UnmarshalJSON

func (o *DmsOption) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type DmsTaskInfo

type DmsTaskInfo struct {
	// task id
	Id *string `json:"id,omitempty"`
	// datasource id
	Datasource *string `json:"datasource,omitempty"`
	// if task failed, this will show why
	Message common.NullableString `json:"message,omitempty"`
	// task status
	Status *string `json:"status,omitempty"`
	// task type
	Type      *string    `json:"type,omitempty"`
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
	CreatedAt *time.Time `json:"createdAt,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewDmsTaskInfo

func NewDmsTaskInfo() *DmsTaskInfo

NewDmsTaskInfo instantiates a new DmsTaskInfo 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 NewDmsTaskInfoWithDefaults

func NewDmsTaskInfoWithDefaults() *DmsTaskInfo

NewDmsTaskInfoWithDefaults instantiates a new DmsTaskInfo 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 (*DmsTaskInfo) GetCreatedAt

func (o *DmsTaskInfo) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.

func (*DmsTaskInfo) GetCreatedAtOk

func (o *DmsTaskInfo) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DmsTaskInfo) GetDatasource

func (o *DmsTaskInfo) GetDatasource() string

GetDatasource returns the Datasource field value if set, zero value otherwise.

func (*DmsTaskInfo) GetDatasourceOk

func (o *DmsTaskInfo) GetDatasourceOk() (*string, bool)

GetDatasourceOk returns a tuple with the Datasource field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DmsTaskInfo) GetId

func (o *DmsTaskInfo) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*DmsTaskInfo) GetIdOk

func (o *DmsTaskInfo) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DmsTaskInfo) GetMessage

func (o *DmsTaskInfo) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise (both if not set or set to explicit null).

func (*DmsTaskInfo) GetMessageOk

func (o *DmsTaskInfo) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.

func (*DmsTaskInfo) GetStatus

func (o *DmsTaskInfo) GetStatus() string

GetStatus returns the Status field value if set, zero value otherwise.

func (*DmsTaskInfo) GetStatusOk

func (o *DmsTaskInfo) GetStatusOk() (*string, bool)

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 (*DmsTaskInfo) GetType

func (o *DmsTaskInfo) GetType() string

GetType returns the Type field value if set, zero value otherwise.

func (*DmsTaskInfo) GetTypeOk

func (o *DmsTaskInfo) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DmsTaskInfo) GetUpdatedAt

func (o *DmsTaskInfo) GetUpdatedAt() time.Time

GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.

func (*DmsTaskInfo) GetUpdatedAtOk

func (o *DmsTaskInfo) GetUpdatedAtOk() (*time.Time, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DmsTaskInfo) HasCreatedAt

func (o *DmsTaskInfo) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*DmsTaskInfo) HasDatasource

func (o *DmsTaskInfo) HasDatasource() bool

HasDatasource returns a boolean if a field has been set.

func (*DmsTaskInfo) HasId

func (o *DmsTaskInfo) HasId() bool

HasId returns a boolean if a field has been set.

func (*DmsTaskInfo) HasMessage

func (o *DmsTaskInfo) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*DmsTaskInfo) HasStatus

func (o *DmsTaskInfo) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (*DmsTaskInfo) HasType

func (o *DmsTaskInfo) HasType() bool

HasType returns a boolean if a field has been set.

func (*DmsTaskInfo) HasUpdatedAt

func (o *DmsTaskInfo) HasUpdatedAt() bool

HasUpdatedAt returns a boolean if a field has been set.

func (DmsTaskInfo) MarshalJSON

func (o DmsTaskInfo) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*DmsTaskInfo) SetCreatedAt

func (o *DmsTaskInfo) SetCreatedAt(v time.Time)

SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.

func (*DmsTaskInfo) SetDatasource

func (o *DmsTaskInfo) SetDatasource(v string)

SetDatasource gets a reference to the given string and assigns it to the Datasource field.

func (*DmsTaskInfo) SetId

func (o *DmsTaskInfo) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*DmsTaskInfo) SetMessage

func (o *DmsTaskInfo) SetMessage(v string)

SetMessage gets a reference to the given common.NullableString and assigns it to the Message field.

func (*DmsTaskInfo) SetMessageNil

func (o *DmsTaskInfo) SetMessageNil()

SetMessageNil sets the value for Message to be an explicit nil.

func (*DmsTaskInfo) SetStatus

func (o *DmsTaskInfo) SetStatus(v string)

SetStatus gets a reference to the given string and assigns it to the Status field.

func (*DmsTaskInfo) SetType

func (o *DmsTaskInfo) SetType(v string)

SetType gets a reference to the given string and assigns it to the Type field.

func (*DmsTaskInfo) SetUpdatedAt

func (o *DmsTaskInfo) SetUpdatedAt(v time.Time)

SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field.

func (*DmsTaskInfo) UnmarshalJSON

func (o *DmsTaskInfo) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

func (*DmsTaskInfo) UnsetMessage

func (o *DmsTaskInfo) UnsetMessage()

UnsetMessage ensures that no value is present for Message, not even an explicit nil.

type DmsTaskList

type DmsTaskList struct {
	Tasks []DmsTaskInfo `json:"tasks,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewDmsTaskList

func NewDmsTaskList() *DmsTaskList

NewDmsTaskList instantiates a new DmsTaskList 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 NewDmsTaskListWithDefaults

func NewDmsTaskListWithDefaults() *DmsTaskList

NewDmsTaskListWithDefaults instantiates a new DmsTaskList 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 (*DmsTaskList) GetTasks

func (o *DmsTaskList) GetTasks() []DmsTaskInfo

GetTasks returns the Tasks field value if set, zero value otherwise.

func (*DmsTaskList) GetTasksOk

func (o *DmsTaskList) GetTasksOk() (*[]DmsTaskInfo, bool)

GetTasksOk returns a tuple with the Tasks field value if set, nil otherwise and a boolean to check if the value has been set.

func (*DmsTaskList) HasTasks

func (o *DmsTaskList) HasTasks() bool

HasTasks returns a boolean if a field has been set.

func (DmsTaskList) MarshalJSON

func (o DmsTaskList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*DmsTaskList) SetTasks

func (o *DmsTaskList) SetTasks(v []DmsTaskInfo)

SetTasks gets a reference to the given []DmsTaskInfo and assigns it to the Tasks field.

func (*DmsTaskList) UnmarshalJSON

func (o *DmsTaskList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type Endpoint

type Endpoint struct {
	// title of the endpoint
	Title string `json:"title"`
	// Component type name
	Component string `json:"component"`
	// Endpoint hosts
	Hosts []string `json:"hosts"`
	// Endpoint port
	Port int32 `json:"port"`
	// Type of endpoint
	Type EndpointType `json:"type"`
	// Network type of endpoint
	NetworkType EndpointNetworkType `json:"networkType"`
	// Service name of endpoint
	ServiceName string `json:"serviceName"`
	// Port name of endpoint
	PortName string `json:"portName"`
	// Endpoint backend instances
	Instances []string `json:"instances,omitempty"`
	// Whether the endpoint is mutable
	Mutable bool `json:"mutable"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

Endpoint Endpoint is the information of cluster endpoints

func NewEndpoint

func NewEndpoint(title string, component string, hosts []string, port int32, typeVar EndpointType, networkType EndpointNetworkType, serviceName string, portName string, mutable bool) *Endpoint

NewEndpoint instantiates a new Endpoint 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 NewEndpointWithDefaults

func NewEndpointWithDefaults() *Endpoint

NewEndpointWithDefaults instantiates a new Endpoint 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 (*Endpoint) GetComponent

func (o *Endpoint) GetComponent() string

GetComponent returns the Component field value.

func (*Endpoint) GetComponentOk

func (o *Endpoint) GetComponentOk() (*string, bool)

GetComponentOk returns a tuple with the Component field value and a boolean to check if the value has been set.

func (*Endpoint) GetHosts

func (o *Endpoint) GetHosts() []string

GetHosts returns the Hosts field value.

func (*Endpoint) GetHostsOk

func (o *Endpoint) GetHostsOk() (*[]string, bool)

GetHostsOk returns a tuple with the Hosts field value and a boolean to check if the value has been set.

func (*Endpoint) GetInstances

func (o *Endpoint) GetInstances() []string

GetInstances returns the Instances field value if set, zero value otherwise.

func (*Endpoint) GetInstancesOk

func (o *Endpoint) GetInstancesOk() (*[]string, bool)

GetInstancesOk returns a tuple with the Instances field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Endpoint) GetMutable

func (o *Endpoint) GetMutable() bool

GetMutable returns the Mutable field value.

func (*Endpoint) GetMutableOk

func (o *Endpoint) GetMutableOk() (*bool, bool)

GetMutableOk returns a tuple with the Mutable field value and a boolean to check if the value has been set.

func (*Endpoint) GetNetworkType

func (o *Endpoint) GetNetworkType() EndpointNetworkType

GetNetworkType returns the NetworkType field value.

func (*Endpoint) GetNetworkTypeOk

func (o *Endpoint) GetNetworkTypeOk() (*EndpointNetworkType, bool)

GetNetworkTypeOk returns a tuple with the NetworkType field value and a boolean to check if the value has been set.

func (*Endpoint) GetPort

func (o *Endpoint) GetPort() int32

GetPort returns the Port field value.

func (*Endpoint) GetPortName

func (o *Endpoint) GetPortName() string

GetPortName returns the PortName field value.

func (*Endpoint) GetPortNameOk

func (o *Endpoint) GetPortNameOk() (*string, bool)

GetPortNameOk returns a tuple with the PortName field value and a boolean to check if the value has been set.

func (*Endpoint) GetPortOk

func (o *Endpoint) GetPortOk() (*int32, bool)

GetPortOk returns a tuple with the Port field value and a boolean to check if the value has been set.

func (*Endpoint) GetServiceName

func (o *Endpoint) GetServiceName() string

GetServiceName returns the ServiceName field value.

func (*Endpoint) GetServiceNameOk

func (o *Endpoint) GetServiceNameOk() (*string, bool)

GetServiceNameOk returns a tuple with the ServiceName field value and a boolean to check if the value has been set.

func (*Endpoint) GetTitle

func (o *Endpoint) GetTitle() string

GetTitle returns the Title field value.

func (*Endpoint) GetTitleOk

func (o *Endpoint) GetTitleOk() (*string, bool)

GetTitleOk returns a tuple with the Title field value and a boolean to check if the value has been set.

func (*Endpoint) GetType

func (o *Endpoint) GetType() EndpointType

GetType returns the Type field value.

func (*Endpoint) GetTypeOk

func (o *Endpoint) GetTypeOk() (*EndpointType, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (*Endpoint) HasInstances

func (o *Endpoint) HasInstances() bool

HasInstances returns a boolean if a field has been set.

func (Endpoint) MarshalJSON

func (o Endpoint) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*Endpoint) SetComponent

func (o *Endpoint) SetComponent(v string)

SetComponent sets field value.

func (*Endpoint) SetHosts

func (o *Endpoint) SetHosts(v []string)

SetHosts sets field value.

func (*Endpoint) SetInstances

func (o *Endpoint) SetInstances(v []string)

SetInstances gets a reference to the given []string and assigns it to the Instances field.

func (*Endpoint) SetMutable

func (o *Endpoint) SetMutable(v bool)

SetMutable sets field value.

func (*Endpoint) SetNetworkType

func (o *Endpoint) SetNetworkType(v EndpointNetworkType)

SetNetworkType sets field value.

func (*Endpoint) SetPort

func (o *Endpoint) SetPort(v int32)

SetPort sets field value.

func (*Endpoint) SetPortName

func (o *Endpoint) SetPortName(v string)

SetPortName sets field value.

func (*Endpoint) SetServiceName

func (o *Endpoint) SetServiceName(v string)

SetServiceName sets field value.

func (*Endpoint) SetTitle

func (o *Endpoint) SetTitle(v string)

SetTitle sets field value.

func (*Endpoint) SetType

func (o *Endpoint) SetType(v EndpointType)

SetType sets field value.

func (*Endpoint) UnmarshalJSON

func (o *Endpoint) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type EndpointList

type EndpointList struct {
	// Items is the list of endpoint objects in the list
	Items []Endpoint `json:"items"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewEndpointList

func NewEndpointList(items []Endpoint) *EndpointList

NewEndpointList instantiates a new EndpointList 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 NewEndpointListWithDefaults

func NewEndpointListWithDefaults() *EndpointList

NewEndpointListWithDefaults instantiates a new EndpointList 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 (*EndpointList) GetItems

func (o *EndpointList) GetItems() []Endpoint

GetItems returns the Items field value.

func (*EndpointList) GetItemsOk

func (o *EndpointList) GetItemsOk() (*[]Endpoint, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (EndpointList) MarshalJSON

func (o EndpointList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*EndpointList) SetItems

func (o *EndpointList) SetItems(v []Endpoint)

SetItems sets field value.

func (*EndpointList) UnmarshalJSON

func (o *EndpointList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type EndpointNetworkType

type EndpointNetworkType string

EndpointNetworkType Network type of endpoint

const (
	EndpointNetworkTypeInternet EndpointNetworkType = "Internet"
	EndpointNetworkTypeIntranet EndpointNetworkType = "Intranet"
)

List of EndpointNetworkType.

func NewEndpointNetworkTypeFromValue

func NewEndpointNetworkTypeFromValue(v string) (*EndpointNetworkType, error)

NewEndpointNetworkTypeFromValue returns a pointer to a valid EndpointNetworkType for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*EndpointNetworkType) GetAllowedValues

func (v *EndpointNetworkType) GetAllowedValues() []EndpointNetworkType

GetAllowedValues returns the list of possible values.

func (EndpointNetworkType) IsValid

func (v EndpointNetworkType) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (EndpointNetworkType) Ptr

Ptr returns reference to EndpointNetworkType value.

func (*EndpointNetworkType) UnmarshalJSON

func (v *EndpointNetworkType) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type EndpointOption

type EndpointOption struct {
	Title     LocalizedDescription `json:"title"`
	Component string               `json:"component"`
	PortName  string               `json:"portName"`
	Type      []string             `json:"type"`
	Port      int32                `json:"port"`
	// whether the endpoint supports system use, such as health check, dms, databases & accounts management etc.
	SupportsSystemUse *bool `json:"supportsSystemUse,omitempty"`
	// service name pattern, e.g. ClusterName-ComponentName or .ClusterName`
	ServicePattern *EngineOptionsServicePattern `json:"servicePattern,omitempty"`
	// ServiceName regular expression
	ServiceNameRegex *string `json:"serviceNameRegex,omitempty"`
	// service suffix, defined in ComponentDefinition
	ServiceName *string `json:"serviceName,omitempty"`
	// selector of k8s service
	Selector map[string]string `json:"selector,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewEndpointOption

func NewEndpointOption(title LocalizedDescription, component string, portName string, typeVar []string, port int32) *EndpointOption

NewEndpointOption instantiates a new EndpointOption 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 NewEndpointOptionWithDefaults

func NewEndpointOptionWithDefaults() *EndpointOption

NewEndpointOptionWithDefaults instantiates a new EndpointOption 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 (*EndpointOption) GetComponent

func (o *EndpointOption) GetComponent() string

GetComponent returns the Component field value.

func (*EndpointOption) GetComponentOk

func (o *EndpointOption) GetComponentOk() (*string, bool)

GetComponentOk returns a tuple with the Component field value and a boolean to check if the value has been set.

func (*EndpointOption) GetPort

func (o *EndpointOption) GetPort() int32

GetPort returns the Port field value.

func (*EndpointOption) GetPortName

func (o *EndpointOption) GetPortName() string

GetPortName returns the PortName field value.

func (*EndpointOption) GetPortNameOk

func (o *EndpointOption) GetPortNameOk() (*string, bool)

GetPortNameOk returns a tuple with the PortName field value and a boolean to check if the value has been set.

func (*EndpointOption) GetPortOk

func (o *EndpointOption) GetPortOk() (*int32, bool)

GetPortOk returns a tuple with the Port field value and a boolean to check if the value has been set.

func (*EndpointOption) GetSelector

func (o *EndpointOption) GetSelector() map[string]string

GetSelector returns the Selector field value if set, zero value otherwise.

func (*EndpointOption) GetSelectorOk

func (o *EndpointOption) GetSelectorOk() (*map[string]string, bool)

GetSelectorOk returns a tuple with the Selector field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EndpointOption) GetServiceName

func (o *EndpointOption) GetServiceName() string

GetServiceName returns the ServiceName field value if set, zero value otherwise.

func (*EndpointOption) GetServiceNameOk

func (o *EndpointOption) GetServiceNameOk() (*string, bool)

GetServiceNameOk returns a tuple with the ServiceName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EndpointOption) GetServiceNameRegex

func (o *EndpointOption) GetServiceNameRegex() string

GetServiceNameRegex returns the ServiceNameRegex field value if set, zero value otherwise.

func (*EndpointOption) GetServiceNameRegexOk

func (o *EndpointOption) GetServiceNameRegexOk() (*string, bool)

GetServiceNameRegexOk returns a tuple with the ServiceNameRegex field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EndpointOption) GetServicePattern

func (o *EndpointOption) GetServicePattern() EngineOptionsServicePattern

GetServicePattern returns the ServicePattern field value if set, zero value otherwise.

func (*EndpointOption) GetServicePatternOk

func (o *EndpointOption) GetServicePatternOk() (*EngineOptionsServicePattern, bool)

GetServicePatternOk returns a tuple with the ServicePattern field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EndpointOption) GetSupportsSystemUse

func (o *EndpointOption) GetSupportsSystemUse() bool

GetSupportsSystemUse returns the SupportsSystemUse field value if set, zero value otherwise.

func (*EndpointOption) GetSupportsSystemUseOk

func (o *EndpointOption) GetSupportsSystemUseOk() (*bool, bool)

GetSupportsSystemUseOk returns a tuple with the SupportsSystemUse field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EndpointOption) GetTitle

func (o *EndpointOption) GetTitle() LocalizedDescription

GetTitle returns the Title field value.

func (*EndpointOption) GetTitleOk

func (o *EndpointOption) GetTitleOk() (*LocalizedDescription, bool)

GetTitleOk returns a tuple with the Title field value and a boolean to check if the value has been set.

func (*EndpointOption) GetType

func (o *EndpointOption) GetType() []string

GetType returns the Type field value.

func (*EndpointOption) GetTypeOk

func (o *EndpointOption) GetTypeOk() (*[]string, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (*EndpointOption) HasSelector

func (o *EndpointOption) HasSelector() bool

HasSelector returns a boolean if a field has been set.

func (*EndpointOption) HasServiceName

func (o *EndpointOption) HasServiceName() bool

HasServiceName returns a boolean if a field has been set.

func (*EndpointOption) HasServiceNameRegex

func (o *EndpointOption) HasServiceNameRegex() bool

HasServiceNameRegex returns a boolean if a field has been set.

func (*EndpointOption) HasServicePattern

func (o *EndpointOption) HasServicePattern() bool

HasServicePattern returns a boolean if a field has been set.

func (*EndpointOption) HasSupportsSystemUse

func (o *EndpointOption) HasSupportsSystemUse() bool

HasSupportsSystemUse returns a boolean if a field has been set.

func (EndpointOption) MarshalJSON

func (o EndpointOption) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*EndpointOption) SetComponent

func (o *EndpointOption) SetComponent(v string)

SetComponent sets field value.

func (*EndpointOption) SetPort

func (o *EndpointOption) SetPort(v int32)

SetPort sets field value.

func (*EndpointOption) SetPortName

func (o *EndpointOption) SetPortName(v string)

SetPortName sets field value.

func (*EndpointOption) SetSelector

func (o *EndpointOption) SetSelector(v map[string]string)

SetSelector gets a reference to the given map[string]string and assigns it to the Selector field.

func (*EndpointOption) SetServiceName

func (o *EndpointOption) SetServiceName(v string)

SetServiceName gets a reference to the given string and assigns it to the ServiceName field.

func (*EndpointOption) SetServiceNameRegex

func (o *EndpointOption) SetServiceNameRegex(v string)

SetServiceNameRegex gets a reference to the given string and assigns it to the ServiceNameRegex field.

func (*EndpointOption) SetServicePattern

func (o *EndpointOption) SetServicePattern(v EngineOptionsServicePattern)

SetServicePattern gets a reference to the given EngineOptionsServicePattern and assigns it to the ServicePattern field.

func (*EndpointOption) SetSupportsSystemUse

func (o *EndpointOption) SetSupportsSystemUse(v bool)

SetSupportsSystemUse gets a reference to the given bool and assigns it to the SupportsSystemUse field.

func (*EndpointOption) SetTitle

func (o *EndpointOption) SetTitle(v LocalizedDescription)

SetTitle sets field value.

func (*EndpointOption) SetType

func (o *EndpointOption) SetType(v []string)

SetType sets field value.

func (*EndpointOption) UnmarshalJSON

func (o *EndpointOption) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type EndpointType

type EndpointType string

EndpointType Type of endpoint

const (
	EndpointTypeClusterIp    EndpointType = "ClusterIP"
	EndpointTypeNodePort     EndpointType = "NodePort"
	EndpointTypeLoadBalancer EndpointType = "LoadBalancer"
)

List of EndpointType.

func NewEndpointTypeFromValue

func NewEndpointTypeFromValue(v string) (*EndpointType, error)

NewEndpointTypeFromValue returns a pointer to a valid EndpointType for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*EndpointType) GetAllowedValues

func (v *EndpointType) GetAllowedValues() []EndpointType

GetAllowedValues returns the list of possible values.

func (EndpointType) IsValid

func (v EndpointType) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (EndpointType) Ptr

func (v EndpointType) Ptr() *EndpointType

Ptr returns reference to EndpointType value.

func (*EndpointType) UnmarshalJSON

func (v *EndpointType) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type Engine

type Engine struct {
	// engine ID
	Id *string `json:"id,omitempty"`
	// the engine description
	Description *string `json:"description,omitempty"`
	// engine Name
	Name *string `json:"name,omitempty"`
	// engine version
	Version *string `json:"version,omitempty"`
	// KubeBlocks version constrain
	KbVersionConstraint *string `json:"kbVersionConstraint,omitempty"`
	// engine type
	Type *EngineType `json:"type,omitempty"`
	// whether the engine is installed
	Installed *bool `json:"installed,omitempty"`
	// engine addon provider
	Provider *string `json:"provider,omitempty"`
	// engine addon status in K8s
	Status *EngineStatus `json:"status,omitempty"`
	// engine available versions
	AvailableVersion []string `json:"availableVersion,omitempty"`
	// engine upgrade history
	UpgradeHistory *string `json:"upgradeHistory,omitempty"`
	// engine error messages when the engine status is failed
	ErrMsg *string `json:"errMsg,omitempty"`
	// clusterversion in the engines
	ClusterVersions []string `json:"clusterVersions,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewEngine

func NewEngine() *Engine

NewEngine instantiates a new Engine 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 NewEngineWithDefaults

func NewEngineWithDefaults() *Engine

NewEngineWithDefaults instantiates a new Engine 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 (*Engine) GetAvailableVersion

func (o *Engine) GetAvailableVersion() []string

GetAvailableVersion returns the AvailableVersion field value if set, zero value otherwise.

func (*Engine) GetAvailableVersionOk

func (o *Engine) GetAvailableVersionOk() (*[]string, bool)

GetAvailableVersionOk returns a tuple with the AvailableVersion field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Engine) GetClusterVersions

func (o *Engine) GetClusterVersions() []string

GetClusterVersions returns the ClusterVersions field value if set, zero value otherwise.

func (*Engine) GetClusterVersionsOk

func (o *Engine) GetClusterVersionsOk() (*[]string, bool)

GetClusterVersionsOk returns a tuple with the ClusterVersions field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Engine) GetDescription

func (o *Engine) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*Engine) GetDescriptionOk

func (o *Engine) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Engine) GetErrMsg

func (o *Engine) GetErrMsg() string

GetErrMsg returns the ErrMsg field value if set, zero value otherwise.

func (*Engine) GetErrMsgOk

func (o *Engine) GetErrMsgOk() (*string, bool)

GetErrMsgOk returns a tuple with the ErrMsg field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Engine) GetId

func (o *Engine) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*Engine) GetIdOk

func (o *Engine) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Engine) GetInstalled

func (o *Engine) GetInstalled() bool

GetInstalled returns the Installed field value if set, zero value otherwise.

func (*Engine) GetInstalledOk

func (o *Engine) GetInstalledOk() (*bool, bool)

GetInstalledOk returns a tuple with the Installed field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Engine) GetKbVersionConstraint

func (o *Engine) GetKbVersionConstraint() string

GetKbVersionConstraint returns the KbVersionConstraint field value if set, zero value otherwise.

func (*Engine) GetKbVersionConstraintOk

func (o *Engine) GetKbVersionConstraintOk() (*string, bool)

GetKbVersionConstraintOk returns a tuple with the KbVersionConstraint field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Engine) GetName

func (o *Engine) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*Engine) GetNameOk

func (o *Engine) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Engine) GetProvider

func (o *Engine) GetProvider() string

GetProvider returns the Provider field value if set, zero value otherwise.

func (*Engine) GetProviderOk

func (o *Engine) GetProviderOk() (*string, bool)

GetProviderOk returns a tuple with the Provider field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Engine) GetStatus

func (o *Engine) GetStatus() EngineStatus

GetStatus returns the Status field value if set, zero value otherwise.

func (*Engine) GetStatusOk

func (o *Engine) GetStatusOk() (*EngineStatus, bool)

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 (*Engine) GetType

func (o *Engine) GetType() EngineType

GetType returns the Type field value if set, zero value otherwise.

func (*Engine) GetTypeOk

func (o *Engine) GetTypeOk() (*EngineType, bool)

GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Engine) GetUpgradeHistory

func (o *Engine) GetUpgradeHistory() string

GetUpgradeHistory returns the UpgradeHistory field value if set, zero value otherwise.

func (*Engine) GetUpgradeHistoryOk

func (o *Engine) GetUpgradeHistoryOk() (*string, bool)

GetUpgradeHistoryOk returns a tuple with the UpgradeHistory field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Engine) GetVersion

func (o *Engine) GetVersion() string

GetVersion returns the Version field value if set, zero value otherwise.

func (*Engine) GetVersionOk

func (o *Engine) GetVersionOk() (*string, bool)

GetVersionOk returns a tuple with the Version field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Engine) HasAvailableVersion

func (o *Engine) HasAvailableVersion() bool

HasAvailableVersion returns a boolean if a field has been set.

func (*Engine) HasClusterVersions

func (o *Engine) HasClusterVersions() bool

HasClusterVersions returns a boolean if a field has been set.

func (*Engine) HasDescription

func (o *Engine) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*Engine) HasErrMsg

func (o *Engine) HasErrMsg() bool

HasErrMsg returns a boolean if a field has been set.

func (*Engine) HasId

func (o *Engine) HasId() bool

HasId returns a boolean if a field has been set.

func (*Engine) HasInstalled

func (o *Engine) HasInstalled() bool

HasInstalled returns a boolean if a field has been set.

func (*Engine) HasKbVersionConstraint

func (o *Engine) HasKbVersionConstraint() bool

HasKbVersionConstraint returns a boolean if a field has been set.

func (*Engine) HasName

func (o *Engine) HasName() bool

HasName returns a boolean if a field has been set.

func (*Engine) HasProvider

func (o *Engine) HasProvider() bool

HasProvider returns a boolean if a field has been set.

func (*Engine) HasStatus

func (o *Engine) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (*Engine) HasType

func (o *Engine) HasType() bool

HasType returns a boolean if a field has been set.

func (*Engine) HasUpgradeHistory

func (o *Engine) HasUpgradeHistory() bool

HasUpgradeHistory returns a boolean if a field has been set.

func (*Engine) HasVersion

func (o *Engine) HasVersion() bool

HasVersion returns a boolean if a field has been set.

func (Engine) MarshalJSON

func (o Engine) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*Engine) SetAvailableVersion

func (o *Engine) SetAvailableVersion(v []string)

SetAvailableVersion gets a reference to the given []string and assigns it to the AvailableVersion field.

func (*Engine) SetClusterVersions

func (o *Engine) SetClusterVersions(v []string)

SetClusterVersions gets a reference to the given []string and assigns it to the ClusterVersions field.

func (*Engine) SetDescription

func (o *Engine) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*Engine) SetErrMsg

func (o *Engine) SetErrMsg(v string)

SetErrMsg gets a reference to the given string and assigns it to the ErrMsg field.

func (*Engine) SetId

func (o *Engine) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*Engine) SetInstalled

func (o *Engine) SetInstalled(v bool)

SetInstalled gets a reference to the given bool and assigns it to the Installed field.

func (*Engine) SetKbVersionConstraint

func (o *Engine) SetKbVersionConstraint(v string)

SetKbVersionConstraint gets a reference to the given string and assigns it to the KbVersionConstraint field.

func (*Engine) SetName

func (o *Engine) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*Engine) SetProvider

func (o *Engine) SetProvider(v string)

SetProvider gets a reference to the given string and assigns it to the Provider field.

func (*Engine) SetStatus

func (o *Engine) SetStatus(v EngineStatus)

SetStatus gets a reference to the given EngineStatus and assigns it to the Status field.

func (*Engine) SetType

func (o *Engine) SetType(v EngineType)

SetType gets a reference to the given EngineType and assigns it to the Type field.

func (*Engine) SetUpgradeHistory

func (o *Engine) SetUpgradeHistory(v string)

SetUpgradeHistory gets a reference to the given string and assigns it to the UpgradeHistory field.

func (*Engine) SetVersion

func (o *Engine) SetVersion(v string)

SetVersion gets a reference to the given string and assigns it to the Version field.

func (*Engine) UnmarshalJSON

func (o *Engine) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type EngineApi

type EngineApi common.Service

EngineApi service type

func NewEngineApi

func NewEngineApi(client *common.APIClient) *EngineApi

NewEngineApi Returns NewEngineApi.

func (*EngineApi) EngineActionInOrg

func (a *EngineApi) EngineActionInOrg(ctx _context.Context, orgName string, actionInfo interface{}) (bool, *_nethttp.Response, error)

EngineActionInOrg Manage engine in organization.

func (*EngineApi) ListEnginesInEnv

func (a *EngineApi) ListEnginesInEnv(ctx _context.Context, environmentName string, o ...ListEnginesInEnvOptionalParameters) ([]Engine, *_nethttp.Response, error)

ListEnginesInEnv List engines in environment.

func (*EngineApi) ListEnginesInOrg

func (a *EngineApi) ListEnginesInOrg(ctx _context.Context, orgName string, o ...ListEnginesInOrgOptionalParameters) ([]Engine, *_nethttp.Response, error)

ListEnginesInOrg List engines in organization.

type EngineLicense

type EngineLicense struct {
	EngineName  string     `json:"engineName"`
	Name        string     `json:"name"`
	Key         *string    `json:"key,omitempty"`
	Description *string    `json:"description,omitempty"`
	ExpiredAt   *time.Time `json:"expiredAt,omitempty"`
	CreatedAt   *time.Time `json:"createdAt,omitempty"`
	Id          *int32     `json:"id,omitempty"`
	IdString    *string    `json:"idString,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewEngineLicense

func NewEngineLicense(engineName string, name string) *EngineLicense

NewEngineLicense instantiates a new EngineLicense 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 NewEngineLicenseWithDefaults

func NewEngineLicenseWithDefaults() *EngineLicense

NewEngineLicenseWithDefaults instantiates a new EngineLicense 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 (*EngineLicense) GetCreatedAt

func (o *EngineLicense) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.

func (*EngineLicense) GetCreatedAtOk

func (o *EngineLicense) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EngineLicense) GetDescription

func (o *EngineLicense) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*EngineLicense) GetDescriptionOk

func (o *EngineLicense) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EngineLicense) GetEngineName

func (o *EngineLicense) GetEngineName() string

GetEngineName returns the EngineName field value.

func (*EngineLicense) GetEngineNameOk

func (o *EngineLicense) GetEngineNameOk() (*string, bool)

GetEngineNameOk returns a tuple with the EngineName field value and a boolean to check if the value has been set.

func (*EngineLicense) GetExpiredAt

func (o *EngineLicense) GetExpiredAt() time.Time

GetExpiredAt returns the ExpiredAt field value if set, zero value otherwise.

func (*EngineLicense) GetExpiredAtOk

func (o *EngineLicense) GetExpiredAtOk() (*time.Time, bool)

GetExpiredAtOk returns a tuple with the ExpiredAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EngineLicense) GetId

func (o *EngineLicense) GetId() int32

GetId returns the Id field value if set, zero value otherwise.

func (*EngineLicense) GetIdOk

func (o *EngineLicense) GetIdOk() (*int32, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EngineLicense) GetIdString

func (o *EngineLicense) GetIdString() string

GetIdString returns the IdString field value if set, zero value otherwise.

func (*EngineLicense) GetIdStringOk

func (o *EngineLicense) GetIdStringOk() (*string, bool)

GetIdStringOk returns a tuple with the IdString field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EngineLicense) GetKey

func (o *EngineLicense) GetKey() string

GetKey returns the Key field value if set, zero value otherwise.

func (*EngineLicense) GetKeyOk

func (o *EngineLicense) GetKeyOk() (*string, bool)

GetKeyOk returns a tuple with the Key field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EngineLicense) GetName

func (o *EngineLicense) GetName() string

GetName returns the Name field value.

func (*EngineLicense) GetNameOk

func (o *EngineLicense) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*EngineLicense) HasCreatedAt

func (o *EngineLicense) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*EngineLicense) HasDescription

func (o *EngineLicense) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*EngineLicense) HasExpiredAt

func (o *EngineLicense) HasExpiredAt() bool

HasExpiredAt returns a boolean if a field has been set.

func (*EngineLicense) HasId

func (o *EngineLicense) HasId() bool

HasId returns a boolean if a field has been set.

func (*EngineLicense) HasIdString

func (o *EngineLicense) HasIdString() bool

HasIdString returns a boolean if a field has been set.

func (*EngineLicense) HasKey

func (o *EngineLicense) HasKey() bool

HasKey returns a boolean if a field has been set.

func (EngineLicense) MarshalJSON

func (o EngineLicense) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*EngineLicense) SetCreatedAt

func (o *EngineLicense) SetCreatedAt(v time.Time)

SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.

func (*EngineLicense) SetDescription

func (o *EngineLicense) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*EngineLicense) SetEngineName

func (o *EngineLicense) SetEngineName(v string)

SetEngineName sets field value.

func (*EngineLicense) SetExpiredAt

func (o *EngineLicense) SetExpiredAt(v time.Time)

SetExpiredAt gets a reference to the given time.Time and assigns it to the ExpiredAt field.

func (*EngineLicense) SetId

func (o *EngineLicense) SetId(v int32)

SetId gets a reference to the given int32 and assigns it to the Id field.

func (*EngineLicense) SetIdString

func (o *EngineLicense) SetIdString(v string)

SetIdString gets a reference to the given string and assigns it to the IdString field.

func (*EngineLicense) SetKey

func (o *EngineLicense) SetKey(v string)

SetKey gets a reference to the given string and assigns it to the Key field.

func (*EngineLicense) SetName

func (o *EngineLicense) SetName(v string)

SetName sets field value.

func (*EngineLicense) UnmarshalJSON

func (o *EngineLicense) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type EngineLicenseApi

type EngineLicenseApi common.Service

EngineLicenseApi service type

func NewEngineLicenseApi

func NewEngineLicenseApi(client *common.APIClient) *EngineLicenseApi

NewEngineLicenseApi Returns NewEngineLicenseApi.

func (*EngineLicenseApi) ListEngineLicenses

ListEngineLicenses List all engineLicenses. list all engineLicenses

type EngineLicenseList

type EngineLicenseList struct {
	// Items is the list of engineLicense objects in the list
	Items []EngineLicense `json:"items"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewEngineLicenseList

func NewEngineLicenseList(items []EngineLicense) *EngineLicenseList

NewEngineLicenseList instantiates a new EngineLicenseList 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 NewEngineLicenseListWithDefaults

func NewEngineLicenseListWithDefaults() *EngineLicenseList

NewEngineLicenseListWithDefaults instantiates a new EngineLicenseList 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 (*EngineLicenseList) GetItems

func (o *EngineLicenseList) GetItems() []EngineLicense

GetItems returns the Items field value.

func (*EngineLicenseList) GetItemsOk

func (o *EngineLicenseList) GetItemsOk() (*[]EngineLicense, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (EngineLicenseList) MarshalJSON

func (o EngineLicenseList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*EngineLicenseList) SetItems

func (o *EngineLicenseList) SetItems(v []EngineLicense)

SetItems sets field value.

func (*EngineLicenseList) UnmarshalJSON

func (o *EngineLicenseList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type EngineOption

type EngineOption struct {
	EngineName       string               `json:"engineName"`
	Title            string               `json:"title"`
	Description      LocalizedDescription `json:"description"`
	Versions         []string             `json:"versions"`
	Components       []ComponentOption    `json:"components"`
	Modes            []ModeOption         `json:"modes"`
	Account          AccountOption        `json:"account"`
	Database         *DatabaseOption      `json:"database,omitempty"`
	Dms              DmsOption            `json:"dms"`
	Backup           BackupOption         `json:"backup"`
	Bench            BenchOption          `json:"bench"`
	Endpoints        []EndpointOption     `json:"endpoints"`
	Promote          []ComponentOpsOption `json:"promote"`
	Stop             []ComponentOpsOption `json:"stop"`
	Start            []ComponentOpsOption `json:"start"`
	Restart          []ComponentOpsOption `json:"restart"`
	Hscale           []ComponentOpsOption `json:"hscale"`
	Vscale           []ComponentOpsOption `json:"vscale"`
	License          *EngineOptionLicense `json:"license,omitempty"`
	StorageExpansion []ComponentOpsOption `json:"storageExpansion"`
	RebuildInstance  []ComponentOpsOption `json:"rebuildInstance,omitempty"`
	Metrics          *MetricsOption       `json:"metrics,omitempty"`
	Dashboards       []DashboardOption    `json:"dashboards"`
	Logs             []LogOption          `json:"logs"`
	Parameters       []ParameterOption    `json:"parameters"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewEngineOption

func NewEngineOption(engineName string, title string, description LocalizedDescription, versions []string, components []ComponentOption, modes []ModeOption, account AccountOption, dms DmsOption, backup BackupOption, bench BenchOption, endpoints []EndpointOption, promote []ComponentOpsOption, stop []ComponentOpsOption, start []ComponentOpsOption, restart []ComponentOpsOption, hscale []ComponentOpsOption, vscale []ComponentOpsOption, storageExpansion []ComponentOpsOption, dashboards []DashboardOption, logs []LogOption, parameters []ParameterOption) *EngineOption

NewEngineOption instantiates a new EngineOption 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 NewEngineOptionWithDefaults

func NewEngineOptionWithDefaults() *EngineOption

NewEngineOptionWithDefaults instantiates a new EngineOption 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 (*EngineOption) GetAccount

func (o *EngineOption) GetAccount() AccountOption

GetAccount returns the Account field value.

func (*EngineOption) GetAccountOk

func (o *EngineOption) GetAccountOk() (*AccountOption, bool)

GetAccountOk returns a tuple with the Account field value and a boolean to check if the value has been set.

func (*EngineOption) GetBackup

func (o *EngineOption) GetBackup() BackupOption

GetBackup returns the Backup field value.

func (*EngineOption) GetBackupOk

func (o *EngineOption) GetBackupOk() (*BackupOption, bool)

GetBackupOk returns a tuple with the Backup field value and a boolean to check if the value has been set.

func (*EngineOption) GetBench

func (o *EngineOption) GetBench() BenchOption

GetBench returns the Bench field value.

func (*EngineOption) GetBenchOk

func (o *EngineOption) GetBenchOk() (*BenchOption, bool)

GetBenchOk returns a tuple with the Bench field value and a boolean to check if the value has been set.

func (*EngineOption) GetComponents

func (o *EngineOption) GetComponents() []ComponentOption

GetComponents returns the Components field value.

func (*EngineOption) GetComponentsOk

func (o *EngineOption) GetComponentsOk() (*[]ComponentOption, bool)

GetComponentsOk returns a tuple with the Components field value and a boolean to check if the value has been set.

func (*EngineOption) GetDashboards

func (o *EngineOption) GetDashboards() []DashboardOption

GetDashboards returns the Dashboards field value.

func (*EngineOption) GetDashboardsOk

func (o *EngineOption) GetDashboardsOk() (*[]DashboardOption, bool)

GetDashboardsOk returns a tuple with the Dashboards field value and a boolean to check if the value has been set.

func (*EngineOption) GetDatabase

func (o *EngineOption) GetDatabase() DatabaseOption

GetDatabase returns the Database field value if set, zero value otherwise.

func (*EngineOption) GetDatabaseOk

func (o *EngineOption) GetDatabaseOk() (*DatabaseOption, bool)

GetDatabaseOk returns a tuple with the Database field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EngineOption) GetDescription

func (o *EngineOption) GetDescription() LocalizedDescription

GetDescription returns the Description field value.

func (*EngineOption) GetDescriptionOk

func (o *EngineOption) GetDescriptionOk() (*LocalizedDescription, bool)

GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.

func (*EngineOption) GetDms

func (o *EngineOption) GetDms() DmsOption

GetDms returns the Dms field value.

func (*EngineOption) GetDmsOk

func (o *EngineOption) GetDmsOk() (*DmsOption, bool)

GetDmsOk returns a tuple with the Dms field value and a boolean to check if the value has been set.

func (*EngineOption) GetEndpoints

func (o *EngineOption) GetEndpoints() []EndpointOption

GetEndpoints returns the Endpoints field value.

func (*EngineOption) GetEndpointsOk

func (o *EngineOption) GetEndpointsOk() (*[]EndpointOption, bool)

GetEndpointsOk returns a tuple with the Endpoints field value and a boolean to check if the value has been set.

func (*EngineOption) GetEngineName

func (o *EngineOption) GetEngineName() string

GetEngineName returns the EngineName field value.

func (*EngineOption) GetEngineNameOk

func (o *EngineOption) GetEngineNameOk() (*string, bool)

GetEngineNameOk returns a tuple with the EngineName field value and a boolean to check if the value has been set.

func (*EngineOption) GetHscale

func (o *EngineOption) GetHscale() []ComponentOpsOption

GetHscale returns the Hscale field value.

func (*EngineOption) GetHscaleOk

func (o *EngineOption) GetHscaleOk() (*[]ComponentOpsOption, bool)

GetHscaleOk returns a tuple with the Hscale field value and a boolean to check if the value has been set.

func (*EngineOption) GetLicense

func (o *EngineOption) GetLicense() EngineOptionLicense

GetLicense returns the License field value if set, zero value otherwise.

func (*EngineOption) GetLicenseOk

func (o *EngineOption) GetLicenseOk() (*EngineOptionLicense, bool)

GetLicenseOk returns a tuple with the License field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EngineOption) GetLogs

func (o *EngineOption) GetLogs() []LogOption

GetLogs returns the Logs field value.

func (*EngineOption) GetLogsOk

func (o *EngineOption) GetLogsOk() (*[]LogOption, bool)

GetLogsOk returns a tuple with the Logs field value and a boolean to check if the value has been set.

func (*EngineOption) GetMetrics

func (o *EngineOption) GetMetrics() MetricsOption

GetMetrics returns the Metrics field value if set, zero value otherwise.

func (*EngineOption) GetMetricsOk

func (o *EngineOption) GetMetricsOk() (*MetricsOption, bool)

GetMetricsOk returns a tuple with the Metrics field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EngineOption) GetModes

func (o *EngineOption) GetModes() []ModeOption

GetModes returns the Modes field value.

func (*EngineOption) GetModesOk

func (o *EngineOption) GetModesOk() (*[]ModeOption, bool)

GetModesOk returns a tuple with the Modes field value and a boolean to check if the value has been set.

func (*EngineOption) GetParameters

func (o *EngineOption) GetParameters() []ParameterOption

GetParameters returns the Parameters field value.

func (*EngineOption) GetParametersOk

func (o *EngineOption) GetParametersOk() (*[]ParameterOption, bool)

GetParametersOk returns a tuple with the Parameters field value and a boolean to check if the value has been set.

func (*EngineOption) GetPromote

func (o *EngineOption) GetPromote() []ComponentOpsOption

GetPromote returns the Promote field value.

func (*EngineOption) GetPromoteOk

func (o *EngineOption) GetPromoteOk() (*[]ComponentOpsOption, bool)

GetPromoteOk returns a tuple with the Promote field value and a boolean to check if the value has been set.

func (*EngineOption) GetRebuildInstance

func (o *EngineOption) GetRebuildInstance() []ComponentOpsOption

GetRebuildInstance returns the RebuildInstance field value if set, zero value otherwise.

func (*EngineOption) GetRebuildInstanceOk

func (o *EngineOption) GetRebuildInstanceOk() (*[]ComponentOpsOption, bool)

GetRebuildInstanceOk returns a tuple with the RebuildInstance field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EngineOption) GetRestart

func (o *EngineOption) GetRestart() []ComponentOpsOption

GetRestart returns the Restart field value.

func (*EngineOption) GetRestartOk

func (o *EngineOption) GetRestartOk() (*[]ComponentOpsOption, bool)

GetRestartOk returns a tuple with the Restart field value and a boolean to check if the value has been set.

func (*EngineOption) GetStart

func (o *EngineOption) GetStart() []ComponentOpsOption

GetStart returns the Start field value.

func (*EngineOption) GetStartOk

func (o *EngineOption) GetStartOk() (*[]ComponentOpsOption, bool)

GetStartOk returns a tuple with the Start field value and a boolean to check if the value has been set.

func (*EngineOption) GetStop

func (o *EngineOption) GetStop() []ComponentOpsOption

GetStop returns the Stop field value.

func (*EngineOption) GetStopOk

func (o *EngineOption) GetStopOk() (*[]ComponentOpsOption, bool)

GetStopOk returns a tuple with the Stop field value and a boolean to check if the value has been set.

func (*EngineOption) GetStorageExpansion

func (o *EngineOption) GetStorageExpansion() []ComponentOpsOption

GetStorageExpansion returns the StorageExpansion field value.

func (*EngineOption) GetStorageExpansionOk

func (o *EngineOption) GetStorageExpansionOk() (*[]ComponentOpsOption, bool)

GetStorageExpansionOk returns a tuple with the StorageExpansion field value and a boolean to check if the value has been set.

func (*EngineOption) GetTitle

func (o *EngineOption) GetTitle() string

GetTitle returns the Title field value.

func (*EngineOption) GetTitleOk

func (o *EngineOption) GetTitleOk() (*string, bool)

GetTitleOk returns a tuple with the Title field value and a boolean to check if the value has been set.

func (*EngineOption) GetVersions

func (o *EngineOption) GetVersions() []string

GetVersions returns the Versions field value.

func (*EngineOption) GetVersionsOk

func (o *EngineOption) GetVersionsOk() (*[]string, bool)

GetVersionsOk returns a tuple with the Versions field value and a boolean to check if the value has been set.

func (*EngineOption) GetVscale

func (o *EngineOption) GetVscale() []ComponentOpsOption

GetVscale returns the Vscale field value.

func (*EngineOption) GetVscaleOk

func (o *EngineOption) GetVscaleOk() (*[]ComponentOpsOption, bool)

GetVscaleOk returns a tuple with the Vscale field value and a boolean to check if the value has been set.

func (*EngineOption) HasDatabase

func (o *EngineOption) HasDatabase() bool

HasDatabase returns a boolean if a field has been set.

func (*EngineOption) HasLicense

func (o *EngineOption) HasLicense() bool

HasLicense returns a boolean if a field has been set.

func (*EngineOption) HasMetrics added in v0.28.39

func (o *EngineOption) HasMetrics() bool

HasMetrics returns a boolean if a field has been set.

func (*EngineOption) HasRebuildInstance

func (o *EngineOption) HasRebuildInstance() bool

HasRebuildInstance returns a boolean if a field has been set.

func (EngineOption) MarshalJSON

func (o EngineOption) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*EngineOption) SetAccount

func (o *EngineOption) SetAccount(v AccountOption)

SetAccount sets field value.

func (*EngineOption) SetBackup

func (o *EngineOption) SetBackup(v BackupOption)

SetBackup sets field value.

func (*EngineOption) SetBench

func (o *EngineOption) SetBench(v BenchOption)

SetBench sets field value.

func (*EngineOption) SetComponents

func (o *EngineOption) SetComponents(v []ComponentOption)

SetComponents sets field value.

func (*EngineOption) SetDashboards

func (o *EngineOption) SetDashboards(v []DashboardOption)

SetDashboards sets field value.

func (*EngineOption) SetDatabase

func (o *EngineOption) SetDatabase(v DatabaseOption)

SetDatabase gets a reference to the given DatabaseOption and assigns it to the Database field.

func (*EngineOption) SetDescription

func (o *EngineOption) SetDescription(v LocalizedDescription)

SetDescription sets field value.

func (*EngineOption) SetDms

func (o *EngineOption) SetDms(v DmsOption)

SetDms sets field value.

func (*EngineOption) SetEndpoints

func (o *EngineOption) SetEndpoints(v []EndpointOption)

SetEndpoints sets field value.

func (*EngineOption) SetEngineName

func (o *EngineOption) SetEngineName(v string)

SetEngineName sets field value.

func (*EngineOption) SetHscale

func (o *EngineOption) SetHscale(v []ComponentOpsOption)

SetHscale sets field value.

func (*EngineOption) SetLicense

func (o *EngineOption) SetLicense(v EngineOptionLicense)

SetLicense gets a reference to the given EngineOptionLicense and assigns it to the License field.

func (*EngineOption) SetLogs

func (o *EngineOption) SetLogs(v []LogOption)

SetLogs sets field value.

func (*EngineOption) SetMetrics

func (o *EngineOption) SetMetrics(v MetricsOption)

SetMetrics gets a reference to the given MetricsOption and assigns it to the Metrics field.

func (*EngineOption) SetModes

func (o *EngineOption) SetModes(v []ModeOption)

SetModes sets field value.

func (*EngineOption) SetParameters

func (o *EngineOption) SetParameters(v []ParameterOption)

SetParameters sets field value.

func (*EngineOption) SetPromote

func (o *EngineOption) SetPromote(v []ComponentOpsOption)

SetPromote sets field value.

func (*EngineOption) SetRebuildInstance

func (o *EngineOption) SetRebuildInstance(v []ComponentOpsOption)

SetRebuildInstance gets a reference to the given []ComponentOpsOption and assigns it to the RebuildInstance field.

func (*EngineOption) SetRestart

func (o *EngineOption) SetRestart(v []ComponentOpsOption)

SetRestart sets field value.

func (*EngineOption) SetStart

func (o *EngineOption) SetStart(v []ComponentOpsOption)

SetStart sets field value.

func (*EngineOption) SetStop

func (o *EngineOption) SetStop(v []ComponentOpsOption)

SetStop sets field value.

func (*EngineOption) SetStorageExpansion

func (o *EngineOption) SetStorageExpansion(v []ComponentOpsOption)

SetStorageExpansion sets field value.

func (*EngineOption) SetTitle

func (o *EngineOption) SetTitle(v string)

SetTitle sets field value.

func (*EngineOption) SetVersions

func (o *EngineOption) SetVersions(v []string)

SetVersions sets field value.

func (*EngineOption) SetVscale

func (o *EngineOption) SetVscale(v []ComponentOpsOption)

SetVscale sets field value.

func (*EngineOption) UnmarshalJSON

func (o *EngineOption) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type EngineOptionApi

type EngineOptionApi common.Service

EngineOptionApi service type

func NewEngineOptionApi

func NewEngineOptionApi(client *common.APIClient) *EngineOptionApi

NewEngineOptionApi Returns NewEngineOptionApi.

func (*EngineOptionApi) GetEngineOption

func (a *EngineOptionApi) GetEngineOption(ctx _context.Context, engineName string) (EngineOption, *_nethttp.Response, error)

GetEngineOption Get engineOption. Get a engineOption detail

func (*EngineOptionApi) ListEngineOptions

func (a *EngineOptionApi) ListEngineOptions(ctx _context.Context) (EngineOptionList, *_nethttp.Response, error)

ListEngineOptions List all engineOptions. list all engineOptions

func (*EngineOptionApi) ListUpgradeableServiceVersion

func (a *EngineOptionApi) ListUpgradeableServiceVersion(ctx _context.Context, clusterName string, orgName string, component string) (EngineServiceVersions, *_nethttp.Response, error)

ListUpgradeableServiceVersion list upgraded service version of the component. list upgraded service version of the component

type EngineOptionLicense

type EngineOptionLicense struct {
	// Indicate whether the current cluster requires users to input the license
	Required *bool `json:"required,omitempty"`
	// support to refer the cluster name with variable ${clusterName}
	SecretName string `json:"secretName"`
	// the license file name
	FileName   string          `json:"fileName"`
	Components []LicenseOption `json:"components,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewEngineOptionLicense

func NewEngineOptionLicense(secretName string, fileName string) *EngineOptionLicense

NewEngineOptionLicense instantiates a new EngineOptionLicense 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 NewEngineOptionLicenseWithDefaults

func NewEngineOptionLicenseWithDefaults() *EngineOptionLicense

NewEngineOptionLicenseWithDefaults instantiates a new EngineOptionLicense 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 (*EngineOptionLicense) GetComponents

func (o *EngineOptionLicense) GetComponents() []LicenseOption

GetComponents returns the Components field value if set, zero value otherwise.

func (*EngineOptionLicense) GetComponentsOk

func (o *EngineOptionLicense) GetComponentsOk() (*[]LicenseOption, bool)

GetComponentsOk returns a tuple with the Components field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EngineOptionLicense) GetFileName

func (o *EngineOptionLicense) GetFileName() string

GetFileName returns the FileName field value.

func (*EngineOptionLicense) GetFileNameOk

func (o *EngineOptionLicense) GetFileNameOk() (*string, bool)

GetFileNameOk returns a tuple with the FileName field value and a boolean to check if the value has been set.

func (*EngineOptionLicense) GetRequired

func (o *EngineOptionLicense) GetRequired() bool

GetRequired returns the Required field value if set, zero value otherwise.

func (*EngineOptionLicense) GetRequiredOk

func (o *EngineOptionLicense) GetRequiredOk() (*bool, bool)

GetRequiredOk returns a tuple with the Required field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EngineOptionLicense) GetSecretName

func (o *EngineOptionLicense) GetSecretName() string

GetSecretName returns the SecretName field value.

func (*EngineOptionLicense) GetSecretNameOk

func (o *EngineOptionLicense) GetSecretNameOk() (*string, bool)

GetSecretNameOk returns a tuple with the SecretName field value and a boolean to check if the value has been set.

func (*EngineOptionLicense) HasComponents

func (o *EngineOptionLicense) HasComponents() bool

HasComponents returns a boolean if a field has been set.

func (*EngineOptionLicense) HasRequired

func (o *EngineOptionLicense) HasRequired() bool

HasRequired returns a boolean if a field has been set.

func (EngineOptionLicense) MarshalJSON

func (o EngineOptionLicense) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*EngineOptionLicense) SetComponents

func (o *EngineOptionLicense) SetComponents(v []LicenseOption)

SetComponents gets a reference to the given []LicenseOption and assigns it to the Components field.

func (*EngineOptionLicense) SetFileName

func (o *EngineOptionLicense) SetFileName(v string)

SetFileName sets field value.

func (*EngineOptionLicense) SetRequired

func (o *EngineOptionLicense) SetRequired(v bool)

SetRequired gets a reference to the given bool and assigns it to the Required field.

func (*EngineOptionLicense) SetSecretName

func (o *EngineOptionLicense) SetSecretName(v string)

SetSecretName sets field value.

func (*EngineOptionLicense) UnmarshalJSON

func (o *EngineOptionLicense) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type EngineOptionList

type EngineOptionList struct {
	// Items is the list of engineOption objects in the list
	Items []EngineOption `json:"items"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewEngineOptionList

func NewEngineOptionList(items []EngineOption) *EngineOptionList

NewEngineOptionList instantiates a new EngineOptionList 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 NewEngineOptionListWithDefaults

func NewEngineOptionListWithDefaults() *EngineOptionList

NewEngineOptionListWithDefaults instantiates a new EngineOptionList 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 (*EngineOptionList) GetItems

func (o *EngineOptionList) GetItems() []EngineOption

GetItems returns the Items field value.

func (*EngineOptionList) GetItemsOk

func (o *EngineOptionList) GetItemsOk() (*[]EngineOption, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (EngineOptionList) MarshalJSON

func (o EngineOptionList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*EngineOptionList) SetItems

func (o *EngineOptionList) SetItems(v []EngineOption)

SetItems sets field value.

func (*EngineOptionList) UnmarshalJSON

func (o *EngineOptionList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type EngineOptionsMetricsQueryType

type EngineOptionsMetricsQueryType string

EngineOptionsMetricsQueryType Specifies the type of metrics query to be performed. 'instant' for a single point in time, 'range' for a time range.

const (
	EngineOptionsMetricsQueryTypeInstant EngineOptionsMetricsQueryType = "instant"
	EngineOptionsMetricsQueryTypeRange   EngineOptionsMetricsQueryType = "range"
)

List of EngineOptionsMetricsQueryType.

func NewEngineOptionsMetricsQueryTypeFromValue

func NewEngineOptionsMetricsQueryTypeFromValue(v string) (*EngineOptionsMetricsQueryType, error)

NewEngineOptionsMetricsQueryTypeFromValue returns a pointer to a valid EngineOptionsMetricsQueryType for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*EngineOptionsMetricsQueryType) GetAllowedValues

GetAllowedValues returns the list of possible values.

func (EngineOptionsMetricsQueryType) IsValid

func (v EngineOptionsMetricsQueryType) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (EngineOptionsMetricsQueryType) Ptr

Ptr returns reference to EngineOptionsMetricsQueryType value.

func (*EngineOptionsMetricsQueryType) UnmarshalJSON

func (v *EngineOptionsMetricsQueryType) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type EngineOptionsServicePattern

type EngineOptionsServicePattern string

EngineOptionsServicePattern service name pattern, e.g. ClusterName-ComponentName or .ClusterName`

const (
	EngineOptionsServicePatternClusterComponent        EngineOptionsServicePattern = "cluster-component"
	EngineOptionsServicePatternCluster                 EngineOptionsServicePattern = "cluster"
	EngineOptionsServicePatternClusterComponentService EngineOptionsServicePattern = "cluster-component-service"
)

List of EngineOptionsServicePattern.

func NewEngineOptionsServicePatternFromValue

func NewEngineOptionsServicePatternFromValue(v string) (*EngineOptionsServicePattern, error)

NewEngineOptionsServicePatternFromValue returns a pointer to a valid EngineOptionsServicePattern for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*EngineOptionsServicePattern) GetAllowedValues

GetAllowedValues returns the list of possible values.

func (EngineOptionsServicePattern) IsValid

func (v EngineOptionsServicePattern) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (EngineOptionsServicePattern) Ptr

Ptr returns reference to EngineOptionsServicePattern value.

func (*EngineOptionsServicePattern) UnmarshalJSON

func (v *EngineOptionsServicePattern) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type EngineServiceVersions

type EngineServiceVersions struct {
	// component type, refer to componentDef and support NamePrefix
	Component           *string                             `json:"component,omitempty"`
	UpgradeableVersions []string                            `json:"upgradeableVersions,omitempty"`
	Versions            []EngineServiceVersionsVersionsItem `json:"versions,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewEngineServiceVersions

func NewEngineServiceVersions() *EngineServiceVersions

NewEngineServiceVersions instantiates a new EngineServiceVersions 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 NewEngineServiceVersionsWithDefaults

func NewEngineServiceVersionsWithDefaults() *EngineServiceVersions

NewEngineServiceVersionsWithDefaults instantiates a new EngineServiceVersions 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 (*EngineServiceVersions) GetComponent

func (o *EngineServiceVersions) GetComponent() string

GetComponent returns the Component field value if set, zero value otherwise.

func (*EngineServiceVersions) GetComponentOk

func (o *EngineServiceVersions) GetComponentOk() (*string, bool)

GetComponentOk returns a tuple with the Component field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EngineServiceVersions) GetUpgradeableVersions

func (o *EngineServiceVersions) GetUpgradeableVersions() []string

GetUpgradeableVersions returns the UpgradeableVersions field value if set, zero value otherwise.

func (*EngineServiceVersions) GetUpgradeableVersionsOk

func (o *EngineServiceVersions) GetUpgradeableVersionsOk() (*[]string, bool)

GetUpgradeableVersionsOk returns a tuple with the UpgradeableVersions field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EngineServiceVersions) GetVersions

GetVersions returns the Versions field value if set, zero value otherwise.

func (*EngineServiceVersions) GetVersionsOk

GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EngineServiceVersions) HasComponent

func (o *EngineServiceVersions) HasComponent() bool

HasComponent returns a boolean if a field has been set.

func (*EngineServiceVersions) HasUpgradeableVersions

func (o *EngineServiceVersions) HasUpgradeableVersions() bool

HasUpgradeableVersions returns a boolean if a field has been set.

func (*EngineServiceVersions) HasVersions

func (o *EngineServiceVersions) HasVersions() bool

HasVersions returns a boolean if a field has been set.

func (EngineServiceVersions) MarshalJSON

func (o EngineServiceVersions) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*EngineServiceVersions) SetComponent

func (o *EngineServiceVersions) SetComponent(v string)

SetComponent gets a reference to the given string and assigns it to the Component field.

func (*EngineServiceVersions) SetUpgradeableVersions

func (o *EngineServiceVersions) SetUpgradeableVersions(v []string)

SetUpgradeableVersions gets a reference to the given []string and assigns it to the UpgradeableVersions field.

func (*EngineServiceVersions) SetVersions

SetVersions gets a reference to the given []EngineServiceVersionsVersionsItem and assigns it to the Versions field.

func (*EngineServiceVersions) UnmarshalJSON

func (o *EngineServiceVersions) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type EngineServiceVersionsVersionsItem

type EngineServiceVersionsVersionsItem struct {
	MajorVersion  *string  `json:"majorVersion,omitempty"`
	MinorVersions []string `json:"minorVersions,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewEngineServiceVersionsVersionsItem

func NewEngineServiceVersionsVersionsItem() *EngineServiceVersionsVersionsItem

NewEngineServiceVersionsVersionsItem instantiates a new EngineServiceVersionsVersionsItem 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 NewEngineServiceVersionsVersionsItemWithDefaults

func NewEngineServiceVersionsVersionsItemWithDefaults() *EngineServiceVersionsVersionsItem

NewEngineServiceVersionsVersionsItemWithDefaults instantiates a new EngineServiceVersionsVersionsItem 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 (*EngineServiceVersionsVersionsItem) GetMajorVersion

func (o *EngineServiceVersionsVersionsItem) GetMajorVersion() string

GetMajorVersion returns the MajorVersion field value if set, zero value otherwise.

func (*EngineServiceVersionsVersionsItem) GetMajorVersionOk

func (o *EngineServiceVersionsVersionsItem) GetMajorVersionOk() (*string, bool)

GetMajorVersionOk returns a tuple with the MajorVersion field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EngineServiceVersionsVersionsItem) GetMinorVersions

func (o *EngineServiceVersionsVersionsItem) GetMinorVersions() []string

GetMinorVersions returns the MinorVersions field value if set, zero value otherwise.

func (*EngineServiceVersionsVersionsItem) GetMinorVersionsOk

func (o *EngineServiceVersionsVersionsItem) GetMinorVersionsOk() (*[]string, bool)

GetMinorVersionsOk returns a tuple with the MinorVersions field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EngineServiceVersionsVersionsItem) HasMajorVersion

func (o *EngineServiceVersionsVersionsItem) HasMajorVersion() bool

HasMajorVersion returns a boolean if a field has been set.

func (*EngineServiceVersionsVersionsItem) HasMinorVersions

func (o *EngineServiceVersionsVersionsItem) HasMinorVersions() bool

HasMinorVersions returns a boolean if a field has been set.

func (EngineServiceVersionsVersionsItem) MarshalJSON

func (o EngineServiceVersionsVersionsItem) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*EngineServiceVersionsVersionsItem) SetMajorVersion

func (o *EngineServiceVersionsVersionsItem) SetMajorVersion(v string)

SetMajorVersion gets a reference to the given string and assigns it to the MajorVersion field.

func (*EngineServiceVersionsVersionsItem) SetMinorVersions

func (o *EngineServiceVersionsVersionsItem) SetMinorVersions(v []string)

SetMinorVersions gets a reference to the given []string and assigns it to the MinorVersions field.

func (*EngineServiceVersionsVersionsItem) UnmarshalJSON

func (o *EngineServiceVersionsVersionsItem) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type EngineStatus

type EngineStatus string

EngineStatus engine addon status in K8s

const (
	EngineStatusDisabled  EngineStatus = "Disabled"
	EngineStatusEnabled   EngineStatus = "Enabled"
	EngineStatusFailed    EngineStatus = "Failed"
	EngineStatusEnabling  EngineStatus = "Enabling"
	EngineStatusDisabling EngineStatus = "Disabling"
)

List of EngineStatus.

func NewEngineStatusFromValue

func NewEngineStatusFromValue(v string) (*EngineStatus, error)

NewEngineStatusFromValue returns a pointer to a valid EngineStatus for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*EngineStatus) GetAllowedValues

func (v *EngineStatus) GetAllowedValues() []EngineStatus

GetAllowedValues returns the list of possible values.

func (EngineStatus) IsValid

func (v EngineStatus) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (EngineStatus) Ptr

func (v EngineStatus) Ptr() *EngineStatus

Ptr returns reference to EngineStatus value.

func (*EngineStatus) UnmarshalJSON

func (v *EngineStatus) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type EngineType

type EngineType string

EngineType engine type

const (
	EngineTypeRdbms        EngineType = "RDBMS"
	EngineTypeSearchEngine EngineType = "search-engine"
	EngineTypeKeyValue     EngineType = "key-value"
	EngineTypeTimeSeries   EngineType = "time-series"
	EngineTypeStreaming    EngineType = "streaming"
	EngineTypeLlm          EngineType = "LLM"
	EngineTypeVector       EngineType = "vector"
	EngineTypeDocument     EngineType = "document"
	EngineTypeGraph        EngineType = "graph"
	EngineTypeOther        EngineType = "other"
)

List of EngineType.

func NewEngineTypeFromValue

func NewEngineTypeFromValue(v string) (*EngineType, error)

NewEngineTypeFromValue returns a pointer to a valid EngineType for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*EngineType) GetAllowedValues

func (v *EngineType) GetAllowedValues() []EngineType

GetAllowedValues returns the list of possible values.

func (EngineType) IsValid

func (v EngineType) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (EngineType) Ptr

func (v EngineType) Ptr() *EngineType

Ptr returns reference to EngineType value.

func (*EngineType) UnmarshalJSON

func (v *EngineType) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type Environment

type Environment struct {
	// Provider
	Provider string `json:"provider"`
	// Region
	Region string `json:"region"`
	// Availability Zones
	AvailabilityZones []string `json:"availabilityZones"`
	// Configuration of networking for this environment
	NetworkConfig *NetworkConfig `json:"networkConfig,omitempty"`
	// CreatedAt is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists
	CreatedAt time.Time `json:"createdAt"`
	// The description of the organization
	Description *string `json:"description,omitempty"`
	// The display name of the context
	DisplayName *string `json:"displayName,omitempty"`
	// environment id
	Id uuid.UUID `json:"id"`
	// The full, unique name of this Object in the format contexts/{name}, set during creation. name must be a valid RFC 1123 compliant DNS label
	Name string `json:"name"`
	// Organization Name
	OrgName string `json:"orgName"`
	// Output only. State of the Environment resource
	State EnvironmentState `json:"state"`
	// Type of this environment
	Type EnvironmentType `json:"type"`
	// UpdatedAt is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists
	UpdatedAt time.Time `json:"updatedAt"`
	// Image registry used by the environment
	ImageRegistry *string `json:"imageRegistry,omitempty"`
	// extra info for environment
	ExtraInfo *string `json:"extraInfo,omitempty"`
	// namespace info for environment
	Namespaces []string `json:"namespaces,omitempty"`
	// Enable pod antiaffinity for cluster
	PodAntiAffinityEnabled *bool `json:"podAntiAffinityEnabled,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

Environment Environment info

func NewEnvironment

func NewEnvironment(provider string, region string, availabilityZones []string, createdAt time.Time, id uuid.UUID, name string, orgName string, state EnvironmentState, typeVar EnvironmentType, updatedAt time.Time) *Environment

NewEnvironment instantiates a new Environment 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 NewEnvironmentWithDefaults

func NewEnvironmentWithDefaults() *Environment

NewEnvironmentWithDefaults instantiates a new Environment 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 (*Environment) GetAvailabilityZones

func (o *Environment) GetAvailabilityZones() []string

GetAvailabilityZones returns the AvailabilityZones field value.

func (*Environment) GetAvailabilityZonesOk

func (o *Environment) GetAvailabilityZonesOk() (*[]string, bool)

GetAvailabilityZonesOk returns a tuple with the AvailabilityZones field value and a boolean to check if the value has been set.

func (*Environment) GetCreatedAt

func (o *Environment) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field value.

func (*Environment) GetCreatedAtOk

func (o *Environment) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value and a boolean to check if the value has been set.

func (*Environment) GetDescription

func (o *Environment) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*Environment) GetDescriptionOk

func (o *Environment) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Environment) GetDisplayName

func (o *Environment) GetDisplayName() string

GetDisplayName returns the DisplayName field value if set, zero value otherwise.

func (*Environment) GetDisplayNameOk

func (o *Environment) GetDisplayNameOk() (*string, bool)

GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Environment) GetExtraInfo

func (o *Environment) GetExtraInfo() string

GetExtraInfo returns the ExtraInfo field value if set, zero value otherwise.

func (*Environment) GetExtraInfoOk

func (o *Environment) GetExtraInfoOk() (*string, bool)

GetExtraInfoOk returns a tuple with the ExtraInfo field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Environment) GetId

func (o *Environment) GetId() uuid.UUID

GetId returns the Id field value.

func (*Environment) GetIdOk

func (o *Environment) GetIdOk() (*uuid.UUID, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*Environment) GetImageRegistry

func (o *Environment) GetImageRegistry() string

GetImageRegistry returns the ImageRegistry field value if set, zero value otherwise.

func (*Environment) GetImageRegistryOk

func (o *Environment) GetImageRegistryOk() (*string, bool)

GetImageRegistryOk returns a tuple with the ImageRegistry field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Environment) GetName

func (o *Environment) GetName() string

GetName returns the Name field value.

func (*Environment) GetNameOk

func (o *Environment) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*Environment) GetNamespaces

func (o *Environment) GetNamespaces() []string

GetNamespaces returns the Namespaces field value if set, zero value otherwise.

func (*Environment) GetNamespacesOk

func (o *Environment) GetNamespacesOk() (*[]string, bool)

GetNamespacesOk returns a tuple with the Namespaces field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Environment) GetNetworkConfig

func (o *Environment) GetNetworkConfig() NetworkConfig

GetNetworkConfig returns the NetworkConfig field value if set, zero value otherwise.

func (*Environment) GetNetworkConfigOk

func (o *Environment) GetNetworkConfigOk() (*NetworkConfig, bool)

GetNetworkConfigOk returns a tuple with the NetworkConfig field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Environment) GetOrgName

func (o *Environment) GetOrgName() string

GetOrgName returns the OrgName field value.

func (*Environment) GetOrgNameOk

func (o *Environment) GetOrgNameOk() (*string, bool)

GetOrgNameOk returns a tuple with the OrgName field value and a boolean to check if the value has been set.

func (*Environment) GetPodAntiAffinityEnabled

func (o *Environment) GetPodAntiAffinityEnabled() bool

GetPodAntiAffinityEnabled returns the PodAntiAffinityEnabled field value if set, zero value otherwise.

func (*Environment) GetPodAntiAffinityEnabledOk

func (o *Environment) GetPodAntiAffinityEnabledOk() (*bool, bool)

GetPodAntiAffinityEnabledOk returns a tuple with the PodAntiAffinityEnabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Environment) GetProvider

func (o *Environment) GetProvider() string

GetProvider returns the Provider field value.

func (*Environment) GetProviderOk

func (o *Environment) GetProviderOk() (*string, bool)

GetProviderOk returns a tuple with the Provider field value and a boolean to check if the value has been set.

func (*Environment) GetRegion

func (o *Environment) GetRegion() string

GetRegion returns the Region field value.

func (*Environment) GetRegionOk

func (o *Environment) GetRegionOk() (*string, bool)

GetRegionOk returns a tuple with the Region field value and a boolean to check if the value has been set.

func (*Environment) GetState

func (o *Environment) GetState() EnvironmentState

GetState returns the State field value.

func (*Environment) GetStateOk

func (o *Environment) GetStateOk() (*EnvironmentState, bool)

GetStateOk returns a tuple with the State field value and a boolean to check if the value has been set.

func (*Environment) GetType

func (o *Environment) GetType() EnvironmentType

GetType returns the Type field value.

func (*Environment) GetTypeOk

func (o *Environment) GetTypeOk() (*EnvironmentType, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (*Environment) GetUpdatedAt

func (o *Environment) GetUpdatedAt() time.Time

GetUpdatedAt returns the UpdatedAt field value.

func (*Environment) GetUpdatedAtOk

func (o *Environment) GetUpdatedAtOk() (*time.Time, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value and a boolean to check if the value has been set.

func (*Environment) HasDescription

func (o *Environment) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*Environment) HasDisplayName

func (o *Environment) HasDisplayName() bool

HasDisplayName returns a boolean if a field has been set.

func (*Environment) HasExtraInfo

func (o *Environment) HasExtraInfo() bool

HasExtraInfo returns a boolean if a field has been set.

func (*Environment) HasImageRegistry

func (o *Environment) HasImageRegistry() bool

HasImageRegistry returns a boolean if a field has been set.

func (*Environment) HasNamespaces

func (o *Environment) HasNamespaces() bool

HasNamespaces returns a boolean if a field has been set.

func (*Environment) HasNetworkConfig

func (o *Environment) HasNetworkConfig() bool

HasNetworkConfig returns a boolean if a field has been set.

func (*Environment) HasPodAntiAffinityEnabled

func (o *Environment) HasPodAntiAffinityEnabled() bool

HasPodAntiAffinityEnabled returns a boolean if a field has been set.

func (Environment) MarshalJSON

func (o Environment) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*Environment) SetAvailabilityZones

func (o *Environment) SetAvailabilityZones(v []string)

SetAvailabilityZones sets field value.

func (*Environment) SetCreatedAt

func (o *Environment) SetCreatedAt(v time.Time)

SetCreatedAt sets field value.

func (*Environment) SetDescription

func (o *Environment) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*Environment) SetDisplayName

func (o *Environment) SetDisplayName(v string)

SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.

func (*Environment) SetExtraInfo

func (o *Environment) SetExtraInfo(v string)

SetExtraInfo gets a reference to the given string and assigns it to the ExtraInfo field.

func (*Environment) SetId

func (o *Environment) SetId(v uuid.UUID)

SetId sets field value.

func (*Environment) SetImageRegistry

func (o *Environment) SetImageRegistry(v string)

SetImageRegistry gets a reference to the given string and assigns it to the ImageRegistry field.

func (*Environment) SetName

func (o *Environment) SetName(v string)

SetName sets field value.

func (*Environment) SetNamespaces

func (o *Environment) SetNamespaces(v []string)

SetNamespaces gets a reference to the given []string and assigns it to the Namespaces field.

func (*Environment) SetNetworkConfig

func (o *Environment) SetNetworkConfig(v NetworkConfig)

SetNetworkConfig gets a reference to the given NetworkConfig and assigns it to the NetworkConfig field.

func (*Environment) SetOrgName

func (o *Environment) SetOrgName(v string)

SetOrgName sets field value.

func (*Environment) SetPodAntiAffinityEnabled

func (o *Environment) SetPodAntiAffinityEnabled(v bool)

SetPodAntiAffinityEnabled gets a reference to the given bool and assigns it to the PodAntiAffinityEnabled field.

func (*Environment) SetProvider

func (o *Environment) SetProvider(v string)

SetProvider sets field value.

func (*Environment) SetRegion

func (o *Environment) SetRegion(v string)

SetRegion sets field value.

func (*Environment) SetState

func (o *Environment) SetState(v EnvironmentState)

SetState sets field value.

func (*Environment) SetType

func (o *Environment) SetType(v EnvironmentType)

SetType sets field value.

func (*Environment) SetUpdatedAt

func (o *Environment) SetUpdatedAt(v time.Time)

SetUpdatedAt sets field value.

func (*Environment) UnmarshalJSON

func (o *Environment) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type EnvironmentApi

type EnvironmentApi common.Service

EnvironmentApi service type

func NewEnvironmentApi

func NewEnvironmentApi(client *common.APIClient) *EnvironmentApi

NewEnvironmentApi Returns NewEnvironmentApi.

func (*EnvironmentApi) FilterEnvironment

func (a *EnvironmentApi) FilterEnvironment(ctx _context.Context, orgName string, engineName string, version string) (EnvironmentList, *_nethttp.Response, error)

FilterEnvironment List environments. List environments

func (*EnvironmentApi) GetEnvironment

func (a *EnvironmentApi) GetEnvironment(ctx _context.Context, orgName string, environmentName string) (Environment, *_nethttp.Response, error)

GetEnvironment Get environment.

func (*EnvironmentApi) ListEnvNodeZone

func (a *EnvironmentApi) ListEnvNodeZone(ctx _context.Context, orgName string, environmentName string) (ZoneList, *_nethttp.Response, error)

ListEnvNodeZone List the availability zones where the environment's nodes are located. List available zones of an environment

func (*EnvironmentApi) ListEnvironment

func (a *EnvironmentApi) ListEnvironment(ctx _context.Context, orgName string) (EnvironmentList, *_nethttp.Response, error)

ListEnvironment List environments. List environments

func (*EnvironmentApi) ListNodeGroup

func (a *EnvironmentApi) ListNodeGroup(ctx _context.Context, environmentName string) (NodeGroup, *_nethttp.Response, error)

ListNodeGroup List environment node group.

type EnvironmentList

type EnvironmentList struct {
	// Items is the list of Environment objects in the list
	Items []Environment `json:"items"`
	// PageResult info
	PageResult *PageResult `json:"pageResult,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

EnvironmentList EnvironmentList is a list of Environments

func NewEnvironmentList

func NewEnvironmentList(items []Environment) *EnvironmentList

NewEnvironmentList instantiates a new EnvironmentList 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 NewEnvironmentListWithDefaults

func NewEnvironmentListWithDefaults() *EnvironmentList

NewEnvironmentListWithDefaults instantiates a new EnvironmentList 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 (*EnvironmentList) GetItems

func (o *EnvironmentList) GetItems() []Environment

GetItems returns the Items field value.

func (*EnvironmentList) GetItemsOk

func (o *EnvironmentList) GetItemsOk() (*[]Environment, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (*EnvironmentList) GetPageResult

func (o *EnvironmentList) GetPageResult() PageResult

GetPageResult returns the PageResult field value if set, zero value otherwise.

func (*EnvironmentList) GetPageResultOk

func (o *EnvironmentList) GetPageResultOk() (*PageResult, bool)

GetPageResultOk returns a tuple with the PageResult field value if set, nil otherwise and a boolean to check if the value has been set.

func (*EnvironmentList) HasPageResult

func (o *EnvironmentList) HasPageResult() bool

HasPageResult returns a boolean if a field has been set.

func (EnvironmentList) MarshalJSON

func (o EnvironmentList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*EnvironmentList) SetItems

func (o *EnvironmentList) SetItems(v []Environment)

SetItems sets field value.

func (*EnvironmentList) SetPageResult

func (o *EnvironmentList) SetPageResult(v PageResult)

SetPageResult gets a reference to the given PageResult and assigns it to the PageResult field.

func (*EnvironmentList) UnmarshalJSON

func (o *EnvironmentList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type EnvironmentState

type EnvironmentState string

EnvironmentState Output only. State of the Environment resource

const (
	EnvironmentStatePending      EnvironmentState = "PENDING"
	EnvironmentStateRegistered   EnvironmentState = "REGISTERED"
	EnvironmentStateProvisioning EnvironmentState = "PROVISIONING"
	EnvironmentStateNotready     EnvironmentState = "NOTREADY"
	EnvironmentStateReady        EnvironmentState = "READY"
	EnvironmentStateWarning      EnvironmentState = "WARNING"
	EnvironmentStateUnreachable  EnvironmentState = "UNREACHABLE"
	EnvironmentStateOutofstock   EnvironmentState = "OUTOFSTOCK"
)

List of EnvironmentState.

func NewEnvironmentStateFromValue

func NewEnvironmentStateFromValue(v string) (*EnvironmentState, error)

NewEnvironmentStateFromValue returns a pointer to a valid EnvironmentState for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*EnvironmentState) GetAllowedValues

func (v *EnvironmentState) GetAllowedValues() []EnvironmentState

GetAllowedValues returns the list of possible values.

func (EnvironmentState) IsValid

func (v EnvironmentState) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (EnvironmentState) Ptr

Ptr returns reference to EnvironmentState value.

func (*EnvironmentState) UnmarshalJSON

func (v *EnvironmentState) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type EnvironmentType

type EnvironmentType string

EnvironmentType Type of this environment

const (
	EnvironmentTypePublic  EnvironmentType = "public"
	EnvironmentTypePrivate EnvironmentType = "private"
)

List of EnvironmentType.

func NewEnvironmentTypeFromValue

func NewEnvironmentTypeFromValue(v string) (*EnvironmentType, error)

NewEnvironmentTypeFromValue returns a pointer to a valid EnvironmentType for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*EnvironmentType) GetAllowedValues

func (v *EnvironmentType) GetAllowedValues() []EnvironmentType

GetAllowedValues returns the list of possible values.

func (EnvironmentType) IsValid

func (v EnvironmentType) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (EnvironmentType) Ptr

Ptr returns reference to EnvironmentType value.

func (*EnvironmentType) UnmarshalJSON

func (v *EnvironmentType) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type Event

type Event struct {
	// ID of the event
	Id *string `json:"id,omitempty"`
	// ID of the resource
	ResourceId *string `json:"resourceId,omitempty"`
	// Type of the resource
	ResourceType *EventResourceType `json:"resourceType,omitempty"`
	// Name of the resource
	ResourceName *string `json:"resourceName,omitempty"`
	// operator of the event, if source is user, operator is user name; if source is system, operator is system name
	Operator *string `json:"operator,omitempty"`
	// The user ID of the operator
	OperatorId *string `json:"operatorId,omitempty"`
	// Details will include the extra event info, such as update cluster which field, OpsRequest content etc
	Details *string `json:"details,omitempty"`
	// hasTask is true if the event has a task
	HasTask *bool `json:"hasTask,omitempty"`
	// result of the operation event
	Result *string `json:"result,omitempty"`
	// Event name is OpsRequest name or cluster operation name
	EventName *string `json:"eventName,omitempty"`
	// result status of the operation event
	ResultStatus *EventResultStatus `json:"resultStatus,omitempty"`
	// event source
	Source *EventSource `json:"source,omitempty"`
	// event end time
	End *time.Time `json:"end,omitempty"`
	// event start time
	Start *time.Time `json:"start,omitempty"`
	// event created time
	CreatedAt *time.Time `json:"createdAt,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

Event event is the information of operation event

func NewEvent

func NewEvent() *Event

NewEvent instantiates a new Event 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 NewEventWithDefaults

func NewEventWithDefaults() *Event

NewEventWithDefaults instantiates a new Event 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 (*Event) GetCreatedAt

func (o *Event) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.

func (*Event) GetCreatedAtOk

func (o *Event) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Event) GetDetails

func (o *Event) GetDetails() string

GetDetails returns the Details field value if set, zero value otherwise.

func (*Event) GetDetailsOk

func (o *Event) GetDetailsOk() (*string, bool)

GetDetailsOk returns a tuple with the Details field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Event) GetEnd

func (o *Event) GetEnd() time.Time

GetEnd returns the End field value if set, zero value otherwise.

func (*Event) GetEndOk

func (o *Event) GetEndOk() (*time.Time, bool)

GetEndOk returns a tuple with the End field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Event) GetEventName

func (o *Event) GetEventName() string

GetEventName returns the EventName field value if set, zero value otherwise.

func (*Event) GetEventNameOk

func (o *Event) GetEventNameOk() (*string, bool)

GetEventNameOk returns a tuple with the EventName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Event) GetHasTask

func (o *Event) GetHasTask() bool

GetHasTask returns the HasTask field value if set, zero value otherwise.

func (*Event) GetHasTaskOk

func (o *Event) GetHasTaskOk() (*bool, bool)

GetHasTaskOk returns a tuple with the HasTask field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Event) GetId

func (o *Event) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*Event) GetIdOk

func (o *Event) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Event) GetOperator

func (o *Event) GetOperator() string

GetOperator returns the Operator field value if set, zero value otherwise.

func (*Event) GetOperatorId

func (o *Event) GetOperatorId() string

GetOperatorId returns the OperatorId field value if set, zero value otherwise.

func (*Event) GetOperatorIdOk

func (o *Event) GetOperatorIdOk() (*string, bool)

GetOperatorIdOk returns a tuple with the OperatorId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Event) GetOperatorOk

func (o *Event) GetOperatorOk() (*string, bool)

GetOperatorOk returns a tuple with the Operator field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Event) GetResourceId

func (o *Event) GetResourceId() string

GetResourceId returns the ResourceId field value if set, zero value otherwise.

func (*Event) GetResourceIdOk

func (o *Event) GetResourceIdOk() (*string, bool)

GetResourceIdOk returns a tuple with the ResourceId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Event) GetResourceName

func (o *Event) GetResourceName() string

GetResourceName returns the ResourceName field value if set, zero value otherwise.

func (*Event) GetResourceNameOk

func (o *Event) GetResourceNameOk() (*string, bool)

GetResourceNameOk returns a tuple with the ResourceName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Event) GetResourceType

func (o *Event) GetResourceType() EventResourceType

GetResourceType returns the ResourceType field value if set, zero value otherwise.

func (*Event) GetResourceTypeOk

func (o *Event) GetResourceTypeOk() (*EventResourceType, bool)

GetResourceTypeOk returns a tuple with the ResourceType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Event) GetResult

func (o *Event) GetResult() string

GetResult returns the Result field value if set, zero value otherwise.

func (*Event) GetResultOk

func (o *Event) GetResultOk() (*string, bool)

GetResultOk returns a tuple with the Result field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Event) GetResultStatus

func (o *Event) GetResultStatus() EventResultStatus

GetResultStatus returns the ResultStatus field value if set, zero value otherwise.

func (*Event) GetResultStatusOk

func (o *Event) GetResultStatusOk() (*EventResultStatus, bool)

GetResultStatusOk returns a tuple with the ResultStatus field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Event) GetSource

func (o *Event) GetSource() EventSource

GetSource returns the Source field value if set, zero value otherwise.

func (*Event) GetSourceOk

func (o *Event) GetSourceOk() (*EventSource, bool)

GetSourceOk returns a tuple with the Source field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Event) GetStart

func (o *Event) GetStart() time.Time

GetStart returns the Start field value if set, zero value otherwise.

func (*Event) GetStartOk

func (o *Event) GetStartOk() (*time.Time, bool)

GetStartOk returns a tuple with the Start field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Event) HasCreatedAt

func (o *Event) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*Event) HasDetails

func (o *Event) HasDetails() bool

HasDetails returns a boolean if a field has been set.

func (*Event) HasEnd

func (o *Event) HasEnd() bool

HasEnd returns a boolean if a field has been set.

func (*Event) HasEventName

func (o *Event) HasEventName() bool

HasEventName returns a boolean if a field has been set.

func (*Event) HasHasTask

func (o *Event) HasHasTask() bool

HasHasTask returns a boolean if a field has been set.

func (*Event) HasId

func (o *Event) HasId() bool

HasId returns a boolean if a field has been set.

func (*Event) HasOperator

func (o *Event) HasOperator() bool

HasOperator returns a boolean if a field has been set.

func (*Event) HasOperatorId

func (o *Event) HasOperatorId() bool

HasOperatorId returns a boolean if a field has been set.

func (*Event) HasResourceId

func (o *Event) HasResourceId() bool

HasResourceId returns a boolean if a field has been set.

func (*Event) HasResourceName

func (o *Event) HasResourceName() bool

HasResourceName returns a boolean if a field has been set.

func (*Event) HasResourceType

func (o *Event) HasResourceType() bool

HasResourceType returns a boolean if a field has been set.

func (*Event) HasResult

func (o *Event) HasResult() bool

HasResult returns a boolean if a field has been set.

func (*Event) HasResultStatus

func (o *Event) HasResultStatus() bool

HasResultStatus returns a boolean if a field has been set.

func (*Event) HasSource

func (o *Event) HasSource() bool

HasSource returns a boolean if a field has been set.

func (*Event) HasStart

func (o *Event) HasStart() bool

HasStart returns a boolean if a field has been set.

func (Event) MarshalJSON

func (o Event) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*Event) SetCreatedAt

func (o *Event) SetCreatedAt(v time.Time)

SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.

func (*Event) SetDetails

func (o *Event) SetDetails(v string)

SetDetails gets a reference to the given string and assigns it to the Details field.

func (*Event) SetEnd

func (o *Event) SetEnd(v time.Time)

SetEnd gets a reference to the given time.Time and assigns it to the End field.

func (*Event) SetEventName

func (o *Event) SetEventName(v string)

SetEventName gets a reference to the given string and assigns it to the EventName field.

func (*Event) SetHasTask

func (o *Event) SetHasTask(v bool)

SetHasTask gets a reference to the given bool and assigns it to the HasTask field.

func (*Event) SetId

func (o *Event) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*Event) SetOperator

func (o *Event) SetOperator(v string)

SetOperator gets a reference to the given string and assigns it to the Operator field.

func (*Event) SetOperatorId

func (o *Event) SetOperatorId(v string)

SetOperatorId gets a reference to the given string and assigns it to the OperatorId field.

func (*Event) SetResourceId

func (o *Event) SetResourceId(v string)

SetResourceId gets a reference to the given string and assigns it to the ResourceId field.

func (*Event) SetResourceName

func (o *Event) SetResourceName(v string)

SetResourceName gets a reference to the given string and assigns it to the ResourceName field.

func (*Event) SetResourceType

func (o *Event) SetResourceType(v EventResourceType)

SetResourceType gets a reference to the given EventResourceType and assigns it to the ResourceType field.

func (*Event) SetResult

func (o *Event) SetResult(v string)

SetResult gets a reference to the given string and assigns it to the Result field.

func (*Event) SetResultStatus

func (o *Event) SetResultStatus(v EventResultStatus)

SetResultStatus gets a reference to the given EventResultStatus and assigns it to the ResultStatus field.

func (*Event) SetSource

func (o *Event) SetSource(v EventSource)

SetSource gets a reference to the given EventSource and assigns it to the Source field.

func (*Event) SetStart

func (o *Event) SetStart(v time.Time)

SetStart gets a reference to the given time.Time and assigns it to the Start field.

func (*Event) UnmarshalJSON

func (o *Event) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type EventApi

type EventApi common.Service

EventApi service type

func NewEventApi

func NewEventApi(client *common.APIClient) *EventApi

NewEventApi Returns NewEventApi.

func (*EventApi) QueryClusterEvents

func (a *EventApi) QueryClusterEvents(ctx _context.Context, orgName string, o ...QueryClusterEventsOptionalParameters) (EventList, *_nethttp.Response, error)

QueryClusterEvents Query operation events. Query events of clusters

type EventList

type EventList struct {
	// Items is the list of operation event objects in the list
	Items []Event `json:"items"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

EventList EventList is a list of operation event objects

func NewEventList

func NewEventList(items []Event) *EventList

NewEventList instantiates a new EventList 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 NewEventListWithDefaults

func NewEventListWithDefaults() *EventList

NewEventListWithDefaults instantiates a new EventList 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 (*EventList) GetItems

func (o *EventList) GetItems() []Event

GetItems returns the Items field value.

func (*EventList) GetItemsOk

func (o *EventList) GetItemsOk() (*[]Event, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (EventList) MarshalJSON

func (o EventList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*EventList) SetItems

func (o *EventList) SetItems(v []Event)

SetItems sets field value.

func (*EventList) UnmarshalJSON

func (o *EventList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type EventResourceType

type EventResourceType string

EventResourceType Type of the resource

const (
	EventResourceTypeCluster EventResourceType = "cluster"
	EventResourceTypeRole    EventResourceType = "role"
)

List of EventResourceType.

func NewEventResourceTypeFromValue

func NewEventResourceTypeFromValue(v string) (*EventResourceType, error)

NewEventResourceTypeFromValue returns a pointer to a valid EventResourceType for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*EventResourceType) GetAllowedValues

func (v *EventResourceType) GetAllowedValues() []EventResourceType

GetAllowedValues returns the list of possible values.

func (EventResourceType) IsValid

func (v EventResourceType) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (EventResourceType) Ptr

Ptr returns reference to EventResourceType value.

func (*EventResourceType) UnmarshalJSON

func (v *EventResourceType) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type EventResultStatus

type EventResultStatus string

EventResultStatus result status of the operation event

const (
	EventResultStatusSuccess EventResultStatus = "success"
	EventResultStatusFailed  EventResultStatus = "failed"
)

List of EventResultStatus.

func NewEventResultStatusFromValue

func NewEventResultStatusFromValue(v string) (*EventResultStatus, error)

NewEventResultStatusFromValue returns a pointer to a valid EventResultStatus for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*EventResultStatus) GetAllowedValues

func (v *EventResultStatus) GetAllowedValues() []EventResultStatus

GetAllowedValues returns the list of possible values.

func (EventResultStatus) IsValid

func (v EventResultStatus) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (EventResultStatus) Ptr

Ptr returns reference to EventResultStatus value.

func (*EventResultStatus) UnmarshalJSON

func (v *EventResultStatus) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type EventSource

type EventSource string

EventSource event source

const (
	EventSourceUser   EventSource = "user"
	EventSourceSystem EventSource = "system"
)

List of EventSource.

func NewEventSourceFromValue

func NewEventSourceFromValue(v string) (*EventSource, error)

NewEventSourceFromValue returns a pointer to a valid EventSource for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*EventSource) GetAllowedValues

func (v *EventSource) GetAllowedValues() []EventSource

GetAllowedValues returns the list of possible values.

func (EventSource) IsValid

func (v EventSource) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (EventSource) Ptr

func (v EventSource) Ptr() *EventSource

Ptr returns reference to EventSource value.

func (*EventSource) UnmarshalJSON

func (v *EventSource) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type Feature

type Feature struct {
	// Name of a feature
	Name string `json:"name"`
	// The enablement state for the feature
	Enabled bool `json:"enabled"`
	// Indicates the maturity level of a feature
	PreRelease FeaturePreReleaseType `json:"preRelease"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewFeature

func NewFeature(name string, enabled bool, preRelease FeaturePreReleaseType) *Feature

NewFeature instantiates a new Feature 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 NewFeatureWithDefaults

func NewFeatureWithDefaults() *Feature

NewFeatureWithDefaults instantiates a new Feature 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 (*Feature) GetEnabled

func (o *Feature) GetEnabled() bool

GetEnabled returns the Enabled field value.

func (*Feature) GetEnabledOk

func (o *Feature) GetEnabledOk() (*bool, bool)

GetEnabledOk returns a tuple with the Enabled field value and a boolean to check if the value has been set.

func (*Feature) GetName

func (o *Feature) GetName() string

GetName returns the Name field value.

func (*Feature) GetNameOk

func (o *Feature) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*Feature) GetPreRelease

func (o *Feature) GetPreRelease() FeaturePreReleaseType

GetPreRelease returns the PreRelease field value.

func (*Feature) GetPreReleaseOk

func (o *Feature) GetPreReleaseOk() (*FeaturePreReleaseType, bool)

GetPreReleaseOk returns a tuple with the PreRelease field value and a boolean to check if the value has been set.

func (Feature) MarshalJSON

func (o Feature) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*Feature) SetEnabled

func (o *Feature) SetEnabled(v bool)

SetEnabled sets field value.

func (*Feature) SetName

func (o *Feature) SetName(v string)

SetName sets field value.

func (*Feature) SetPreRelease

func (o *Feature) SetPreRelease(v FeaturePreReleaseType)

SetPreRelease sets field value.

func (*Feature) UnmarshalJSON

func (o *Feature) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type FeatureApi

type FeatureApi common.Service

FeatureApi service type

func NewFeatureApi

func NewFeatureApi(client *common.APIClient) *FeatureApi

NewFeatureApi Returns NewFeatureApi.

func (*FeatureApi) ListFeature

ListFeature Get feature list. Get feature list

func (*FeatureApi) ReadFeature

func (a *FeatureApi) ReadFeature(ctx _context.Context, featureName string) (Feature, *_nethttp.Response, error)

ReadFeature Get feature. Get feature

type FeatureList

type FeatureList struct {
	// The list of feature
	Items []Feature `json:"items"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

FeatureList A list of feature

func NewFeatureList

func NewFeatureList(items []Feature) *FeatureList

NewFeatureList instantiates a new FeatureList 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 NewFeatureListWithDefaults

func NewFeatureListWithDefaults() *FeatureList

NewFeatureListWithDefaults instantiates a new FeatureList 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 (*FeatureList) GetItems

func (o *FeatureList) GetItems() []Feature

GetItems returns the Items field value.

func (*FeatureList) GetItemsOk

func (o *FeatureList) GetItemsOk() (*[]Feature, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (FeatureList) MarshalJSON

func (o FeatureList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*FeatureList) SetItems

func (o *FeatureList) SetItems(v []Feature)

SetItems sets field value.

func (*FeatureList) UnmarshalJSON

func (o *FeatureList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type FeaturePreReleaseType

type FeaturePreReleaseType string

FeaturePreReleaseType Indicates the maturity level of a feature

const (
	FeaturePreReleaseTypeAlpha      FeaturePreReleaseType = "ALPHA"
	FeaturePreReleaseTypeBeta       FeaturePreReleaseType = "BETA"
	FeaturePreReleaseTypeEmpty      FeaturePreReleaseType = ""
	FeaturePreReleaseTypeDeprecated FeaturePreReleaseType = "DEPRECATED"
)

List of FeaturePreReleaseType.

func NewFeaturePreReleaseTypeFromValue

func NewFeaturePreReleaseTypeFromValue(v string) (*FeaturePreReleaseType, error)

NewFeaturePreReleaseTypeFromValue returns a pointer to a valid FeaturePreReleaseType for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*FeaturePreReleaseType) GetAllowedValues

func (v *FeaturePreReleaseType) GetAllowedValues() []FeaturePreReleaseType

GetAllowedValues returns the list of possible values.

func (FeaturePreReleaseType) IsValid

func (v FeaturePreReleaseType) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (FeaturePreReleaseType) Ptr

Ptr returns reference to FeaturePreReleaseType value.

func (*FeaturePreReleaseType) UnmarshalJSON

func (v *FeaturePreReleaseType) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type FileEntry

type FileEntry struct {
	// description the entry type
	IsDir *bool `json:"IsDir,omitempty"`
	// the full path of file
	FullPath *string `json:"fullPath,omitempty"`
	// the filename
	Filename *string `json:"filename,omitempty"`
	// the size of entry
	Size *int64 `json:"size,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

FileEntry the entry of files

func NewFileEntry

func NewFileEntry() *FileEntry

NewFileEntry instantiates a new FileEntry 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 NewFileEntryWithDefaults

func NewFileEntryWithDefaults() *FileEntry

NewFileEntryWithDefaults instantiates a new FileEntry 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 (*FileEntry) GetFilename

func (o *FileEntry) GetFilename() string

GetFilename returns the Filename field value if set, zero value otherwise.

func (*FileEntry) GetFilenameOk

func (o *FileEntry) GetFilenameOk() (*string, bool)

GetFilenameOk returns a tuple with the Filename field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FileEntry) GetFullPath

func (o *FileEntry) GetFullPath() string

GetFullPath returns the FullPath field value if set, zero value otherwise.

func (*FileEntry) GetFullPathOk

func (o *FileEntry) GetFullPathOk() (*string, bool)

GetFullPathOk returns a tuple with the FullPath field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FileEntry) GetIsDir

func (o *FileEntry) GetIsDir() bool

GetIsDir returns the IsDir field value if set, zero value otherwise.

func (*FileEntry) GetIsDirOk

func (o *FileEntry) GetIsDirOk() (*bool, bool)

GetIsDirOk returns a tuple with the IsDir field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FileEntry) GetSize

func (o *FileEntry) GetSize() int64

GetSize returns the Size field value if set, zero value otherwise.

func (*FileEntry) GetSizeOk

func (o *FileEntry) GetSizeOk() (*int64, bool)

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 (*FileEntry) HasFilename

func (o *FileEntry) HasFilename() bool

HasFilename returns a boolean if a field has been set.

func (*FileEntry) HasFullPath

func (o *FileEntry) HasFullPath() bool

HasFullPath returns a boolean if a field has been set.

func (*FileEntry) HasIsDir

func (o *FileEntry) HasIsDir() bool

HasIsDir returns a boolean if a field has been set.

func (*FileEntry) HasSize

func (o *FileEntry) HasSize() bool

HasSize returns a boolean if a field has been set.

func (FileEntry) MarshalJSON

func (o FileEntry) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*FileEntry) SetFilename

func (o *FileEntry) SetFilename(v string)

SetFilename gets a reference to the given string and assigns it to the Filename field.

func (*FileEntry) SetFullPath

func (o *FileEntry) SetFullPath(v string)

SetFullPath gets a reference to the given string and assigns it to the FullPath field.

func (*FileEntry) SetIsDir

func (o *FileEntry) SetIsDir(v bool)

SetIsDir gets a reference to the given bool and assigns it to the IsDir field.

func (*FileEntry) SetSize

func (o *FileEntry) SetSize(v int64)

SetSize gets a reference to the given int64 and assigns it to the Size field.

func (*FileEntry) UnmarshalJSON

func (o *FileEntry) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type FileEntryList

type FileEntryList struct {
	// Items is the list of backup entry
	Items []FileEntry `json:"items"`
	// PageResult info
	PageResult *PageResult `json:"pageResult,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

FileEntryList BackupEntryList is a list of entry

func NewFileEntryList

func NewFileEntryList(items []FileEntry) *FileEntryList

NewFileEntryList instantiates a new FileEntryList 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 NewFileEntryListWithDefaults

func NewFileEntryListWithDefaults() *FileEntryList

NewFileEntryListWithDefaults instantiates a new FileEntryList 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 (*FileEntryList) GetItems

func (o *FileEntryList) GetItems() []FileEntry

GetItems returns the Items field value.

func (*FileEntryList) GetItemsOk

func (o *FileEntryList) GetItemsOk() (*[]FileEntry, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (*FileEntryList) GetPageResult

func (o *FileEntryList) GetPageResult() PageResult

GetPageResult returns the PageResult field value if set, zero value otherwise.

func (*FileEntryList) GetPageResultOk

func (o *FileEntryList) GetPageResultOk() (*PageResult, bool)

GetPageResultOk returns a tuple with the PageResult field value if set, nil otherwise and a boolean to check if the value has been set.

func (*FileEntryList) HasPageResult

func (o *FileEntryList) HasPageResult() bool

HasPageResult returns a boolean if a field has been set.

func (FileEntryList) MarshalJSON

func (o FileEntryList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*FileEntryList) SetItems

func (o *FileEntryList) SetItems(v []FileEntry)

SetItems sets field value.

func (*FileEntryList) SetPageResult

func (o *FileEntryList) SetPageResult(v PageResult)

SetPageResult gets a reference to the given PageResult and assigns it to the PageResult field.

func (*FileEntryList) UnmarshalJSON

func (o *FileEntryList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type FloatOption

type FloatOption struct {
	Min     float64 `json:"min"`
	Max     float64 `json:"max"`
	Default float64 `json:"default"`
	Step    float64 `json:"step"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewFloatOption

func NewFloatOption(min float64, max float64, defaultVar float64, step float64) *FloatOption

NewFloatOption instantiates a new FloatOption 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 NewFloatOptionWithDefaults

func NewFloatOptionWithDefaults() *FloatOption

NewFloatOptionWithDefaults instantiates a new FloatOption 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 (*FloatOption) GetDefault

func (o *FloatOption) GetDefault() float64

GetDefault returns the Default field value.

func (*FloatOption) GetDefaultOk

func (o *FloatOption) GetDefaultOk() (*float64, bool)

GetDefaultOk returns a tuple with the Default field value and a boolean to check if the value has been set.

func (*FloatOption) GetMax

func (o *FloatOption) GetMax() float64

GetMax returns the Max field value.

func (*FloatOption) GetMaxOk

func (o *FloatOption) GetMaxOk() (*float64, bool)

GetMaxOk returns a tuple with the Max field value and a boolean to check if the value has been set.

func (*FloatOption) GetMin

func (o *FloatOption) GetMin() float64

GetMin returns the Min field value.

func (*FloatOption) GetMinOk

func (o *FloatOption) GetMinOk() (*float64, bool)

GetMinOk returns a tuple with the Min field value and a boolean to check if the value has been set.

func (*FloatOption) GetStep

func (o *FloatOption) GetStep() float64

GetStep returns the Step field value.

func (*FloatOption) GetStepOk

func (o *FloatOption) GetStepOk() (*float64, bool)

GetStepOk returns a tuple with the Step field value and a boolean to check if the value has been set.

func (FloatOption) MarshalJSON

func (o FloatOption) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*FloatOption) SetDefault

func (o *FloatOption) SetDefault(v float64)

SetDefault sets field value.

func (*FloatOption) SetMax

func (o *FloatOption) SetMax(v float64)

SetMax sets field value.

func (*FloatOption) SetMin

func (o *FloatOption) SetMin(v float64)

SetMin sets field value.

func (*FloatOption) SetStep

func (o *FloatOption) SetStep(v float64)

SetStep sets field value.

func (*FloatOption) UnmarshalJSON

func (o *FloatOption) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type GenerateDDLOptionalParameters

type GenerateDDLOptionalParameters struct {
	Body *interface{}
}

GenerateDDLOptionalParameters holds optional parameters for GenerateDDL.

func NewGenerateDDLOptionalParameters

func NewGenerateDDLOptionalParameters() *GenerateDDLOptionalParameters

NewGenerateDDLOptionalParameters creates an empty struct for parameters.

func (*GenerateDDLOptionalParameters) WithBody

func (r *GenerateDDLOptionalParameters) WithBody(body interface{}) *GenerateDDLOptionalParameters

WithBody sets the corresponding parameter name and returns the struct.

type GetBackupRepoOptionalParameters

type GetBackupRepoOptionalParameters struct {
	OrgName *string
}

GetBackupRepoOptionalParameters holds optional parameters for GetBackupRepo.

func NewGetBackupRepoOptionalParameters

func NewGetBackupRepoOptionalParameters() *GetBackupRepoOptionalParameters

NewGetBackupRepoOptionalParameters creates an empty struct for parameters.

func (*GetBackupRepoOptionalParameters) WithOrgName

WithOrgName sets the corresponding parameter name and returns the struct.

type GetClusterBackupPolicyOptionalParameters

type GetClusterBackupPolicyOptionalParameters struct {
	UseVolumeSnapshot *bool
}

GetClusterBackupPolicyOptionalParameters holds optional parameters for GetClusterBackupPolicy.

func NewGetClusterBackupPolicyOptionalParameters

func NewGetClusterBackupPolicyOptionalParameters() *GetClusterBackupPolicyOptionalParameters

NewGetClusterBackupPolicyOptionalParameters creates an empty struct for parameters.

func (*GetClusterBackupPolicyOptionalParameters) WithUseVolumeSnapshot

func (r *GetClusterBackupPolicyOptionalParameters) WithUseVolumeSnapshot(useVolumeSnapshot bool) *GetClusterBackupPolicyOptionalParameters

WithUseVolumeSnapshot sets the corresponding parameter name and returns the struct.

type GetClusterInstanceLogOptionalParameters

type GetClusterInstanceLogOptionalParameters struct {
	WorkloadType *string
	Previous     *bool
	SinceSeconds *int32
	TailLines    *int32
}

GetClusterInstanceLogOptionalParameters holds optional parameters for GetClusterInstanceLog.

func NewGetClusterInstanceLogOptionalParameters

func NewGetClusterInstanceLogOptionalParameters() *GetClusterInstanceLogOptionalParameters

NewGetClusterInstanceLogOptionalParameters creates an empty struct for parameters.

func (*GetClusterInstanceLogOptionalParameters) WithPrevious

WithPrevious sets the corresponding parameter name and returns the struct.

func (*GetClusterInstanceLogOptionalParameters) WithSinceSeconds

WithSinceSeconds sets the corresponding parameter name and returns the struct.

func (*GetClusterInstanceLogOptionalParameters) WithTailLines

WithTailLines sets the corresponding parameter name and returns the struct.

func (*GetClusterInstanceLogOptionalParameters) WithWorkloadType

WithWorkloadType sets the corresponding parameter name and returns the struct.

type GetClusterManifestOptionalParameters

type GetClusterManifestOptionalParameters struct {
	OpsType   *OpsType
	Component *string
}

GetClusterManifestOptionalParameters holds optional parameters for GetClusterManifest.

func NewGetClusterManifestOptionalParameters

func NewGetClusterManifestOptionalParameters() *GetClusterManifestOptionalParameters

NewGetClusterManifestOptionalParameters creates an empty struct for parameters.

func (*GetClusterManifestOptionalParameters) WithComponent

WithComponent sets the corresponding parameter name and returns the struct.

func (*GetClusterManifestOptionalParameters) WithOpsType

WithOpsType sets the corresponding parameter name and returns the struct.

type GetClusterParamTplsOptionalParameters

type GetClusterParamTplsOptionalParameters struct {
	Component  *string
	EngineName *string
}

GetClusterParamTplsOptionalParameters holds optional parameters for GetClusterParamTpls.

func NewGetClusterParamTplsOptionalParameters

func NewGetClusterParamTplsOptionalParameters() *GetClusterParamTplsOptionalParameters

NewGetClusterParamTplsOptionalParameters creates an empty struct for parameters.

func (*GetClusterParamTplsOptionalParameters) WithComponent

WithComponent sets the corresponding parameter name and returns the struct.

func (*GetClusterParamTplsOptionalParameters) WithEngineName

WithEngineName sets the corresponding parameter name and returns the struct.

type HaHistoryResponse

type HaHistoryResponse struct {
	ComponentName *string                        `json:"componentName,omitempty"`
	Records       []HaHistoryResponseRecordsItem `json:"records,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

HaHistoryResponse hahistory is the payload to get ha history of a KubeBlocks cluster

func NewHaHistoryResponse

func NewHaHistoryResponse() *HaHistoryResponse

NewHaHistoryResponse instantiates a new HaHistoryResponse 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 NewHaHistoryResponseWithDefaults

func NewHaHistoryResponseWithDefaults() *HaHistoryResponse

NewHaHistoryResponseWithDefaults instantiates a new HaHistoryResponse 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 (*HaHistoryResponse) GetComponentName

func (o *HaHistoryResponse) GetComponentName() string

GetComponentName returns the ComponentName field value if set, zero value otherwise.

func (*HaHistoryResponse) GetComponentNameOk

func (o *HaHistoryResponse) GetComponentNameOk() (*string, bool)

GetComponentNameOk returns a tuple with the ComponentName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*HaHistoryResponse) GetRecords

GetRecords returns the Records field value if set, zero value otherwise.

func (*HaHistoryResponse) GetRecordsOk

func (o *HaHistoryResponse) GetRecordsOk() (*[]HaHistoryResponseRecordsItem, bool)

GetRecordsOk returns a tuple with the Records field value if set, nil otherwise and a boolean to check if the value has been set.

func (*HaHistoryResponse) HasComponentName

func (o *HaHistoryResponse) HasComponentName() bool

HasComponentName returns a boolean if a field has been set.

func (*HaHistoryResponse) HasRecords

func (o *HaHistoryResponse) HasRecords() bool

HasRecords returns a boolean if a field has been set.

func (HaHistoryResponse) MarshalJSON

func (o HaHistoryResponse) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*HaHistoryResponse) SetComponentName

func (o *HaHistoryResponse) SetComponentName(v string)

SetComponentName gets a reference to the given string and assigns it to the ComponentName field.

func (*HaHistoryResponse) SetRecords

SetRecords gets a reference to the given []HaHistoryResponseRecordsItem and assigns it to the Records field.

func (*HaHistoryResponse) UnmarshalJSON

func (o *HaHistoryResponse) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type HaHistoryResponseRecordsItem

type HaHistoryResponseRecordsItem struct {
	StartAt    int32   `json:"StartAt"`
	EndAt      *int32  `json:"EndAt,omitempty"`
	OldPrimary *string `json:"OldPrimary,omitempty"`
	NewPrimary *string `json:"NewPrimary,omitempty"`
	Reason     *string `json:"Reason,omitempty"`
	UserId     *string `json:"UserID,omitempty"`
	UserName   *string `json:"UserName,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewHaHistoryResponseRecordsItem

func NewHaHistoryResponseRecordsItem(startAt int32) *HaHistoryResponseRecordsItem

NewHaHistoryResponseRecordsItem instantiates a new HaHistoryResponseRecordsItem 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 NewHaHistoryResponseRecordsItemWithDefaults

func NewHaHistoryResponseRecordsItemWithDefaults() *HaHistoryResponseRecordsItem

NewHaHistoryResponseRecordsItemWithDefaults instantiates a new HaHistoryResponseRecordsItem 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 (*HaHistoryResponseRecordsItem) GetEndAt

func (o *HaHistoryResponseRecordsItem) GetEndAt() int32

GetEndAt returns the EndAt field value if set, zero value otherwise.

func (*HaHistoryResponseRecordsItem) GetEndAtOk

func (o *HaHistoryResponseRecordsItem) GetEndAtOk() (*int32, bool)

GetEndAtOk returns a tuple with the EndAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*HaHistoryResponseRecordsItem) GetNewPrimary

func (o *HaHistoryResponseRecordsItem) GetNewPrimary() string

GetNewPrimary returns the NewPrimary field value if set, zero value otherwise.

func (*HaHistoryResponseRecordsItem) GetNewPrimaryOk

func (o *HaHistoryResponseRecordsItem) GetNewPrimaryOk() (*string, bool)

GetNewPrimaryOk returns a tuple with the NewPrimary field value if set, nil otherwise and a boolean to check if the value has been set.

func (*HaHistoryResponseRecordsItem) GetOldPrimary

func (o *HaHistoryResponseRecordsItem) GetOldPrimary() string

GetOldPrimary returns the OldPrimary field value if set, zero value otherwise.

func (*HaHistoryResponseRecordsItem) GetOldPrimaryOk

func (o *HaHistoryResponseRecordsItem) GetOldPrimaryOk() (*string, bool)

GetOldPrimaryOk returns a tuple with the OldPrimary field value if set, nil otherwise and a boolean to check if the value has been set.

func (*HaHistoryResponseRecordsItem) GetReason

func (o *HaHistoryResponseRecordsItem) GetReason() string

GetReason returns the Reason field value if set, zero value otherwise.

func (*HaHistoryResponseRecordsItem) GetReasonOk

func (o *HaHistoryResponseRecordsItem) GetReasonOk() (*string, bool)

GetReasonOk returns a tuple with the Reason field value if set, nil otherwise and a boolean to check if the value has been set.

func (*HaHistoryResponseRecordsItem) GetStartAt

func (o *HaHistoryResponseRecordsItem) GetStartAt() int32

GetStartAt returns the StartAt field value.

func (*HaHistoryResponseRecordsItem) GetStartAtOk

func (o *HaHistoryResponseRecordsItem) GetStartAtOk() (*int32, bool)

GetStartAtOk returns a tuple with the StartAt field value and a boolean to check if the value has been set.

func (*HaHistoryResponseRecordsItem) GetUserId

func (o *HaHistoryResponseRecordsItem) GetUserId() string

GetUserId returns the UserId field value if set, zero value otherwise.

func (*HaHistoryResponseRecordsItem) GetUserIdOk

func (o *HaHistoryResponseRecordsItem) GetUserIdOk() (*string, bool)

GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*HaHistoryResponseRecordsItem) GetUserName

func (o *HaHistoryResponseRecordsItem) GetUserName() string

GetUserName returns the UserName field value if set, zero value otherwise.

func (*HaHistoryResponseRecordsItem) GetUserNameOk

func (o *HaHistoryResponseRecordsItem) GetUserNameOk() (*string, bool)

GetUserNameOk returns a tuple with the UserName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*HaHistoryResponseRecordsItem) HasEndAt

func (o *HaHistoryResponseRecordsItem) HasEndAt() bool

HasEndAt returns a boolean if a field has been set.

func (*HaHistoryResponseRecordsItem) HasNewPrimary

func (o *HaHistoryResponseRecordsItem) HasNewPrimary() bool

HasNewPrimary returns a boolean if a field has been set.

func (*HaHistoryResponseRecordsItem) HasOldPrimary

func (o *HaHistoryResponseRecordsItem) HasOldPrimary() bool

HasOldPrimary returns a boolean if a field has been set.

func (*HaHistoryResponseRecordsItem) HasReason

func (o *HaHistoryResponseRecordsItem) HasReason() bool

HasReason returns a boolean if a field has been set.

func (*HaHistoryResponseRecordsItem) HasUserId

func (o *HaHistoryResponseRecordsItem) HasUserId() bool

HasUserId returns a boolean if a field has been set.

func (*HaHistoryResponseRecordsItem) HasUserName

func (o *HaHistoryResponseRecordsItem) HasUserName() bool

HasUserName returns a boolean if a field has been set.

func (HaHistoryResponseRecordsItem) MarshalJSON

func (o HaHistoryResponseRecordsItem) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*HaHistoryResponseRecordsItem) SetEndAt

func (o *HaHistoryResponseRecordsItem) SetEndAt(v int32)

SetEndAt gets a reference to the given int32 and assigns it to the EndAt field.

func (*HaHistoryResponseRecordsItem) SetNewPrimary

func (o *HaHistoryResponseRecordsItem) SetNewPrimary(v string)

SetNewPrimary gets a reference to the given string and assigns it to the NewPrimary field.

func (*HaHistoryResponseRecordsItem) SetOldPrimary

func (o *HaHistoryResponseRecordsItem) SetOldPrimary(v string)

SetOldPrimary gets a reference to the given string and assigns it to the OldPrimary field.

func (*HaHistoryResponseRecordsItem) SetReason

func (o *HaHistoryResponseRecordsItem) SetReason(v string)

SetReason gets a reference to the given string and assigns it to the Reason field.

func (*HaHistoryResponseRecordsItem) SetStartAt

func (o *HaHistoryResponseRecordsItem) SetStartAt(v int32)

SetStartAt sets field value.

func (*HaHistoryResponseRecordsItem) SetUserId

func (o *HaHistoryResponseRecordsItem) SetUserId(v string)

SetUserId gets a reference to the given string and assigns it to the UserId field.

func (*HaHistoryResponseRecordsItem) SetUserName

func (o *HaHistoryResponseRecordsItem) SetUserName(v string)

SetUserName gets a reference to the given string and assigns it to the UserName field.

func (*HaHistoryResponseRecordsItem) UnmarshalJSON

func (o *HaHistoryResponseRecordsItem) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type InitOptionsItem

type InitOptionsItem struct {
	// component type, refer to componentDef and support NamePrefix'
	Component *string `json:"component,omitempty"`
	// component type, refer to componentDef and support NamePrefix, Deprecated
	ComponentDefRef *string           `json:"componentDefRef,omitempty"`
	InitParams      map[string]string `json:"initParams,omitempty"`
	// config spec name
	SpecName *string `json:"specName,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewInitOptionsItem

func NewInitOptionsItem() *InitOptionsItem

NewInitOptionsItem instantiates a new InitOptionsItem 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 NewInitOptionsItemWithDefaults

func NewInitOptionsItemWithDefaults() *InitOptionsItem

NewInitOptionsItemWithDefaults instantiates a new InitOptionsItem 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 (*InitOptionsItem) GetComponent

func (o *InitOptionsItem) GetComponent() string

GetComponent returns the Component field value if set, zero value otherwise.

func (*InitOptionsItem) GetComponentDefRef

func (o *InitOptionsItem) GetComponentDefRef() string

GetComponentDefRef returns the ComponentDefRef field value if set, zero value otherwise.

func (*InitOptionsItem) GetComponentDefRefOk

func (o *InitOptionsItem) GetComponentDefRefOk() (*string, bool)

GetComponentDefRefOk returns a tuple with the ComponentDefRef field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InitOptionsItem) GetComponentOk

func (o *InitOptionsItem) GetComponentOk() (*string, bool)

GetComponentOk returns a tuple with the Component field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InitOptionsItem) GetInitParams

func (o *InitOptionsItem) GetInitParams() map[string]string

GetInitParams returns the InitParams field value if set, zero value otherwise.

func (*InitOptionsItem) GetInitParamsOk

func (o *InitOptionsItem) GetInitParamsOk() (*map[string]string, bool)

GetInitParamsOk returns a tuple with the InitParams field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InitOptionsItem) GetSpecName

func (o *InitOptionsItem) GetSpecName() string

GetSpecName returns the SpecName field value if set, zero value otherwise.

func (*InitOptionsItem) GetSpecNameOk

func (o *InitOptionsItem) GetSpecNameOk() (*string, bool)

GetSpecNameOk returns a tuple with the SpecName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InitOptionsItem) HasComponent

func (o *InitOptionsItem) HasComponent() bool

HasComponent returns a boolean if a field has been set.

func (*InitOptionsItem) HasComponentDefRef

func (o *InitOptionsItem) HasComponentDefRef() bool

HasComponentDefRef returns a boolean if a field has been set.

func (*InitOptionsItem) HasInitParams

func (o *InitOptionsItem) HasInitParams() bool

HasInitParams returns a boolean if a field has been set.

func (*InitOptionsItem) HasSpecName

func (o *InitOptionsItem) HasSpecName() bool

HasSpecName returns a boolean if a field has been set.

func (InitOptionsItem) MarshalJSON

func (o InitOptionsItem) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*InitOptionsItem) SetComponent

func (o *InitOptionsItem) SetComponent(v string)

SetComponent gets a reference to the given string and assigns it to the Component field.

func (*InitOptionsItem) SetComponentDefRef

func (o *InitOptionsItem) SetComponentDefRef(v string)

SetComponentDefRef gets a reference to the given string and assigns it to the ComponentDefRef field.

func (*InitOptionsItem) SetInitParams

func (o *InitOptionsItem) SetInitParams(v map[string]string)

SetInitParams gets a reference to the given map[string]string and assigns it to the InitParams field.

func (*InitOptionsItem) SetSpecName

func (o *InitOptionsItem) SetSpecName(v string)

SetSpecName gets a reference to the given string and assigns it to the SpecName field.

func (*InitOptionsItem) UnmarshalJSON

func (o *InitOptionsItem) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type Inspection

type Inspection struct {
	Id             *int32     `json:"id,omitempty"`
	OrgName        *string    `json:"orgName,omitempty"`
	UpdatedAt      *time.Time `json:"updatedAt,omitempty"`
	CreatedAt      *time.Time `json:"createdAt,omitempty"`
	Creator        *string    `json:"creator,omitempty"`
	ClusterId      *string    `json:"clusterID,omitempty"`
	ClusterName    *string    `json:"clusterName,omitempty"`
	ClusterEngine  *string    `json:"clusterEngine,omitempty"`
	Result         *string    `json:"result,omitempty"`
	Severity       *string    `json:"severity,omitempty"`
	Status         *string    `json:"status,omitempty"`
	IsAuto         *bool      `json:"isAuto,omitempty"`
	ScriptId       *int32     `json:"scriptID,omitempty"`
	ScriptName     *string    `json:"scriptName,omitempty"`
	ScriptCategory *string    `json:"scriptCategory,omitempty"`
	Reason         *string    `json:"reason,omitempty"`
	Suggestion     *string    `json:"suggestion,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

Inspection inspection

func NewInspection

func NewInspection() *Inspection

NewInspection instantiates a new Inspection 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 NewInspectionWithDefaults

func NewInspectionWithDefaults() *Inspection

NewInspectionWithDefaults instantiates a new Inspection 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 (*Inspection) GetClusterEngine

func (o *Inspection) GetClusterEngine() string

GetClusterEngine returns the ClusterEngine field value if set, zero value otherwise.

func (*Inspection) GetClusterEngineOk

func (o *Inspection) GetClusterEngineOk() (*string, bool)

GetClusterEngineOk returns a tuple with the ClusterEngine field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Inspection) GetClusterId

func (o *Inspection) GetClusterId() string

GetClusterId returns the ClusterId field value if set, zero value otherwise.

func (*Inspection) GetClusterIdOk

func (o *Inspection) GetClusterIdOk() (*string, bool)

GetClusterIdOk returns a tuple with the ClusterId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Inspection) GetClusterName

func (o *Inspection) GetClusterName() string

GetClusterName returns the ClusterName field value if set, zero value otherwise.

func (*Inspection) GetClusterNameOk

func (o *Inspection) GetClusterNameOk() (*string, bool)

GetClusterNameOk returns a tuple with the ClusterName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Inspection) GetCreatedAt

func (o *Inspection) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.

func (*Inspection) GetCreatedAtOk

func (o *Inspection) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Inspection) GetCreator

func (o *Inspection) GetCreator() string

GetCreator returns the Creator field value if set, zero value otherwise.

func (*Inspection) GetCreatorOk

func (o *Inspection) GetCreatorOk() (*string, bool)

GetCreatorOk returns a tuple with the Creator field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Inspection) GetId

func (o *Inspection) GetId() int32

GetId returns the Id field value if set, zero value otherwise.

func (*Inspection) GetIdOk

func (o *Inspection) GetIdOk() (*int32, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Inspection) GetIsAuto

func (o *Inspection) GetIsAuto() bool

GetIsAuto returns the IsAuto field value if set, zero value otherwise.

func (*Inspection) GetIsAutoOk

func (o *Inspection) GetIsAutoOk() (*bool, bool)

GetIsAutoOk returns a tuple with the IsAuto field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Inspection) GetOrgName

func (o *Inspection) GetOrgName() string

GetOrgName returns the OrgName field value if set, zero value otherwise.

func (*Inspection) GetOrgNameOk

func (o *Inspection) GetOrgNameOk() (*string, bool)

GetOrgNameOk returns a tuple with the OrgName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Inspection) GetReason

func (o *Inspection) GetReason() string

GetReason returns the Reason field value if set, zero value otherwise.

func (*Inspection) GetReasonOk

func (o *Inspection) GetReasonOk() (*string, bool)

GetReasonOk returns a tuple with the Reason field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Inspection) GetResult

func (o *Inspection) GetResult() string

GetResult returns the Result field value if set, zero value otherwise.

func (*Inspection) GetResultOk

func (o *Inspection) GetResultOk() (*string, bool)

GetResultOk returns a tuple with the Result field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Inspection) GetScriptCategory

func (o *Inspection) GetScriptCategory() string

GetScriptCategory returns the ScriptCategory field value if set, zero value otherwise.

func (*Inspection) GetScriptCategoryOk

func (o *Inspection) GetScriptCategoryOk() (*string, bool)

GetScriptCategoryOk returns a tuple with the ScriptCategory field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Inspection) GetScriptId

func (o *Inspection) GetScriptId() int32

GetScriptId returns the ScriptId field value if set, zero value otherwise.

func (*Inspection) GetScriptIdOk

func (o *Inspection) GetScriptIdOk() (*int32, bool)

GetScriptIdOk returns a tuple with the ScriptId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Inspection) GetScriptName

func (o *Inspection) GetScriptName() string

GetScriptName returns the ScriptName field value if set, zero value otherwise.

func (*Inspection) GetScriptNameOk

func (o *Inspection) GetScriptNameOk() (*string, bool)

GetScriptNameOk returns a tuple with the ScriptName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Inspection) GetSeverity

func (o *Inspection) GetSeverity() string

GetSeverity returns the Severity field value if set, zero value otherwise.

func (*Inspection) GetSeverityOk

func (o *Inspection) GetSeverityOk() (*string, bool)

GetSeverityOk returns a tuple with the Severity field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Inspection) GetStatus

func (o *Inspection) GetStatus() string

GetStatus returns the Status field value if set, zero value otherwise.

func (*Inspection) GetStatusOk

func (o *Inspection) GetStatusOk() (*string, bool)

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 (*Inspection) GetSuggestion

func (o *Inspection) GetSuggestion() string

GetSuggestion returns the Suggestion field value if set, zero value otherwise.

func (*Inspection) GetSuggestionOk

func (o *Inspection) GetSuggestionOk() (*string, bool)

GetSuggestionOk returns a tuple with the Suggestion field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Inspection) GetUpdatedAt

func (o *Inspection) GetUpdatedAt() time.Time

GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.

func (*Inspection) GetUpdatedAtOk

func (o *Inspection) GetUpdatedAtOk() (*time.Time, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Inspection) HasClusterEngine

func (o *Inspection) HasClusterEngine() bool

HasClusterEngine returns a boolean if a field has been set.

func (*Inspection) HasClusterId

func (o *Inspection) HasClusterId() bool

HasClusterId returns a boolean if a field has been set.

func (*Inspection) HasClusterName

func (o *Inspection) HasClusterName() bool

HasClusterName returns a boolean if a field has been set.

func (*Inspection) HasCreatedAt

func (o *Inspection) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*Inspection) HasCreator

func (o *Inspection) HasCreator() bool

HasCreator returns a boolean if a field has been set.

func (*Inspection) HasId

func (o *Inspection) HasId() bool

HasId returns a boolean if a field has been set.

func (*Inspection) HasIsAuto

func (o *Inspection) HasIsAuto() bool

HasIsAuto returns a boolean if a field has been set.

func (*Inspection) HasOrgName

func (o *Inspection) HasOrgName() bool

HasOrgName returns a boolean if a field has been set.

func (*Inspection) HasReason

func (o *Inspection) HasReason() bool

HasReason returns a boolean if a field has been set.

func (*Inspection) HasResult

func (o *Inspection) HasResult() bool

HasResult returns a boolean if a field has been set.

func (*Inspection) HasScriptCategory

func (o *Inspection) HasScriptCategory() bool

HasScriptCategory returns a boolean if a field has been set.

func (*Inspection) HasScriptId

func (o *Inspection) HasScriptId() bool

HasScriptId returns a boolean if a field has been set.

func (*Inspection) HasScriptName

func (o *Inspection) HasScriptName() bool

HasScriptName returns a boolean if a field has been set.

func (*Inspection) HasSeverity

func (o *Inspection) HasSeverity() bool

HasSeverity returns a boolean if a field has been set.

func (*Inspection) HasStatus

func (o *Inspection) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (*Inspection) HasSuggestion

func (o *Inspection) HasSuggestion() bool

HasSuggestion returns a boolean if a field has been set.

func (*Inspection) HasUpdatedAt

func (o *Inspection) HasUpdatedAt() bool

HasUpdatedAt returns a boolean if a field has been set.

func (Inspection) MarshalJSON

func (o Inspection) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*Inspection) SetClusterEngine

func (o *Inspection) SetClusterEngine(v string)

SetClusterEngine gets a reference to the given string and assigns it to the ClusterEngine field.

func (*Inspection) SetClusterId

func (o *Inspection) SetClusterId(v string)

SetClusterId gets a reference to the given string and assigns it to the ClusterId field.

func (*Inspection) SetClusterName

func (o *Inspection) SetClusterName(v string)

SetClusterName gets a reference to the given string and assigns it to the ClusterName field.

func (*Inspection) SetCreatedAt

func (o *Inspection) SetCreatedAt(v time.Time)

SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.

func (*Inspection) SetCreator

func (o *Inspection) SetCreator(v string)

SetCreator gets a reference to the given string and assigns it to the Creator field.

func (*Inspection) SetId

func (o *Inspection) SetId(v int32)

SetId gets a reference to the given int32 and assigns it to the Id field.

func (*Inspection) SetIsAuto

func (o *Inspection) SetIsAuto(v bool)

SetIsAuto gets a reference to the given bool and assigns it to the IsAuto field.

func (*Inspection) SetOrgName

func (o *Inspection) SetOrgName(v string)

SetOrgName gets a reference to the given string and assigns it to the OrgName field.

func (*Inspection) SetReason

func (o *Inspection) SetReason(v string)

SetReason gets a reference to the given string and assigns it to the Reason field.

func (*Inspection) SetResult

func (o *Inspection) SetResult(v string)

SetResult gets a reference to the given string and assigns it to the Result field.

func (*Inspection) SetScriptCategory

func (o *Inspection) SetScriptCategory(v string)

SetScriptCategory gets a reference to the given string and assigns it to the ScriptCategory field.

func (*Inspection) SetScriptId

func (o *Inspection) SetScriptId(v int32)

SetScriptId gets a reference to the given int32 and assigns it to the ScriptId field.

func (*Inspection) SetScriptName

func (o *Inspection) SetScriptName(v string)

SetScriptName gets a reference to the given string and assigns it to the ScriptName field.

func (*Inspection) SetSeverity

func (o *Inspection) SetSeverity(v string)

SetSeverity gets a reference to the given string and assigns it to the Severity field.

func (*Inspection) SetStatus

func (o *Inspection) SetStatus(v string)

SetStatus gets a reference to the given string and assigns it to the Status field.

func (*Inspection) SetSuggestion

func (o *Inspection) SetSuggestion(v string)

SetSuggestion gets a reference to the given string and assigns it to the Suggestion field.

func (*Inspection) SetUpdatedAt

func (o *Inspection) SetUpdatedAt(v time.Time)

SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field.

func (*Inspection) UnmarshalJSON

func (o *Inspection) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type InspectionApi

type InspectionApi common.Service

InspectionApi service type

func NewInspectionApi

func NewInspectionApi(client *common.APIClient) *InspectionApi

NewInspectionApi Returns NewInspectionApi.

func (*InspectionApi) CreateAutoInspection

func (a *InspectionApi) CreateAutoInspection(ctx _context.Context, orgName string, body AutoInspection) (AutoInspection, *_nethttp.Response, error)

CreateAutoInspection Create auto inspection.

func (*InspectionApi) CreateInspectionScript

func (a *InspectionApi) CreateInspectionScript(ctx _context.Context, orgName string, body InspectionScript) (InspectionScript, *_nethttp.Response, error)

CreateInspectionScript Create inspection script.

func (*InspectionApi) DeleteInspectionScript

func (a *InspectionApi) DeleteInspectionScript(ctx _context.Context, orgName string, body InspectionScript) (InspectionScript, *_nethttp.Response, error)

DeleteInspectionScript Delete inspection script.

func (*InspectionApi) ListAutoInspection

func (a *InspectionApi) ListAutoInspection(ctx _context.Context, orgName string) (AutoInspection, *_nethttp.Response, error)

ListAutoInspection list auto inspection.

func (*InspectionApi) ListInspectionScripts

ListInspectionScripts list inspection scripts.

func (*InspectionApi) ListInspections

ListInspections list inspections.

func (*InspectionApi) UpdateAutoInspection

func (a *InspectionApi) UpdateAutoInspection(ctx _context.Context, orgName string, body AutoInspection) (AutoInspection, *_nethttp.Response, error)

UpdateAutoInspection Update auto inspection.

func (*InspectionApi) UpdateInspection

func (a *InspectionApi) UpdateInspection(ctx _context.Context, orgName string, body Inspection) (Inspection, *_nethttp.Response, error)

UpdateInspection Update inspection.

func (*InspectionApi) UpdateInspectionScript

func (a *InspectionApi) UpdateInspectionScript(ctx _context.Context, orgName string, body InspectionScript) (InspectionScript, *_nethttp.Response, error)

UpdateInspectionScript Update inspection script.

type InspectionScript

type InspectionScript struct {
	Id              *int32  `json:"id,omitempty"`
	Engine          *string `json:"engine,omitempty"`
	Name            *string `json:"name,omitempty"`
	Category        *string `json:"category,omitempty"`
	Type            *string `json:"type,omitempty"`
	ScriptType      *string `json:"scriptType,omitempty"`
	Reason          *string `json:"reason,omitempty"`
	Suggestion      *string `json:"suggestion,omitempty"`
	Enabled         *bool   `json:"enabled,omitempty"`
	ScriptName      *string `json:"scriptName,omitempty"`
	Script          *string `json:"script,omitempty"`
	StatusCheckName *string `json:"statusCheckName,omitempty"`
	StatusCheck     *string `json:"statusCheck,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewInspectionScript

func NewInspectionScript() *InspectionScript

NewInspectionScript instantiates a new InspectionScript 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 NewInspectionScriptWithDefaults

func NewInspectionScriptWithDefaults() *InspectionScript

NewInspectionScriptWithDefaults instantiates a new InspectionScript 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 (*InspectionScript) GetCategory

func (o *InspectionScript) GetCategory() string

GetCategory returns the Category field value if set, zero value otherwise.

func (*InspectionScript) GetCategoryOk

func (o *InspectionScript) GetCategoryOk() (*string, bool)

GetCategoryOk returns a tuple with the Category field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InspectionScript) GetEnabled

func (o *InspectionScript) GetEnabled() bool

GetEnabled returns the Enabled field value if set, zero value otherwise.

func (*InspectionScript) GetEnabledOk

func (o *InspectionScript) GetEnabledOk() (*bool, bool)

GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InspectionScript) GetEngine

func (o *InspectionScript) GetEngine() string

GetEngine returns the Engine field value if set, zero value otherwise.

func (*InspectionScript) GetEngineOk

func (o *InspectionScript) GetEngineOk() (*string, bool)

GetEngineOk returns a tuple with the Engine field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InspectionScript) GetId

func (o *InspectionScript) GetId() int32

GetId returns the Id field value if set, zero value otherwise.

func (*InspectionScript) GetIdOk

func (o *InspectionScript) GetIdOk() (*int32, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InspectionScript) GetName

func (o *InspectionScript) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*InspectionScript) GetNameOk

func (o *InspectionScript) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InspectionScript) GetReason

func (o *InspectionScript) GetReason() string

GetReason returns the Reason field value if set, zero value otherwise.

func (*InspectionScript) GetReasonOk

func (o *InspectionScript) GetReasonOk() (*string, bool)

GetReasonOk returns a tuple with the Reason field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InspectionScript) GetScript

func (o *InspectionScript) GetScript() string

GetScript returns the Script field value if set, zero value otherwise.

func (*InspectionScript) GetScriptName

func (o *InspectionScript) GetScriptName() string

GetScriptName returns the ScriptName field value if set, zero value otherwise.

func (*InspectionScript) GetScriptNameOk

func (o *InspectionScript) GetScriptNameOk() (*string, bool)

GetScriptNameOk returns a tuple with the ScriptName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InspectionScript) GetScriptOk

func (o *InspectionScript) GetScriptOk() (*string, bool)

GetScriptOk returns a tuple with the Script field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InspectionScript) GetScriptType

func (o *InspectionScript) GetScriptType() string

GetScriptType returns the ScriptType field value if set, zero value otherwise.

func (*InspectionScript) GetScriptTypeOk

func (o *InspectionScript) GetScriptTypeOk() (*string, bool)

GetScriptTypeOk returns a tuple with the ScriptType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InspectionScript) GetStatusCheck

func (o *InspectionScript) GetStatusCheck() string

GetStatusCheck returns the StatusCheck field value if set, zero value otherwise.

func (*InspectionScript) GetStatusCheckName

func (o *InspectionScript) GetStatusCheckName() string

GetStatusCheckName returns the StatusCheckName field value if set, zero value otherwise.

func (*InspectionScript) GetStatusCheckNameOk

func (o *InspectionScript) GetStatusCheckNameOk() (*string, bool)

GetStatusCheckNameOk returns a tuple with the StatusCheckName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InspectionScript) GetStatusCheckOk

func (o *InspectionScript) GetStatusCheckOk() (*string, bool)

GetStatusCheckOk returns a tuple with the StatusCheck field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InspectionScript) GetSuggestion

func (o *InspectionScript) GetSuggestion() string

GetSuggestion returns the Suggestion field value if set, zero value otherwise.

func (*InspectionScript) GetSuggestionOk

func (o *InspectionScript) GetSuggestionOk() (*string, bool)

GetSuggestionOk returns a tuple with the Suggestion field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InspectionScript) GetType

func (o *InspectionScript) GetType() string

GetType returns the Type field value if set, zero value otherwise.

func (*InspectionScript) GetTypeOk

func (o *InspectionScript) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InspectionScript) HasCategory

func (o *InspectionScript) HasCategory() bool

HasCategory returns a boolean if a field has been set.

func (*InspectionScript) HasEnabled

func (o *InspectionScript) HasEnabled() bool

HasEnabled returns a boolean if a field has been set.

func (*InspectionScript) HasEngine

func (o *InspectionScript) HasEngine() bool

HasEngine returns a boolean if a field has been set.

func (*InspectionScript) HasId

func (o *InspectionScript) HasId() bool

HasId returns a boolean if a field has been set.

func (*InspectionScript) HasName

func (o *InspectionScript) HasName() bool

HasName returns a boolean if a field has been set.

func (*InspectionScript) HasReason

func (o *InspectionScript) HasReason() bool

HasReason returns a boolean if a field has been set.

func (*InspectionScript) HasScript

func (o *InspectionScript) HasScript() bool

HasScript returns a boolean if a field has been set.

func (*InspectionScript) HasScriptName

func (o *InspectionScript) HasScriptName() bool

HasScriptName returns a boolean if a field has been set.

func (*InspectionScript) HasScriptType

func (o *InspectionScript) HasScriptType() bool

HasScriptType returns a boolean if a field has been set.

func (*InspectionScript) HasStatusCheck

func (o *InspectionScript) HasStatusCheck() bool

HasStatusCheck returns a boolean if a field has been set.

func (*InspectionScript) HasStatusCheckName

func (o *InspectionScript) HasStatusCheckName() bool

HasStatusCheckName returns a boolean if a field has been set.

func (*InspectionScript) HasSuggestion

func (o *InspectionScript) HasSuggestion() bool

HasSuggestion returns a boolean if a field has been set.

func (*InspectionScript) HasType

func (o *InspectionScript) HasType() bool

HasType returns a boolean if a field has been set.

func (InspectionScript) MarshalJSON

func (o InspectionScript) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*InspectionScript) SetCategory

func (o *InspectionScript) SetCategory(v string)

SetCategory gets a reference to the given string and assigns it to the Category field.

func (*InspectionScript) SetEnabled

func (o *InspectionScript) SetEnabled(v bool)

SetEnabled gets a reference to the given bool and assigns it to the Enabled field.

func (*InspectionScript) SetEngine

func (o *InspectionScript) SetEngine(v string)

SetEngine gets a reference to the given string and assigns it to the Engine field.

func (*InspectionScript) SetId

func (o *InspectionScript) SetId(v int32)

SetId gets a reference to the given int32 and assigns it to the Id field.

func (*InspectionScript) SetName

func (o *InspectionScript) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*InspectionScript) SetReason

func (o *InspectionScript) SetReason(v string)

SetReason gets a reference to the given string and assigns it to the Reason field.

func (*InspectionScript) SetScript

func (o *InspectionScript) SetScript(v string)

SetScript gets a reference to the given string and assigns it to the Script field.

func (*InspectionScript) SetScriptName

func (o *InspectionScript) SetScriptName(v string)

SetScriptName gets a reference to the given string and assigns it to the ScriptName field.

func (*InspectionScript) SetScriptType

func (o *InspectionScript) SetScriptType(v string)

SetScriptType gets a reference to the given string and assigns it to the ScriptType field.

func (*InspectionScript) SetStatusCheck

func (o *InspectionScript) SetStatusCheck(v string)

SetStatusCheck gets a reference to the given string and assigns it to the StatusCheck field.

func (*InspectionScript) SetStatusCheckName

func (o *InspectionScript) SetStatusCheckName(v string)

SetStatusCheckName gets a reference to the given string and assigns it to the StatusCheckName field.

func (*InspectionScript) SetSuggestion

func (o *InspectionScript) SetSuggestion(v string)

SetSuggestion gets a reference to the given string and assigns it to the Suggestion field.

func (*InspectionScript) SetType

func (o *InspectionScript) SetType(v string)

SetType gets a reference to the given string and assigns it to the Type field.

func (*InspectionScript) UnmarshalJSON

func (o *InspectionScript) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type Instance

type Instance struct {
	// Access mode for instance
	AccessMode string `json:"accessMode"`
	// Cloud for instance
	Cloud string `json:"cloud"`
	// Cluster name
	Cluster string `json:"cluster"`
	// Component name
	ComponentName *string `json:"componentName,omitempty"`
	// ComponentDefinition name
	ComponentDef *string `json:"componentDef,omitempty"`
	// component type, refer to componentDef and support NamePrefix
	Component string `json:"component"`
	// cpu with uint cores.
	Cpu string `json:"cpu"`
	// created at
	CreatedAt string `json:"createdAt"`
	// Memory with uint Gi.
	Memory string `json:"memory"`
	// Instance name
	Name string `json:"name"`
	// node name
	Node string `json:"node"`
	// Region for instance
	Region string `json:"region"`
	// Role for instance
	Role string `json:"role"`
	// Status for instance
	Status InstanceStatus `json:"status"`
	// storage sets the storage size value mapping key
	Storage []InstanceStorageItem `json:"storage"`
	// Available zone for instance
	Zone string `json:"zone"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

Instance Instance is the information of KubeBlocks cluster instances

func NewInstance

func NewInstance(accessMode string, cloud string, cluster string, component string, cpu string, createdAt string, memory string, name string, node string, region string, role string, status InstanceStatus, storage []InstanceStorageItem, zone string) *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 NewInstanceWithDefaults

func NewInstanceWithDefaults() *Instance

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 (*Instance) GetAccessMode

func (o *Instance) GetAccessMode() string

GetAccessMode returns the AccessMode field value.

func (*Instance) GetAccessModeOk

func (o *Instance) GetAccessModeOk() (*string, bool)

GetAccessModeOk returns a tuple with the AccessMode field value and a boolean to check if the value has been set.

func (*Instance) GetCloud

func (o *Instance) GetCloud() string

GetCloud returns the Cloud field value.

func (*Instance) GetCloudOk

func (o *Instance) GetCloudOk() (*string, bool)

GetCloudOk returns a tuple with the Cloud field value and a boolean to check if the value has been set.

func (*Instance) GetCluster

func (o *Instance) GetCluster() string

GetCluster returns the Cluster field value.

func (*Instance) GetClusterOk

func (o *Instance) GetClusterOk() (*string, bool)

GetClusterOk returns a tuple with the Cluster field value and a boolean to check if the value has been set.

func (*Instance) GetComponent

func (o *Instance) GetComponent() string

GetComponent returns the Component field value.

func (*Instance) GetComponentDef

func (o *Instance) GetComponentDef() string

GetComponentDef returns the ComponentDef field value if set, zero value otherwise.

func (*Instance) GetComponentDefOk

func (o *Instance) GetComponentDefOk() (*string, bool)

GetComponentDefOk returns a tuple with the ComponentDef field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Instance) GetComponentName

func (o *Instance) GetComponentName() string

GetComponentName returns the ComponentName field value if set, zero value otherwise.

func (*Instance) GetComponentNameOk

func (o *Instance) GetComponentNameOk() (*string, bool)

GetComponentNameOk returns a tuple with the ComponentName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Instance) GetComponentOk

func (o *Instance) GetComponentOk() (*string, bool)

GetComponentOk returns a tuple with the Component field value and a boolean to check if the value has been set.

func (*Instance) GetCpu

func (o *Instance) GetCpu() string

GetCpu returns the Cpu field value.

func (*Instance) GetCpuOk

func (o *Instance) GetCpuOk() (*string, bool)

GetCpuOk returns a tuple with the Cpu field value and a boolean to check if the value has been set.

func (*Instance) GetCreatedAt

func (o *Instance) GetCreatedAt() string

GetCreatedAt returns the CreatedAt field value.

func (*Instance) GetCreatedAtOk

func (o *Instance) GetCreatedAtOk() (*string, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value and a boolean to check if the value has been set.

func (*Instance) GetMemory

func (o *Instance) GetMemory() string

GetMemory returns the Memory field value.

func (*Instance) GetMemoryOk

func (o *Instance) GetMemoryOk() (*string, bool)

GetMemoryOk returns a tuple with the Memory field value and a boolean to check if the value has been set.

func (*Instance) GetName

func (o *Instance) GetName() string

GetName returns the Name field value.

func (*Instance) GetNameOk

func (o *Instance) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*Instance) GetNode

func (o *Instance) GetNode() string

GetNode returns the Node field value.

func (*Instance) GetNodeOk

func (o *Instance) GetNodeOk() (*string, bool)

GetNodeOk returns a tuple with the Node field value and a boolean to check if the value has been set.

func (*Instance) GetRegion

func (o *Instance) GetRegion() string

GetRegion returns the Region field value.

func (*Instance) GetRegionOk

func (o *Instance) GetRegionOk() (*string, bool)

GetRegionOk returns a tuple with the Region field value and a boolean to check if the value has been set.

func (*Instance) GetRole

func (o *Instance) GetRole() string

GetRole returns the Role field value.

func (*Instance) GetRoleOk

func (o *Instance) GetRoleOk() (*string, bool)

GetRoleOk returns a tuple with the Role field value and a boolean to check if the value has been set.

func (*Instance) GetStatus

func (o *Instance) GetStatus() InstanceStatus

GetStatus returns the Status field value.

func (*Instance) GetStatusOk

func (o *Instance) GetStatusOk() (*InstanceStatus, bool)

GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.

func (*Instance) GetStorage

func (o *Instance) GetStorage() []InstanceStorageItem

GetStorage returns the Storage field value.

func (*Instance) GetStorageOk

func (o *Instance) GetStorageOk() (*[]InstanceStorageItem, bool)

GetStorageOk returns a tuple with the Storage field value and a boolean to check if the value has been set.

func (*Instance) GetZone

func (o *Instance) GetZone() string

GetZone returns the Zone field value.

func (*Instance) GetZoneOk

func (o *Instance) GetZoneOk() (*string, bool)

GetZoneOk returns a tuple with the Zone field value and a boolean to check if the value has been set.

func (*Instance) HasComponentDef

func (o *Instance) HasComponentDef() bool

HasComponentDef returns a boolean if a field has been set.

func (*Instance) HasComponentName

func (o *Instance) HasComponentName() bool

HasComponentName returns a boolean if a field has been set.

func (Instance) MarshalJSON

func (o Instance) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*Instance) SetAccessMode

func (o *Instance) SetAccessMode(v string)

SetAccessMode sets field value.

func (*Instance) SetCloud

func (o *Instance) SetCloud(v string)

SetCloud sets field value.

func (*Instance) SetCluster

func (o *Instance) SetCluster(v string)

SetCluster sets field value.

func (*Instance) SetComponent

func (o *Instance) SetComponent(v string)

SetComponent sets field value.

func (*Instance) SetComponentDef

func (o *Instance) SetComponentDef(v string)

SetComponentDef gets a reference to the given string and assigns it to the ComponentDef field.

func (*Instance) SetComponentName

func (o *Instance) SetComponentName(v string)

SetComponentName gets a reference to the given string and assigns it to the ComponentName field.

func (*Instance) SetCpu

func (o *Instance) SetCpu(v string)

SetCpu sets field value.

func (*Instance) SetCreatedAt

func (o *Instance) SetCreatedAt(v string)

SetCreatedAt sets field value.

func (*Instance) SetMemory

func (o *Instance) SetMemory(v string)

SetMemory sets field value.

func (*Instance) SetName

func (o *Instance) SetName(v string)

SetName sets field value.

func (*Instance) SetNode

func (o *Instance) SetNode(v string)

SetNode sets field value.

func (*Instance) SetRegion

func (o *Instance) SetRegion(v string)

SetRegion sets field value.

func (*Instance) SetRole

func (o *Instance) SetRole(v string)

SetRole sets field value.

func (*Instance) SetStatus

func (o *Instance) SetStatus(v InstanceStatus)

SetStatus sets field value.

func (*Instance) SetStorage

func (o *Instance) SetStorage(v []InstanceStorageItem)

SetStorage sets field value.

func (*Instance) SetZone

func (o *Instance) SetZone(v string)

SetZone sets field value.

func (*Instance) UnmarshalJSON

func (o *Instance) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type InstanceList

type InstanceList struct {
	// Items is the list of KubeBlocks cluster objects in the list
	Items []Instance `json:"items"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

InstanceList ClusterList is a list of KubeBlocks clusters

func NewInstanceList

func NewInstanceList(items []Instance) *InstanceList

NewInstanceList instantiates a new InstanceList 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 NewInstanceListWithDefaults

func NewInstanceListWithDefaults() *InstanceList

NewInstanceListWithDefaults instantiates a new InstanceList 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 (*InstanceList) GetItems

func (o *InstanceList) GetItems() []Instance

GetItems returns the Items field value.

func (*InstanceList) GetItemsOk

func (o *InstanceList) GetItemsOk() (*[]Instance, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (InstanceList) MarshalJSON

func (o InstanceList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*InstanceList) SetItems

func (o *InstanceList) SetItems(v []Instance)

SetItems sets field value.

func (*InstanceList) UnmarshalJSON

func (o *InstanceList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type InstanceMetrics

type InstanceMetrics struct {
	// the name of the instance
	InstanceName string `json:"instanceName"`
	// cpu with uint cores.
	CpuUsage string `json:"cpuUsage"`
	// memory with uint Gi.
	MemoryUsage string `json:"memoryUsage"`
	// disk with uint Gi.
	DiskUsage string `json:"diskUsage"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

InstanceMetrics instance metrics

func NewInstanceMetrics

func NewInstanceMetrics(instanceName string, cpuUsage string, memoryUsage string, diskUsage string) *InstanceMetrics

NewInstanceMetrics instantiates a new InstanceMetrics 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 NewInstanceMetricsWithDefaults

func NewInstanceMetricsWithDefaults() *InstanceMetrics

NewInstanceMetricsWithDefaults instantiates a new InstanceMetrics 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 (*InstanceMetrics) GetCpuUsage

func (o *InstanceMetrics) GetCpuUsage() string

GetCpuUsage returns the CpuUsage field value.

func (*InstanceMetrics) GetCpuUsageOk

func (o *InstanceMetrics) GetCpuUsageOk() (*string, bool)

GetCpuUsageOk returns a tuple with the CpuUsage field value and a boolean to check if the value has been set.

func (*InstanceMetrics) GetDiskUsage

func (o *InstanceMetrics) GetDiskUsage() string

GetDiskUsage returns the DiskUsage field value.

func (*InstanceMetrics) GetDiskUsageOk

func (o *InstanceMetrics) GetDiskUsageOk() (*string, bool)

GetDiskUsageOk returns a tuple with the DiskUsage field value and a boolean to check if the value has been set.

func (*InstanceMetrics) GetInstanceName

func (o *InstanceMetrics) GetInstanceName() string

GetInstanceName returns the InstanceName field value.

func (*InstanceMetrics) GetInstanceNameOk

func (o *InstanceMetrics) GetInstanceNameOk() (*string, bool)

GetInstanceNameOk returns a tuple with the InstanceName field value and a boolean to check if the value has been set.

func (*InstanceMetrics) GetMemoryUsage

func (o *InstanceMetrics) GetMemoryUsage() string

GetMemoryUsage returns the MemoryUsage field value.

func (*InstanceMetrics) GetMemoryUsageOk

func (o *InstanceMetrics) GetMemoryUsageOk() (*string, bool)

GetMemoryUsageOk returns a tuple with the MemoryUsage field value and a boolean to check if the value has been set.

func (InstanceMetrics) MarshalJSON

func (o InstanceMetrics) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*InstanceMetrics) SetCpuUsage

func (o *InstanceMetrics) SetCpuUsage(v string)

SetCpuUsage sets field value.

func (*InstanceMetrics) SetDiskUsage

func (o *InstanceMetrics) SetDiskUsage(v string)

SetDiskUsage sets field value.

func (*InstanceMetrics) SetInstanceName

func (o *InstanceMetrics) SetInstanceName(v string)

SetInstanceName sets field value.

func (*InstanceMetrics) SetMemoryUsage

func (o *InstanceMetrics) SetMemoryUsage(v string)

SetMemoryUsage sets field value.

func (*InstanceMetrics) UnmarshalJSON

func (o *InstanceMetrics) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type InstanceMetricsList

type InstanceMetricsList struct {
	// instanceMetrics list
	Items []InstanceMetrics `json:"items"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

InstanceMetricsList instance metrics list

func NewInstanceMetricsList

func NewInstanceMetricsList(items []InstanceMetrics) *InstanceMetricsList

NewInstanceMetricsList instantiates a new InstanceMetricsList 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 NewInstanceMetricsListWithDefaults

func NewInstanceMetricsListWithDefaults() *InstanceMetricsList

NewInstanceMetricsListWithDefaults instantiates a new InstanceMetricsList 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 (*InstanceMetricsList) GetItems

func (o *InstanceMetricsList) GetItems() []InstanceMetrics

GetItems returns the Items field value.

func (*InstanceMetricsList) GetItemsOk

func (o *InstanceMetricsList) GetItemsOk() (*[]InstanceMetrics, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (InstanceMetricsList) MarshalJSON

func (o InstanceMetricsList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*InstanceMetricsList) SetItems

func (o *InstanceMetricsList) SetItems(v []InstanceMetrics)

SetItems sets field value.

func (*InstanceMetricsList) UnmarshalJSON

func (o *InstanceMetricsList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type InstanceStatus

type InstanceStatus struct {
	// The current phase of the cluster
	Phase string `json:"phase"`
	// A brief reason for the cluster's current phase
	Reason *string `json:"reason,omitempty"`
	// A human-readable message indicating details about the cluster's current phase
	Message *string `json:"message,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

InstanceStatus Status for instance

func NewInstanceStatus

func NewInstanceStatus(phase string) *InstanceStatus

NewInstanceStatus instantiates a new InstanceStatus 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 NewInstanceStatusWithDefaults

func NewInstanceStatusWithDefaults() *InstanceStatus

NewInstanceStatusWithDefaults instantiates a new InstanceStatus 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 (*InstanceStatus) GetMessage

func (o *InstanceStatus) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*InstanceStatus) GetMessageOk

func (o *InstanceStatus) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InstanceStatus) GetPhase

func (o *InstanceStatus) GetPhase() string

GetPhase returns the Phase field value.

func (*InstanceStatus) GetPhaseOk

func (o *InstanceStatus) GetPhaseOk() (*string, bool)

GetPhaseOk returns a tuple with the Phase field value and a boolean to check if the value has been set.

func (*InstanceStatus) GetReason

func (o *InstanceStatus) GetReason() string

GetReason returns the Reason field value if set, zero value otherwise.

func (*InstanceStatus) GetReasonOk

func (o *InstanceStatus) GetReasonOk() (*string, bool)

GetReasonOk returns a tuple with the Reason field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InstanceStatus) HasMessage

func (o *InstanceStatus) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*InstanceStatus) HasReason

func (o *InstanceStatus) HasReason() bool

HasReason returns a boolean if a field has been set.

func (InstanceStatus) MarshalJSON

func (o InstanceStatus) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*InstanceStatus) SetMessage

func (o *InstanceStatus) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (*InstanceStatus) SetPhase

func (o *InstanceStatus) SetPhase(v string)

SetPhase sets field value.

func (*InstanceStatus) SetReason

func (o *InstanceStatus) SetReason(v string)

SetReason gets a reference to the given string and assigns it to the Reason field.

func (*InstanceStatus) UnmarshalJSON

func (o *InstanceStatus) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type InstanceStorageItem

type InstanceStorageItem struct {
	// Specify the name of storage, which must be unique.
	Name string `json:"name"`
	// Specify the size of storage, the unit is Gi.
	Size string `json:"size"`
	// The name of StorageClass in use
	StorageClass *string `json:"storageClass,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

InstanceStorageItem Instance storage information

func NewInstanceStorageItem

func NewInstanceStorageItem(name string, size string) *InstanceStorageItem

NewInstanceStorageItem instantiates a new InstanceStorageItem 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 NewInstanceStorageItemWithDefaults

func NewInstanceStorageItemWithDefaults() *InstanceStorageItem

NewInstanceStorageItemWithDefaults instantiates a new InstanceStorageItem 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 (*InstanceStorageItem) GetName

func (o *InstanceStorageItem) GetName() string

GetName returns the Name field value.

func (*InstanceStorageItem) GetNameOk

func (o *InstanceStorageItem) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*InstanceStorageItem) GetSize

func (o *InstanceStorageItem) GetSize() string

GetSize returns the Size field value.

func (*InstanceStorageItem) GetSizeOk

func (o *InstanceStorageItem) GetSizeOk() (*string, bool)

GetSizeOk returns a tuple with the Size field value and a boolean to check if the value has been set.

func (*InstanceStorageItem) GetStorageClass

func (o *InstanceStorageItem) GetStorageClass() string

GetStorageClass returns the StorageClass field value if set, zero value otherwise.

func (*InstanceStorageItem) GetStorageClassOk

func (o *InstanceStorageItem) GetStorageClassOk() (*string, bool)

GetStorageClassOk returns a tuple with the StorageClass field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InstanceStorageItem) HasStorageClass

func (o *InstanceStorageItem) HasStorageClass() bool

HasStorageClass returns a boolean if a field has been set.

func (InstanceStorageItem) MarshalJSON

func (o InstanceStorageItem) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*InstanceStorageItem) SetName

func (o *InstanceStorageItem) SetName(v string)

SetName sets field value.

func (*InstanceStorageItem) SetSize

func (o *InstanceStorageItem) SetSize(v string)

SetSize sets field value.

func (*InstanceStorageItem) SetStorageClass

func (o *InstanceStorageItem) SetStorageClass(v string)

SetStorageClass gets a reference to the given string and assigns it to the StorageClass field.

func (*InstanceStorageItem) UnmarshalJSON

func (o *InstanceStorageItem) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type IntegerOption

type IntegerOption struct {
	Min     int32 `json:"min"`
	Max     int32 `json:"max"`
	Default int32 `json:"default"`
	Step    int32 `json:"step"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewIntegerOption

func NewIntegerOption(min int32, max int32, defaultVar int32, step int32) *IntegerOption

NewIntegerOption instantiates a new IntegerOption 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 NewIntegerOptionWithDefaults

func NewIntegerOptionWithDefaults() *IntegerOption

NewIntegerOptionWithDefaults instantiates a new IntegerOption 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 (*IntegerOption) GetDefault

func (o *IntegerOption) GetDefault() int32

GetDefault returns the Default field value.

func (*IntegerOption) GetDefaultOk

func (o *IntegerOption) GetDefaultOk() (*int32, bool)

GetDefaultOk returns a tuple with the Default field value and a boolean to check if the value has been set.

func (*IntegerOption) GetMax

func (o *IntegerOption) GetMax() int32

GetMax returns the Max field value.

func (*IntegerOption) GetMaxOk

func (o *IntegerOption) GetMaxOk() (*int32, bool)

GetMaxOk returns a tuple with the Max field value and a boolean to check if the value has been set.

func (*IntegerOption) GetMin

func (o *IntegerOption) GetMin() int32

GetMin returns the Min field value.

func (*IntegerOption) GetMinOk

func (o *IntegerOption) GetMinOk() (*int32, bool)

GetMinOk returns a tuple with the Min field value and a boolean to check if the value has been set.

func (*IntegerOption) GetStep

func (o *IntegerOption) GetStep() int32

GetStep returns the Step field value.

func (*IntegerOption) GetStepOk

func (o *IntegerOption) GetStepOk() (*int32, bool)

GetStepOk returns a tuple with the Step field value and a boolean to check if the value has been set.

func (IntegerOption) MarshalJSON

func (o IntegerOption) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*IntegerOption) SetDefault

func (o *IntegerOption) SetDefault(v int32)

SetDefault sets field value.

func (*IntegerOption) SetMax

func (o *IntegerOption) SetMax(v int32)

SetMax sets field value.

func (*IntegerOption) SetMin

func (o *IntegerOption) SetMin(v int32)

SetMin sets field value.

func (*IntegerOption) SetStep

func (o *IntegerOption) SetStep(v int32)

SetStep sets field value.

func (*IntegerOption) UnmarshalJSON

func (o *IntegerOption) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type Invitation

type Invitation struct {
	// User has accepted or not
	Accepted bool `json:"accepted"`
	// the created time of the invitation
	CreatedAt *time.Time `json:"createdAt,omitempty"`
	// The email of the invitee
	Email string `json:"email"`
	// Expire time of this invitation
	ExpireTime time.Time `json:"expireTime"`
	// The ID for the invitation
	Id string `json:"id"`
	// Last email send time
	LastEmailTime time.Time `json:"lastEmailTime"`
	// The name of the organization, for output only
	OrgName string `json:"orgName"`
	// The name of the role
	RoleName string `json:"roleName"`
	// InvitationSender is the User who send the Invitation
	Sender *InvitationSender `json:"sender,omitempty"`
	// [internal, not for caller display] token of invitation, base64 encoded string including invitation and org ID
	Token string `json:"token"`
	// the updated time of the invitation
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

Invitation Invitation info

func NewInvitation

func NewInvitation(accepted bool, email string, expireTime time.Time, id string, lastEmailTime time.Time, orgName string, roleName string, token string) *Invitation

NewInvitation instantiates a new Invitation 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 NewInvitationWithDefaults

func NewInvitationWithDefaults() *Invitation

NewInvitationWithDefaults instantiates a new Invitation 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 (*Invitation) GetAccepted

func (o *Invitation) GetAccepted() bool

GetAccepted returns the Accepted field value.

func (*Invitation) GetAcceptedOk

func (o *Invitation) GetAcceptedOk() (*bool, bool)

GetAcceptedOk returns a tuple with the Accepted field value and a boolean to check if the value has been set.

func (*Invitation) GetCreatedAt

func (o *Invitation) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.

func (*Invitation) GetCreatedAtOk

func (o *Invitation) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Invitation) GetEmail

func (o *Invitation) GetEmail() string

GetEmail returns the Email field value.

func (*Invitation) GetEmailOk

func (o *Invitation) GetEmailOk() (*string, bool)

GetEmailOk returns a tuple with the Email field value and a boolean to check if the value has been set.

func (*Invitation) GetExpireTime

func (o *Invitation) GetExpireTime() time.Time

GetExpireTime returns the ExpireTime field value.

func (*Invitation) GetExpireTimeOk

func (o *Invitation) GetExpireTimeOk() (*time.Time, bool)

GetExpireTimeOk returns a tuple with the ExpireTime field value and a boolean to check if the value has been set.

func (*Invitation) GetId

func (o *Invitation) GetId() string

GetId returns the Id field value.

func (*Invitation) GetIdOk

func (o *Invitation) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*Invitation) GetLastEmailTime

func (o *Invitation) GetLastEmailTime() time.Time

GetLastEmailTime returns the LastEmailTime field value.

func (*Invitation) GetLastEmailTimeOk

func (o *Invitation) GetLastEmailTimeOk() (*time.Time, bool)

GetLastEmailTimeOk returns a tuple with the LastEmailTime field value and a boolean to check if the value has been set.

func (*Invitation) GetOrgName

func (o *Invitation) GetOrgName() string

GetOrgName returns the OrgName field value.

func (*Invitation) GetOrgNameOk

func (o *Invitation) GetOrgNameOk() (*string, bool)

GetOrgNameOk returns a tuple with the OrgName field value and a boolean to check if the value has been set.

func (*Invitation) GetRoleName

func (o *Invitation) GetRoleName() string

GetRoleName returns the RoleName field value.

func (*Invitation) GetRoleNameOk

func (o *Invitation) GetRoleNameOk() (*string, bool)

GetRoleNameOk returns a tuple with the RoleName field value and a boolean to check if the value has been set.

func (*Invitation) GetSender

func (o *Invitation) GetSender() InvitationSender

GetSender returns the Sender field value if set, zero value otherwise.

func (*Invitation) GetSenderOk

func (o *Invitation) GetSenderOk() (*InvitationSender, bool)

GetSenderOk returns a tuple with the Sender field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Invitation) GetToken

func (o *Invitation) GetToken() string

GetToken returns the Token field value.

func (*Invitation) GetTokenOk

func (o *Invitation) GetTokenOk() (*string, bool)

GetTokenOk returns a tuple with the Token field value and a boolean to check if the value has been set.

func (*Invitation) GetUpdatedAt

func (o *Invitation) GetUpdatedAt() time.Time

GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.

func (*Invitation) GetUpdatedAtOk

func (o *Invitation) GetUpdatedAtOk() (*time.Time, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Invitation) HasCreatedAt

func (o *Invitation) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*Invitation) HasSender

func (o *Invitation) HasSender() bool

HasSender returns a boolean if a field has been set.

func (*Invitation) HasUpdatedAt

func (o *Invitation) HasUpdatedAt() bool

HasUpdatedAt returns a boolean if a field has been set.

func (Invitation) MarshalJSON

func (o Invitation) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*Invitation) SetAccepted

func (o *Invitation) SetAccepted(v bool)

SetAccepted sets field value.

func (*Invitation) SetCreatedAt

func (o *Invitation) SetCreatedAt(v time.Time)

SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.

func (*Invitation) SetEmail

func (o *Invitation) SetEmail(v string)

SetEmail sets field value.

func (*Invitation) SetExpireTime

func (o *Invitation) SetExpireTime(v time.Time)

SetExpireTime sets field value.

func (*Invitation) SetId

func (o *Invitation) SetId(v string)

SetId sets field value.

func (*Invitation) SetLastEmailTime

func (o *Invitation) SetLastEmailTime(v time.Time)

SetLastEmailTime sets field value.

func (*Invitation) SetOrgName

func (o *Invitation) SetOrgName(v string)

SetOrgName sets field value.

func (*Invitation) SetRoleName

func (o *Invitation) SetRoleName(v string)

SetRoleName sets field value.

func (*Invitation) SetSender

func (o *Invitation) SetSender(v InvitationSender)

SetSender gets a reference to the given InvitationSender and assigns it to the Sender field.

func (*Invitation) SetToken

func (o *Invitation) SetToken(v string)

SetToken sets field value.

func (*Invitation) SetUpdatedAt

func (o *Invitation) SetUpdatedAt(v time.Time)

SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field.

func (*Invitation) UnmarshalJSON

func (o *Invitation) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type InvitationApi

type InvitationApi common.Service

InvitationApi service type

func NewInvitationApi

func NewInvitationApi(client *common.APIClient) *InvitationApi

NewInvitationApi Returns NewInvitationApi.

func (*InvitationApi) AcceptInvitation

func (a *InvitationApi) AcceptInvitation(ctx _context.Context, invitationId string) (*_nethttp.Response, error)

AcceptInvitation Accept invitation. partially update the specified Invitation

func (*InvitationApi) CreateInvitation

CreateInvitation Create invitation. create a Invitation

func (*InvitationApi) DeleteInvitation

func (a *InvitationApi) DeleteInvitation(ctx _context.Context, invitationId string) (*_nethttp.Response, error)

DeleteInvitation Delete Invitation. delete the specified Invitation for organization admin

func (*InvitationApi) ListInvitation

ListInvitation List invitations. list the Invitation of specified Org or User

func (*InvitationApi) ReadInvitation

func (a *InvitationApi) ReadInvitation(ctx _context.Context, invitationId string) (Invitation, *_nethttp.Response, error)

ReadInvitation Get Invitation. read the specified Invitation for organization admin or invitee

func (*InvitationApi) RejectInvitation

func (a *InvitationApi) RejectInvitation(ctx _context.Context, invitationId string) (*_nethttp.Response, error)

RejectInvitation Reject invitation. partially update the specified Invitation

func (*InvitationApi) ResendInvitation

func (a *InvitationApi) ResendInvitation(ctx _context.Context, invitationId string) (*_nethttp.Response, error)

ResendInvitation Resend invitation. partially update the specified Invitation

type InvitationCreate

type InvitationCreate struct {
	// The email of the invitee
	Email string `json:"email"`
	// The name of the organization, for output only
	OrgName string `json:"orgName"`
	// The name of the role
	RoleName string `json:"roleName"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

InvitationCreate Invitation create payload

func NewInvitationCreate

func NewInvitationCreate(email string, orgName string, roleName string) *InvitationCreate

NewInvitationCreate instantiates a new InvitationCreate 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 NewInvitationCreateWithDefaults

func NewInvitationCreateWithDefaults() *InvitationCreate

NewInvitationCreateWithDefaults instantiates a new InvitationCreate 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 (*InvitationCreate) GetEmail

func (o *InvitationCreate) GetEmail() string

GetEmail returns the Email field value.

func (*InvitationCreate) GetEmailOk

func (o *InvitationCreate) GetEmailOk() (*string, bool)

GetEmailOk returns a tuple with the Email field value and a boolean to check if the value has been set.

func (*InvitationCreate) GetOrgName

func (o *InvitationCreate) GetOrgName() string

GetOrgName returns the OrgName field value.

func (*InvitationCreate) GetOrgNameOk

func (o *InvitationCreate) GetOrgNameOk() (*string, bool)

GetOrgNameOk returns a tuple with the OrgName field value and a boolean to check if the value has been set.

func (*InvitationCreate) GetRoleName

func (o *InvitationCreate) GetRoleName() string

GetRoleName returns the RoleName field value.

func (*InvitationCreate) GetRoleNameOk

func (o *InvitationCreate) GetRoleNameOk() (*string, bool)

GetRoleNameOk returns a tuple with the RoleName field value and a boolean to check if the value has been set.

func (InvitationCreate) MarshalJSON

func (o InvitationCreate) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*InvitationCreate) SetEmail

func (o *InvitationCreate) SetEmail(v string)

SetEmail sets field value.

func (*InvitationCreate) SetOrgName

func (o *InvitationCreate) SetOrgName(v string)

SetOrgName sets field value.

func (*InvitationCreate) SetRoleName

func (o *InvitationCreate) SetRoleName(v string)

SetRoleName sets field value.

func (*InvitationCreate) UnmarshalJSON

func (o *InvitationCreate) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type InvitationList

type InvitationList struct {
	// Items is the list of Invitation objects in the list
	Items []Invitation `json:"items"`
	// PageResult info
	PageResult *PageResult `json:"pageResult,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

InvitationList InvitationList is a list of invitations

func NewInvitationList

func NewInvitationList(items []Invitation) *InvitationList

NewInvitationList instantiates a new InvitationList 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 NewInvitationListWithDefaults

func NewInvitationListWithDefaults() *InvitationList

NewInvitationListWithDefaults instantiates a new InvitationList 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 (*InvitationList) GetItems

func (o *InvitationList) GetItems() []Invitation

GetItems returns the Items field value.

func (*InvitationList) GetItemsOk

func (o *InvitationList) GetItemsOk() (*[]Invitation, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (*InvitationList) GetPageResult

func (o *InvitationList) GetPageResult() PageResult

GetPageResult returns the PageResult field value if set, zero value otherwise.

func (*InvitationList) GetPageResultOk

func (o *InvitationList) GetPageResultOk() (*PageResult, bool)

GetPageResultOk returns a tuple with the PageResult field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvitationList) HasPageResult

func (o *InvitationList) HasPageResult() bool

HasPageResult returns a boolean if a field has been set.

func (InvitationList) MarshalJSON

func (o InvitationList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*InvitationList) SetItems

func (o *InvitationList) SetItems(v []Invitation)

SetItems sets field value.

func (*InvitationList) SetPageResult

func (o *InvitationList) SetPageResult(v PageResult)

SetPageResult gets a reference to the given PageResult and assigns it to the PageResult field.

func (*InvitationList) UnmarshalJSON

func (o *InvitationList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type InvitationSender

type InvitationSender struct {
	// The email of the User
	Email *string `json:"email,omitempty"`
	// The ID of the User
	Id *string `json:"id,omitempty"`
	// The name of the User
	Name *string `json:"name,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

InvitationSender InvitationSender is the User who send the Invitation

func NewInvitationSender

func NewInvitationSender() *InvitationSender

NewInvitationSender instantiates a new InvitationSender 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 NewInvitationSenderWithDefaults

func NewInvitationSenderWithDefaults() *InvitationSender

NewInvitationSenderWithDefaults instantiates a new InvitationSender 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 (*InvitationSender) GetEmail

func (o *InvitationSender) GetEmail() string

GetEmail returns the Email field value if set, zero value otherwise.

func (*InvitationSender) GetEmailOk

func (o *InvitationSender) GetEmailOk() (*string, bool)

GetEmailOk returns a tuple with the Email field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvitationSender) GetId

func (o *InvitationSender) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*InvitationSender) GetIdOk

func (o *InvitationSender) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvitationSender) GetName

func (o *InvitationSender) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*InvitationSender) GetNameOk

func (o *InvitationSender) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvitationSender) HasEmail

func (o *InvitationSender) HasEmail() bool

HasEmail returns a boolean if a field has been set.

func (*InvitationSender) HasId

func (o *InvitationSender) HasId() bool

HasId returns a boolean if a field has been set.

func (*InvitationSender) HasName

func (o *InvitationSender) HasName() bool

HasName returns a boolean if a field has been set.

func (InvitationSender) MarshalJSON

func (o InvitationSender) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*InvitationSender) SetEmail

func (o *InvitationSender) SetEmail(v string)

SetEmail gets a reference to the given string and assigns it to the Email field.

func (*InvitationSender) SetId

func (o *InvitationSender) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*InvitationSender) SetName

func (o *InvitationSender) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*InvitationSender) UnmarshalJSON

func (o *InvitationSender) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type IpWhitelist

type IpWhitelist struct {
	// ID of the whitelist
	Id string `json:"id"`
	// Name of the whitelist
	Name string `json:"name"`
	// Description
	Description *string `json:"description,omitempty"`
	// Whitelist IP Addresses
	Addresses []string `json:"addresses"`
	// CreatedAt is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.
	//
	// Populated by the system. Read-only. Null for lists
	CreatedAt *time.Time `json:"createdAt,omitempty"`
	// UpdatedAt is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.
	//
	// Populated by the system. Read-only. Null for lists
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

IpWhitelist whitelist

func NewIpWhitelist

func NewIpWhitelist(id string, name string, addresses []string) *IpWhitelist

NewIpWhitelist instantiates a new IpWhitelist 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 NewIpWhitelistWithDefaults

func NewIpWhitelistWithDefaults() *IpWhitelist

NewIpWhitelistWithDefaults instantiates a new IpWhitelist 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 (*IpWhitelist) GetAddresses

func (o *IpWhitelist) GetAddresses() []string

GetAddresses returns the Addresses field value.

func (*IpWhitelist) GetAddressesOk

func (o *IpWhitelist) GetAddressesOk() (*[]string, bool)

GetAddressesOk returns a tuple with the Addresses field value and a boolean to check if the value has been set.

func (*IpWhitelist) GetCreatedAt

func (o *IpWhitelist) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.

func (*IpWhitelist) GetCreatedAtOk

func (o *IpWhitelist) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*IpWhitelist) GetDescription

func (o *IpWhitelist) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*IpWhitelist) GetDescriptionOk

func (o *IpWhitelist) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*IpWhitelist) GetId

func (o *IpWhitelist) GetId() string

GetId returns the Id field value.

func (*IpWhitelist) GetIdOk

func (o *IpWhitelist) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*IpWhitelist) GetName

func (o *IpWhitelist) GetName() string

GetName returns the Name field value.

func (*IpWhitelist) GetNameOk

func (o *IpWhitelist) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*IpWhitelist) GetUpdatedAt

func (o *IpWhitelist) GetUpdatedAt() time.Time

GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.

func (*IpWhitelist) GetUpdatedAtOk

func (o *IpWhitelist) GetUpdatedAtOk() (*time.Time, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*IpWhitelist) HasCreatedAt

func (o *IpWhitelist) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*IpWhitelist) HasDescription

func (o *IpWhitelist) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*IpWhitelist) HasUpdatedAt

func (o *IpWhitelist) HasUpdatedAt() bool

HasUpdatedAt returns a boolean if a field has been set.

func (IpWhitelist) MarshalJSON

func (o IpWhitelist) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*IpWhitelist) SetAddresses

func (o *IpWhitelist) SetAddresses(v []string)

SetAddresses sets field value.

func (*IpWhitelist) SetCreatedAt

func (o *IpWhitelist) SetCreatedAt(v time.Time)

SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.

func (*IpWhitelist) SetDescription

func (o *IpWhitelist) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*IpWhitelist) SetId

func (o *IpWhitelist) SetId(v string)

SetId sets field value.

func (*IpWhitelist) SetName

func (o *IpWhitelist) SetName(v string)

SetName sets field value.

func (*IpWhitelist) SetUpdatedAt

func (o *IpWhitelist) SetUpdatedAt(v time.Time)

SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field.

func (*IpWhitelist) UnmarshalJSON

func (o *IpWhitelist) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type IpWhitelistApi

type IpWhitelistApi common.Service

IpWhitelistApi service type

func NewIpWhitelistApi

func NewIpWhitelistApi(client *common.APIClient) *IpWhitelistApi

NewIpWhitelistApi Returns NewIpWhitelistApi.

func (*IpWhitelistApi) CreateIPWhitelist

func (a *IpWhitelistApi) CreateIPWhitelist(ctx _context.Context, orgName string, clusterName string, body interface{}) (IpWhitelist, *_nethttp.Response, error)

CreateIPWhitelist Create IP whitelist.

func (*IpWhitelistApi) ListIPWhitelist

func (a *IpWhitelistApi) ListIPWhitelist(ctx _context.Context, orgName string, clusterName string) (IpWhitelistList, *_nethttp.Response, error)

ListIPWhitelist List IP whitelists.

func (*IpWhitelistApi) UpdateIPWhitelist

func (a *IpWhitelistApi) UpdateIPWhitelist(ctx _context.Context, orgName string, clusterName string, ipWhitelistId string, body interface{}) (IpWhitelist, *_nethttp.Response, error)

UpdateIPWhitelist Update IP whitelist.

type IpWhitelistList

type IpWhitelistList struct {
	// Items is the list of whitelist objects in the Cluster
	Items []IpWhitelist `json:"items"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewIpWhitelistList

func NewIpWhitelistList(items []IpWhitelist) *IpWhitelistList

NewIpWhitelistList instantiates a new IpWhitelistList 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 NewIpWhitelistListWithDefaults

func NewIpWhitelistListWithDefaults() *IpWhitelistList

NewIpWhitelistListWithDefaults instantiates a new IpWhitelistList 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 (*IpWhitelistList) GetItems

func (o *IpWhitelistList) GetItems() []IpWhitelist

GetItems returns the Items field value.

func (*IpWhitelistList) GetItemsOk

func (o *IpWhitelistList) GetItemsOk() (*[]IpWhitelist, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (IpWhitelistList) MarshalJSON

func (o IpWhitelistList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*IpWhitelistList) SetItems

func (o *IpWhitelistList) SetItems(v []IpWhitelist)

SetItems sets field value.

func (*IpWhitelistList) UnmarshalJSON

func (o *IpWhitelistList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type KubernetesManifestList

type KubernetesManifestList struct {
	// Items is the list of Kubernetes objects in the list
	KubernetesManifests []map[string]interface{} `json:"kubernetesManifests,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

KubernetesManifestList KubernetesManifestList is the list of Kubernetes objects in the list

func NewKubernetesManifestList

func NewKubernetesManifestList() *KubernetesManifestList

NewKubernetesManifestList instantiates a new KubernetesManifestList 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 NewKubernetesManifestListWithDefaults

func NewKubernetesManifestListWithDefaults() *KubernetesManifestList

NewKubernetesManifestListWithDefaults instantiates a new KubernetesManifestList 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 (*KubernetesManifestList) GetKubernetesManifests

func (o *KubernetesManifestList) GetKubernetesManifests() []map[string]interface{}

GetKubernetesManifests returns the KubernetesManifests field value if set, zero value otherwise.

func (*KubernetesManifestList) GetKubernetesManifestsOk

func (o *KubernetesManifestList) GetKubernetesManifestsOk() (*[]map[string]interface{}, bool)

GetKubernetesManifestsOk returns a tuple with the KubernetesManifests field value if set, nil otherwise and a boolean to check if the value has been set.

func (*KubernetesManifestList) HasKubernetesManifests

func (o *KubernetesManifestList) HasKubernetesManifests() bool

HasKubernetesManifests returns a boolean if a field has been set.

func (KubernetesManifestList) MarshalJSON

func (o KubernetesManifestList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*KubernetesManifestList) SetKubernetesManifests

func (o *KubernetesManifestList) SetKubernetesManifests(v []map[string]interface{})

SetKubernetesManifests gets a reference to the given []map[string]interface{} and assigns it to the KubernetesManifests field.

func (*KubernetesManifestList) UnmarshalJSON

func (o *KubernetesManifestList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type LicenseOption

type LicenseOption struct {
	Component  string `json:"component"`
	OpsDefName string `json:"opsDefName"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewLicenseOption

func NewLicenseOption(component string, opsDefName string) *LicenseOption

NewLicenseOption instantiates a new LicenseOption 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 NewLicenseOptionWithDefaults

func NewLicenseOptionWithDefaults() *LicenseOption

NewLicenseOptionWithDefaults instantiates a new LicenseOption 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 (*LicenseOption) GetComponent

func (o *LicenseOption) GetComponent() string

GetComponent returns the Component field value.

func (*LicenseOption) GetComponentOk

func (o *LicenseOption) GetComponentOk() (*string, bool)

GetComponentOk returns a tuple with the Component field value and a boolean to check if the value has been set.

func (*LicenseOption) GetOpsDefName

func (o *LicenseOption) GetOpsDefName() string

GetOpsDefName returns the OpsDefName field value.

func (*LicenseOption) GetOpsDefNameOk

func (o *LicenseOption) GetOpsDefNameOk() (*string, bool)

GetOpsDefNameOk returns a tuple with the OpsDefName field value and a boolean to check if the value has been set.

func (LicenseOption) MarshalJSON

func (o LicenseOption) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*LicenseOption) SetComponent

func (o *LicenseOption) SetComponent(v string)

SetComponent sets field value.

func (*LicenseOption) SetOpsDefName

func (o *LicenseOption) SetOpsDefName(v string)

SetOpsDefName sets field value.

func (*LicenseOption) UnmarshalJSON

func (o *LicenseOption) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ListAccountsOptionalParameters

type ListAccountsOptionalParameters struct {
	IncludeRoot *bool
}

ListAccountsOptionalParameters holds optional parameters for ListAccounts.

func NewListAccountsOptionalParameters

func NewListAccountsOptionalParameters() *ListAccountsOptionalParameters

NewListAccountsOptionalParameters creates an empty struct for parameters.

func (*ListAccountsOptionalParameters) WithIncludeRoot

func (r *ListAccountsOptionalParameters) WithIncludeRoot(includeRoot bool) *ListAccountsOptionalParameters

WithIncludeRoot sets the corresponding parameter name and returns the struct.

type ListAlertMetricsOptionalParameters

type ListAlertMetricsOptionalParameters struct {
	Category *string
}

ListAlertMetricsOptionalParameters holds optional parameters for ListAlertMetrics.

func NewListAlertMetricsOptionalParameters

func NewListAlertMetricsOptionalParameters() *ListAlertMetricsOptionalParameters

NewListAlertMetricsOptionalParameters creates an empty struct for parameters.

func (*ListAlertMetricsOptionalParameters) WithCategory

WithCategory sets the corresponding parameter name and returns the struct.

type ListAlertReceiversOptionalParameters

type ListAlertReceiversOptionalParameters struct {
	Category *AlertReceiverCategory
}

ListAlertReceiversOptionalParameters holds optional parameters for ListAlertReceivers.

func NewListAlertReceiversOptionalParameters

func NewListAlertReceiversOptionalParameters() *ListAlertReceiversOptionalParameters

NewListAlertReceiversOptionalParameters creates an empty struct for parameters.

func (*ListAlertReceiversOptionalParameters) WithCategory

WithCategory sets the corresponding parameter name and returns the struct.

type ListBackupsOptionalParameters

type ListBackupsOptionalParameters struct {
	ClusterName             *string
	ClusterId               *string
	BackupRepo              *string
	FetchWithDeletedCluster *bool
	WithDeletedBackups      *bool
	BackupType              *string
	ComponentName           *string
}

ListBackupsOptionalParameters holds optional parameters for ListBackups.

func NewListBackupsOptionalParameters

func NewListBackupsOptionalParameters() *ListBackupsOptionalParameters

NewListBackupsOptionalParameters creates an empty struct for parameters.

func (*ListBackupsOptionalParameters) WithBackupRepo

WithBackupRepo sets the corresponding parameter name and returns the struct.

func (*ListBackupsOptionalParameters) WithBackupType

WithBackupType sets the corresponding parameter name and returns the struct.

func (*ListBackupsOptionalParameters) WithClusterId

WithClusterId sets the corresponding parameter name and returns the struct.

func (*ListBackupsOptionalParameters) WithClusterName

func (r *ListBackupsOptionalParameters) WithClusterName(clusterName string) *ListBackupsOptionalParameters

WithClusterName sets the corresponding parameter name and returns the struct.

func (*ListBackupsOptionalParameters) WithComponentName

func (r *ListBackupsOptionalParameters) WithComponentName(componentName string) *ListBackupsOptionalParameters

WithComponentName sets the corresponding parameter name and returns the struct.

func (*ListBackupsOptionalParameters) WithFetchWithDeletedCluster

func (r *ListBackupsOptionalParameters) WithFetchWithDeletedCluster(fetchWithDeletedCluster bool) *ListBackupsOptionalParameters

WithFetchWithDeletedCluster sets the corresponding parameter name and returns the struct.

func (*ListBackupsOptionalParameters) WithWithDeletedBackups

func (r *ListBackupsOptionalParameters) WithWithDeletedBackups(withDeletedBackups bool) *ListBackupsOptionalParameters

WithWithDeletedBackups sets the corresponding parameter name and returns the struct.

type ListBenchmarkOptionalParameters

type ListBenchmarkOptionalParameters struct {
	Cluster   *string
	BenchType *string
	ClusterId *string
}

ListBenchmarkOptionalParameters holds optional parameters for ListBenchmark.

func NewListBenchmarkOptionalParameters

func NewListBenchmarkOptionalParameters() *ListBenchmarkOptionalParameters

NewListBenchmarkOptionalParameters creates an empty struct for parameters.

func (*ListBenchmarkOptionalParameters) WithBenchType

WithBenchType sets the corresponding parameter name and returns the struct.

func (*ListBenchmarkOptionalParameters) WithCluster

WithCluster sets the corresponding parameter name and returns the struct.

func (*ListBenchmarkOptionalParameters) WithClusterId

WithClusterId sets the corresponding parameter name and returns the struct.

type ListClusterOptionalParameters

type ListClusterOptionalParameters struct {
	ClusterDefinition *string
	EnvironmentName   *string
	EnvironmentType   *EnvironmentType
	TagKey            *string
	TagValue          *string
	TagKeys           *[]string
	TagValues         *[]string
	LicenseId         *int32
}

ListClusterOptionalParameters holds optional parameters for ListCluster.

func NewListClusterOptionalParameters

func NewListClusterOptionalParameters() *ListClusterOptionalParameters

NewListClusterOptionalParameters creates an empty struct for parameters.

func (*ListClusterOptionalParameters) WithClusterDefinition

func (r *ListClusterOptionalParameters) WithClusterDefinition(clusterDefinition string) *ListClusterOptionalParameters

WithClusterDefinition sets the corresponding parameter name and returns the struct.

func (*ListClusterOptionalParameters) WithEnvironmentName

func (r *ListClusterOptionalParameters) WithEnvironmentName(environmentName string) *ListClusterOptionalParameters

WithEnvironmentName sets the corresponding parameter name and returns the struct.

func (*ListClusterOptionalParameters) WithEnvironmentType

func (r *ListClusterOptionalParameters) WithEnvironmentType(environmentType EnvironmentType) *ListClusterOptionalParameters

WithEnvironmentType sets the corresponding parameter name and returns the struct.

func (*ListClusterOptionalParameters) WithLicenseId

WithLicenseId sets the corresponding parameter name and returns the struct.

func (*ListClusterOptionalParameters) WithTagKey

WithTagKey sets the corresponding parameter name and returns the struct.

func (*ListClusterOptionalParameters) WithTagKeys

WithTagKeys sets the corresponding parameter name and returns the struct.

func (*ListClusterOptionalParameters) WithTagValue

WithTagValue sets the corresponding parameter name and returns the struct.

func (*ListClusterOptionalParameters) WithTagValues

WithTagValues sets the corresponding parameter name and returns the struct.

type ListConfigurationsOptionalParameters

type ListConfigurationsOptionalParameters struct {
	Component *string
}

ListConfigurationsOptionalParameters holds optional parameters for ListConfigurations.

func NewListConfigurationsOptionalParameters

func NewListConfigurationsOptionalParameters() *ListConfigurationsOptionalParameters

NewListConfigurationsOptionalParameters creates an empty struct for parameters.

func (*ListConfigurationsOptionalParameters) WithComponent

WithComponent sets the corresponding parameter name and returns the struct.

type ListEndpointsOptionalParameters

type ListEndpointsOptionalParameters struct {
	NodePortHostCount *int32
	IncludeClusterIp  *bool
}

ListEndpointsOptionalParameters holds optional parameters for ListEndpoints.

func NewListEndpointsOptionalParameters

func NewListEndpointsOptionalParameters() *ListEndpointsOptionalParameters

NewListEndpointsOptionalParameters creates an empty struct for parameters.

func (*ListEndpointsOptionalParameters) WithIncludeClusterIp

func (r *ListEndpointsOptionalParameters) WithIncludeClusterIp(includeClusterIp bool) *ListEndpointsOptionalParameters

WithIncludeClusterIp sets the corresponding parameter name and returns the struct.

func (*ListEndpointsOptionalParameters) WithNodePortHostCount

func (r *ListEndpointsOptionalParameters) WithNodePortHostCount(nodePortHostCount int32) *ListEndpointsOptionalParameters

WithNodePortHostCount sets the corresponding parameter name and returns the struct.

type ListEngineLicensesOptionalParameters

type ListEngineLicensesOptionalParameters struct {
	EngineName *string
}

ListEngineLicensesOptionalParameters holds optional parameters for ListEngineLicenses.

func NewListEngineLicensesOptionalParameters

func NewListEngineLicensesOptionalParameters() *ListEngineLicensesOptionalParameters

NewListEngineLicensesOptionalParameters creates an empty struct for parameters.

func (*ListEngineLicensesOptionalParameters) WithEngineName

WithEngineName sets the corresponding parameter name and returns the struct.

type ListEnginesInEnvOptionalParameters

type ListEnginesInEnvOptionalParameters struct {
	Name     *string
	Type     *EngineType
	Version  *string
	Provider *string
	All      *bool
}

ListEnginesInEnvOptionalParameters holds optional parameters for ListEnginesInEnv.

func NewListEnginesInEnvOptionalParameters

func NewListEnginesInEnvOptionalParameters() *ListEnginesInEnvOptionalParameters

NewListEnginesInEnvOptionalParameters creates an empty struct for parameters.

func (*ListEnginesInEnvOptionalParameters) WithAll

WithAll sets the corresponding parameter name and returns the struct.

func (*ListEnginesInEnvOptionalParameters) WithName

WithName sets the corresponding parameter name and returns the struct.

func (*ListEnginesInEnvOptionalParameters) WithProvider

WithProvider sets the corresponding parameter name and returns the struct.

func (*ListEnginesInEnvOptionalParameters) WithType

WithType sets the corresponding parameter name and returns the struct.

func (*ListEnginesInEnvOptionalParameters) WithVersion

WithVersion sets the corresponding parameter name and returns the struct.

type ListEnginesInOrgOptionalParameters

type ListEnginesInOrgOptionalParameters struct {
	EnvironmentName *string
	Name            *string
	Type            *EngineType
	Version         *string
	Provider        *string
}

ListEnginesInOrgOptionalParameters holds optional parameters for ListEnginesInOrg.

func NewListEnginesInOrgOptionalParameters

func NewListEnginesInOrgOptionalParameters() *ListEnginesInOrgOptionalParameters

NewListEnginesInOrgOptionalParameters creates an empty struct for parameters.

func (*ListEnginesInOrgOptionalParameters) WithEnvironmentName

func (r *ListEnginesInOrgOptionalParameters) WithEnvironmentName(environmentName string) *ListEnginesInOrgOptionalParameters

WithEnvironmentName sets the corresponding parameter name and returns the struct.

func (*ListEnginesInOrgOptionalParameters) WithName

WithName sets the corresponding parameter name and returns the struct.

func (*ListEnginesInOrgOptionalParameters) WithProvider

WithProvider sets the corresponding parameter name and returns the struct.

func (*ListEnginesInOrgOptionalParameters) WithType

WithType sets the corresponding parameter name and returns the struct.

func (*ListEnginesInOrgOptionalParameters) WithVersion

WithVersion sets the corresponding parameter name and returns the struct.

type ListFeatureOptionalParameters

type ListFeatureOptionalParameters struct {
	Group *string
}

ListFeatureOptionalParameters holds optional parameters for ListFeature.

func NewListFeatureOptionalParameters

func NewListFeatureOptionalParameters() *ListFeatureOptionalParameters

NewListFeatureOptionalParameters creates an empty struct for parameters.

func (*ListFeatureOptionalParameters) WithGroup

WithGroup sets the corresponding parameter name and returns the struct.

type ListInspectionScriptsOptionalParameters

type ListInspectionScriptsOptionalParameters struct {
	Engine *string
}

ListInspectionScriptsOptionalParameters holds optional parameters for ListInspectionScripts.

func NewListInspectionScriptsOptionalParameters

func NewListInspectionScriptsOptionalParameters() *ListInspectionScriptsOptionalParameters

NewListInspectionScriptsOptionalParameters creates an empty struct for parameters.

func (*ListInspectionScriptsOptionalParameters) WithEngine

WithEngine sets the corresponding parameter name and returns the struct.

type ListInspectionsOptionalParameters

type ListInspectionsOptionalParameters struct {
	ClusterId *string
	TaskId    *string
}

ListInspectionsOptionalParameters holds optional parameters for ListInspections.

func NewListInspectionsOptionalParameters

func NewListInspectionsOptionalParameters() *ListInspectionsOptionalParameters

NewListInspectionsOptionalParameters creates an empty struct for parameters.

func (*ListInspectionsOptionalParameters) WithClusterId

WithClusterId sets the corresponding parameter name and returns the struct.

func (*ListInspectionsOptionalParameters) WithTaskId

WithTaskId sets the corresponding parameter name and returns the struct.

type ListInvitationOptionalParameters

type ListInvitationOptionalParameters struct {
	OrgName   *string
	UserId    *string
	PageToken *string
	PageSize  *string
}

ListInvitationOptionalParameters holds optional parameters for ListInvitation.

func NewListInvitationOptionalParameters

func NewListInvitationOptionalParameters() *ListInvitationOptionalParameters

NewListInvitationOptionalParameters creates an empty struct for parameters.

func (*ListInvitationOptionalParameters) WithOrgName

WithOrgName sets the corresponding parameter name and returns the struct.

func (*ListInvitationOptionalParameters) WithPageSize

WithPageSize sets the corresponding parameter name and returns the struct.

func (*ListInvitationOptionalParameters) WithPageToken

WithPageToken sets the corresponding parameter name and returns the struct.

func (*ListInvitationOptionalParameters) WithUserId

WithUserId sets the corresponding parameter name and returns the struct.

type ListOrgMemberOptionalParameters

type ListOrgMemberOptionalParameters struct {
	PageToken *string
	PageSize  *string
}

ListOrgMemberOptionalParameters holds optional parameters for ListOrgMember.

func NewListOrgMemberOptionalParameters

func NewListOrgMemberOptionalParameters() *ListOrgMemberOptionalParameters

NewListOrgMemberOptionalParameters creates an empty struct for parameters.

func (*ListOrgMemberOptionalParameters) WithPageSize

WithPageSize sets the corresponding parameter name and returns the struct.

func (*ListOrgMemberOptionalParameters) WithPageToken

WithPageToken sets the corresponding parameter name and returns the struct.

type ListOrgOptionalParameters

type ListOrgOptionalParameters struct {
	PageToken *string
	PageSize  *string
}

ListOrgOptionalParameters holds optional parameters for ListOrg.

func NewListOrgOptionalParameters

func NewListOrgOptionalParameters() *ListOrgOptionalParameters

NewListOrgOptionalParameters creates an empty struct for parameters.

func (*ListOrgOptionalParameters) WithPageSize

func (r *ListOrgOptionalParameters) WithPageSize(pageSize string) *ListOrgOptionalParameters

WithPageSize sets the corresponding parameter name and returns the struct.

func (*ListOrgOptionalParameters) WithPageToken

func (r *ListOrgOptionalParameters) WithPageToken(pageToken string) *ListOrgOptionalParameters

WithPageToken sets the corresponding parameter name and returns the struct.

type ListParamTplOptionalParameters

type ListParamTplOptionalParameters struct {
	Partition *ParamTplPartition
	Version   *string
	Component *string
}

ListParamTplOptionalParameters holds optional parameters for ListParamTpl.

func NewListParamTplOptionalParameters

func NewListParamTplOptionalParameters() *ListParamTplOptionalParameters

NewListParamTplOptionalParameters creates an empty struct for parameters.

func (*ListParamTplOptionalParameters) WithComponent

WithComponent sets the corresponding parameter name and returns the struct.

func (*ListParamTplOptionalParameters) WithPartition

WithPartition sets the corresponding parameter name and returns the struct.

func (*ListParamTplOptionalParameters) WithVersion

WithVersion sets the corresponding parameter name and returns the struct.

type ListParameterSpecsOptionalParameters

type ListParameterSpecsOptionalParameters struct {
	Component *string
}

ListParameterSpecsOptionalParameters holds optional parameters for ListParameterSpecs.

func NewListParameterSpecsOptionalParameters

func NewListParameterSpecsOptionalParameters() *ListParameterSpecsOptionalParameters

NewListParameterSpecsOptionalParameters creates an empty struct for parameters.

func (*ListParameterSpecsOptionalParameters) WithComponent

WithComponent sets the corresponding parameter name and returns the struct.

type ListParametersHistoryOptionalParameters

type ListParametersHistoryOptionalParameters struct {
	ParameterName *string
}

ListParametersHistoryOptionalParameters holds optional parameters for ListParametersHistory.

func NewListParametersHistoryOptionalParameters

func NewListParametersHistoryOptionalParameters() *ListParametersHistoryOptionalParameters

NewListParametersHistoryOptionalParameters creates an empty struct for parameters.

func (*ListParametersHistoryOptionalParameters) WithParameterName

WithParameterName sets the corresponding parameter name and returns the struct.

type ListServiceVersionOptionalParameters

type ListServiceVersionOptionalParameters struct {
	Component *string
}

ListServiceVersionOptionalParameters holds optional parameters for ListServiceVersion.

func NewListServiceVersionOptionalParameters

func NewListServiceVersionOptionalParameters() *ListServiceVersionOptionalParameters

NewListServiceVersionOptionalParameters creates an empty struct for parameters.

func (*ListServiceVersionOptionalParameters) WithComponent

WithComponent sets the corresponding parameter name and returns the struct.

type ListSessionsOptionalParameters

type ListSessionsOptionalParameters struct {
	All *string
}

ListSessionsOptionalParameters holds optional parameters for ListSessions.

func NewListSessionsOptionalParameters

func NewListSessionsOptionalParameters() *ListSessionsOptionalParameters

NewListSessionsOptionalParameters creates an empty struct for parameters.

func (*ListSessionsOptionalParameters) WithAll

WithAll sets the corresponding parameter name and returns the struct.

type LoadBalancer

type LoadBalancer struct {
	// Whether the loadbalancer is available in the environment.
	Available LoadBalancerAvailableType `json:"available"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

LoadBalancer The load balancer info

func NewLoadBalancer

func NewLoadBalancer(available LoadBalancerAvailableType) *LoadBalancer

NewLoadBalancer instantiates a new LoadBalancer 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 NewLoadBalancerWithDefaults

func NewLoadBalancerWithDefaults() *LoadBalancer

NewLoadBalancerWithDefaults instantiates a new LoadBalancer 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 (*LoadBalancer) GetAvailable

func (o *LoadBalancer) GetAvailable() LoadBalancerAvailableType

GetAvailable returns the Available field value.

func (*LoadBalancer) GetAvailableOk

func (o *LoadBalancer) GetAvailableOk() (*LoadBalancerAvailableType, bool)

GetAvailableOk returns a tuple with the Available field value and a boolean to check if the value has been set.

func (LoadBalancer) MarshalJSON

func (o LoadBalancer) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*LoadBalancer) SetAvailable

func (o *LoadBalancer) SetAvailable(v LoadBalancerAvailableType)

SetAvailable sets field value.

func (*LoadBalancer) UnmarshalJSON

func (o *LoadBalancer) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type LoadBalancerApi

type LoadBalancerApi common.Service

LoadBalancerApi service type

func NewLoadBalancerApi

func NewLoadBalancerApi(client *common.APIClient) *LoadBalancerApi

NewLoadBalancerApi Returns NewLoadBalancerApi.

func (*LoadBalancerApi) GetLoadBalancer

func (a *LoadBalancerApi) GetLoadBalancer(ctx _context.Context, orgName string, environmentName string) (LoadBalancer, *_nethttp.Response, error)

GetLoadBalancer Get the load balancer info in the environment.

type LoadBalancerAvailableType

type LoadBalancerAvailableType string

LoadBalancerAvailableType Whether the loadbalancer is available in the environment.

const (
	LoadBalancerAvailableTypeAvailable   LoadBalancerAvailableType = "Available"
	LoadBalancerAvailableTypeUnavailable LoadBalancerAvailableType = "Unavailable"
	LoadBalancerAvailableTypeChecking    LoadBalancerAvailableType = "Checking"
	LoadBalancerAvailableTypeUnknown     LoadBalancerAvailableType = "Unknown"
)

List of LoadBalancerAvailableType.

func NewLoadBalancerAvailableTypeFromValue

func NewLoadBalancerAvailableTypeFromValue(v string) (*LoadBalancerAvailableType, error)

NewLoadBalancerAvailableTypeFromValue returns a pointer to a valid LoadBalancerAvailableType for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*LoadBalancerAvailableType) GetAllowedValues

func (v *LoadBalancerAvailableType) GetAllowedValues() []LoadBalancerAvailableType

GetAllowedValues returns the list of possible values.

func (LoadBalancerAvailableType) IsValid

func (v LoadBalancerAvailableType) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (LoadBalancerAvailableType) Ptr

Ptr returns reference to LoadBalancerAvailableType value.

func (*LoadBalancerAvailableType) UnmarshalJSON

func (v *LoadBalancerAvailableType) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type LocalizedDescription

type LocalizedDescription struct {
	ZhCn string `json:"zh-CN"`
	EnUs string `json:"en-US"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewLocalizedDescription

func NewLocalizedDescription(zhCn string, enUs string) *LocalizedDescription

NewLocalizedDescription instantiates a new LocalizedDescription 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 NewLocalizedDescriptionWithDefaults

func NewLocalizedDescriptionWithDefaults() *LocalizedDescription

NewLocalizedDescriptionWithDefaults instantiates a new LocalizedDescription 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 (*LocalizedDescription) GetEnUs

func (o *LocalizedDescription) GetEnUs() string

GetEnUs returns the EnUs field value.

func (*LocalizedDescription) GetEnUsOk

func (o *LocalizedDescription) GetEnUsOk() (*string, bool)

GetEnUsOk returns a tuple with the EnUs field value and a boolean to check if the value has been set.

func (*LocalizedDescription) GetZhCn

func (o *LocalizedDescription) GetZhCn() string

GetZhCn returns the ZhCn field value.

func (*LocalizedDescription) GetZhCnOk

func (o *LocalizedDescription) GetZhCnOk() (*string, bool)

GetZhCnOk returns a tuple with the ZhCn field value and a boolean to check if the value has been set.

func (LocalizedDescription) MarshalJSON

func (o LocalizedDescription) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*LocalizedDescription) SetEnUs

func (o *LocalizedDescription) SetEnUs(v string)

SetEnUs sets field value.

func (*LocalizedDescription) SetZhCn

func (o *LocalizedDescription) SetZhCn(v string)

SetZhCn sets field value.

func (*LocalizedDescription) UnmarshalJSON

func (o *LocalizedDescription) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type LogDisk

type LogDisk struct {
	LogDiskCapacity *string `json:"log_disk_capacity,omitempty"`
	LogDiskAssigned *string `json:"log_disk_assigned,omitempty"`
	LogDiskInUse    *string `json:"log_disk_in_use,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewLogDisk

func NewLogDisk() *LogDisk

NewLogDisk instantiates a new LogDisk 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 NewLogDiskWithDefaults

func NewLogDiskWithDefaults() *LogDisk

NewLogDiskWithDefaults instantiates a new LogDisk 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 (*LogDisk) GetLogDiskAssigned

func (o *LogDisk) GetLogDiskAssigned() string

GetLogDiskAssigned returns the LogDiskAssigned field value if set, zero value otherwise.

func (*LogDisk) GetLogDiskAssignedOk

func (o *LogDisk) GetLogDiskAssignedOk() (*string, bool)

GetLogDiskAssignedOk returns a tuple with the LogDiskAssigned field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LogDisk) GetLogDiskCapacity

func (o *LogDisk) GetLogDiskCapacity() string

GetLogDiskCapacity returns the LogDiskCapacity field value if set, zero value otherwise.

func (*LogDisk) GetLogDiskCapacityOk

func (o *LogDisk) GetLogDiskCapacityOk() (*string, bool)

GetLogDiskCapacityOk returns a tuple with the LogDiskCapacity field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LogDisk) GetLogDiskInUse

func (o *LogDisk) GetLogDiskInUse() string

GetLogDiskInUse returns the LogDiskInUse field value if set, zero value otherwise.

func (*LogDisk) GetLogDiskInUseOk

func (o *LogDisk) GetLogDiskInUseOk() (*string, bool)

GetLogDiskInUseOk returns a tuple with the LogDiskInUse field value if set, nil otherwise and a boolean to check if the value has been set.

func (*LogDisk) HasLogDiskAssigned

func (o *LogDisk) HasLogDiskAssigned() bool

HasLogDiskAssigned returns a boolean if a field has been set.

func (*LogDisk) HasLogDiskCapacity

func (o *LogDisk) HasLogDiskCapacity() bool

HasLogDiskCapacity returns a boolean if a field has been set.

func (*LogDisk) HasLogDiskInUse

func (o *LogDisk) HasLogDiskInUse() bool

HasLogDiskInUse returns a boolean if a field has been set.

func (LogDisk) MarshalJSON

func (o LogDisk) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*LogDisk) SetLogDiskAssigned

func (o *LogDisk) SetLogDiskAssigned(v string)

SetLogDiskAssigned gets a reference to the given string and assigns it to the LogDiskAssigned field.

func (*LogDisk) SetLogDiskCapacity

func (o *LogDisk) SetLogDiskCapacity(v string)

SetLogDiskCapacity gets a reference to the given string and assigns it to the LogDiskCapacity field.

func (*LogDisk) SetLogDiskInUse

func (o *LogDisk) SetLogDiskInUse(v string)

SetLogDiskInUse gets a reference to the given string and assigns it to the LogDiskInUse field.

func (*LogDisk) UnmarshalJSON

func (o *LogDisk) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type LogOption

type LogOption struct {
	Component string `json:"component"`
	Error     bool   `json:"error"`
	Slow      bool   `json:"slow"`
	Audit     bool   `json:"audit"`
	Running   bool   `json:"running"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewLogOption

func NewLogOption(component string, error bool, slow bool, audit bool, running bool) *LogOption

NewLogOption instantiates a new LogOption 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 NewLogOptionWithDefaults

func NewLogOptionWithDefaults() *LogOption

NewLogOptionWithDefaults instantiates a new LogOption 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 (*LogOption) GetAudit

func (o *LogOption) GetAudit() bool

GetAudit returns the Audit field value.

func (*LogOption) GetAuditOk

func (o *LogOption) GetAuditOk() (*bool, bool)

GetAuditOk returns a tuple with the Audit field value and a boolean to check if the value has been set.

func (*LogOption) GetComponent

func (o *LogOption) GetComponent() string

GetComponent returns the Component field value.

func (*LogOption) GetComponentOk

func (o *LogOption) GetComponentOk() (*string, bool)

GetComponentOk returns a tuple with the Component field value and a boolean to check if the value has been set.

func (*LogOption) GetError

func (o *LogOption) GetError() bool

GetError returns the Error field value.

func (*LogOption) GetErrorOk

func (o *LogOption) GetErrorOk() (*bool, bool)

GetErrorOk returns a tuple with the Error field value and a boolean to check if the value has been set.

func (*LogOption) GetRunning

func (o *LogOption) GetRunning() bool

GetRunning returns the Running field value.

func (*LogOption) GetRunningOk

func (o *LogOption) GetRunningOk() (*bool, bool)

GetRunningOk returns a tuple with the Running field value and a boolean to check if the value has been set.

func (*LogOption) GetSlow

func (o *LogOption) GetSlow() bool

GetSlow returns the Slow field value.

func (*LogOption) GetSlowOk

func (o *LogOption) GetSlowOk() (*bool, bool)

GetSlowOk returns a tuple with the Slow field value and a boolean to check if the value has been set.

func (LogOption) MarshalJSON

func (o LogOption) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*LogOption) SetAudit

func (o *LogOption) SetAudit(v bool)

SetAudit sets field value.

func (*LogOption) SetComponent

func (o *LogOption) SetComponent(v string)

SetComponent sets field value.

func (*LogOption) SetError

func (o *LogOption) SetError(v bool)

SetError sets field value.

func (*LogOption) SetRunning

func (o *LogOption) SetRunning(v bool)

SetRunning sets field value.

func (*LogOption) SetSlow

func (o *LogOption) SetSlow(v bool)

SetSlow sets field value.

func (*LogOption) UnmarshalJSON

func (o *LogOption) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ManifestType

type ManifestType string
const (
	ManifestTypeService          ManifestType = "service"
	ManifestTypeConfigmap        ManifestType = "configmap"
	ManifestTypeSecret           ManifestType = "secret"
	ManifestTypeEvent            ManifestType = "event"
	ManifestTypeOpsrequest       ManifestType = "opsrequest"
	ManifestTypeConfigconstraint ManifestType = "configconstraint"
)

List of ManifestType.

func NewManifestTypeFromValue

func NewManifestTypeFromValue(v string) (*ManifestType, error)

NewManifestTypeFromValue returns a pointer to a valid ManifestType for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*ManifestType) GetAllowedValues

func (v *ManifestType) GetAllowedValues() []ManifestType

GetAllowedValues returns the list of possible values.

func (ManifestType) IsValid

func (v ManifestType) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (ManifestType) Ptr

func (v ManifestType) Ptr() *ManifestType

Ptr returns reference to ManifestType value.

func (*ManifestType) UnmarshalJSON

func (v *ManifestType) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type MarkClusterApi

type MarkClusterApi common.Service

MarkClusterApi service type

func NewMarkClusterApi

func NewMarkClusterApi(client *common.APIClient) *MarkClusterApi

NewMarkClusterApi Returns NewMarkClusterApi.

func (*MarkClusterApi) MarkClusterRestoreCompleted

func (a *MarkClusterApi) MarkClusterRestoreCompleted(ctx _context.Context, orgName string, clusterName string) (*_nethttp.Response, error)

MarkClusterRestoreCompleted mark cluster to restore completed, usually used when manually repairing or recovering issues.

type MemberApi

type MemberApi common.Service

MemberApi service type

func NewMemberApi

func NewMemberApi(client *common.APIClient) *MemberApi

NewMemberApi Returns NewMemberApi.

func (*MemberApi) AddOrgMember

func (a *MemberApi) AddOrgMember(ctx _context.Context, orgName string, body OrgMemberAdd) (OrgMember, *_nethttp.Response, error)

AddOrgMember Add member. Add organization with specific role

func (*MemberApi) DeleteOrgMember

func (a *MemberApi) DeleteOrgMember(ctx _context.Context, orgName string, memberId string) (*_nethttp.Response, error)

DeleteOrgMember Delete member. delete a Org Member

func (*MemberApi) ListOrgMember

ListOrgMember List members. list members of the specified Org

func (*MemberApi) ListOrgMemberPermission

func (a *MemberApi) ListOrgMemberPermission(ctx _context.Context, orgName string) (PermissionList, *_nethttp.Response, error)

ListOrgMemberPermission List permissions of a member.

func (*MemberApi) PatchOrgMember

func (a *MemberApi) PatchOrgMember(ctx _context.Context, orgName string, memberId string, body OrgMemberUpdate) (OrgMember, *_nethttp.Response, error)

PatchOrgMember Update member role. Only authenticated organization admins can update the member's role

func (*MemberApi) ReadOrgMember

func (a *MemberApi) ReadOrgMember(ctx _context.Context, orgName string, memberId string) (OrgMember, *_nethttp.Response, error)

ReadOrgMember Get member. read the specified OrgMember

type Memory

type Memory struct {
	MemCapacity *string `json:"mem_capacity,omitempty"`
	MemoryLimit *string `json:"memory_limit,omitempty"`
	MemAssigned *string `json:"mem_assigned,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewMemory

func NewMemory() *Memory

NewMemory instantiates a new Memory 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 NewMemoryWithDefaults

func NewMemoryWithDefaults() *Memory

NewMemoryWithDefaults instantiates a new Memory 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 (*Memory) GetMemAssigned

func (o *Memory) GetMemAssigned() string

GetMemAssigned returns the MemAssigned field value if set, zero value otherwise.

func (*Memory) GetMemAssignedOk

func (o *Memory) GetMemAssignedOk() (*string, bool)

GetMemAssignedOk returns a tuple with the MemAssigned field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Memory) GetMemCapacity

func (o *Memory) GetMemCapacity() string

GetMemCapacity returns the MemCapacity field value if set, zero value otherwise.

func (*Memory) GetMemCapacityOk

func (o *Memory) GetMemCapacityOk() (*string, bool)

GetMemCapacityOk returns a tuple with the MemCapacity field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Memory) GetMemoryLimit

func (o *Memory) GetMemoryLimit() string

GetMemoryLimit returns the MemoryLimit field value if set, zero value otherwise.

func (*Memory) GetMemoryLimitOk

func (o *Memory) GetMemoryLimitOk() (*string, bool)

GetMemoryLimitOk returns a tuple with the MemoryLimit field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Memory) HasMemAssigned

func (o *Memory) HasMemAssigned() bool

HasMemAssigned returns a boolean if a field has been set.

func (*Memory) HasMemCapacity

func (o *Memory) HasMemCapacity() bool

HasMemCapacity returns a boolean if a field has been set.

func (*Memory) HasMemoryLimit

func (o *Memory) HasMemoryLimit() bool

HasMemoryLimit returns a boolean if a field has been set.

func (Memory) MarshalJSON

func (o Memory) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*Memory) SetMemAssigned

func (o *Memory) SetMemAssigned(v string)

SetMemAssigned gets a reference to the given string and assigns it to the MemAssigned field.

func (*Memory) SetMemCapacity

func (o *Memory) SetMemCapacity(v string)

SetMemCapacity gets a reference to the given string and assigns it to the MemCapacity field.

func (*Memory) SetMemoryLimit

func (o *Memory) SetMemoryLimit(v string)

SetMemoryLimit gets a reference to the given string and assigns it to the MemoryLimit field.

func (*Memory) UnmarshalJSON

func (o *Memory) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type MetricsApi

type MetricsApi common.Service

MetricsApi service type

func NewMetricsApi

func NewMetricsApi(client *common.APIClient) *MetricsApi

NewMetricsApi Returns NewMetricsApi.

func (*MetricsApi) QueryClusterMetrics

func (a *MetricsApi) QueryClusterMetrics(ctx _context.Context, orgName string, clusterName string, query string, queryType MetricsQueryType, o ...QueryClusterMetricsOptionalParameters) (ClusterMetrics, *_nethttp.Response, error)

QueryClusterMetrics Query cluster metrics. Query cluster metrics by specified metric name and instance name, support instant and range query

type MetricsOption

type MetricsOption struct {
	ReplicationLag *MetricsOptionReplicationLag `json:"replicationLag,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewMetricsOption

func NewMetricsOption() *MetricsOption

NewMetricsOption instantiates a new MetricsOption 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 NewMetricsOptionWithDefaults

func NewMetricsOptionWithDefaults() *MetricsOption

NewMetricsOptionWithDefaults instantiates a new MetricsOption 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 (*MetricsOption) GetReplicationLag

func (o *MetricsOption) GetReplicationLag() MetricsOptionReplicationLag

GetReplicationLag returns the ReplicationLag field value if set, zero value otherwise.

func (*MetricsOption) GetReplicationLagOk

func (o *MetricsOption) GetReplicationLagOk() (*MetricsOptionReplicationLag, bool)

GetReplicationLagOk returns a tuple with the ReplicationLag field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MetricsOption) HasReplicationLag

func (o *MetricsOption) HasReplicationLag() bool

HasReplicationLag returns a boolean if a field has been set.

func (MetricsOption) MarshalJSON

func (o MetricsOption) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*MetricsOption) SetReplicationLag

func (o *MetricsOption) SetReplicationLag(v MetricsOptionReplicationLag)

SetReplicationLag gets a reference to the given MetricsOptionReplicationLag and assigns it to the ReplicationLag field.

func (*MetricsOption) UnmarshalJSON

func (o *MetricsOption) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type MetricsOptionReplicationLag

type MetricsOptionReplicationLag struct {
	QueryPattern *string `json:"queryPattern,omitempty"`
	// Specifies the type of metrics query to be performed.
	// 'instant' for a single point in time, 'range' for a time range.
	//
	QueryType *EngineOptionsMetricsQueryType `json:"queryType,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewMetricsOptionReplicationLag

func NewMetricsOptionReplicationLag() *MetricsOptionReplicationLag

NewMetricsOptionReplicationLag instantiates a new MetricsOptionReplicationLag 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 NewMetricsOptionReplicationLagWithDefaults

func NewMetricsOptionReplicationLagWithDefaults() *MetricsOptionReplicationLag

NewMetricsOptionReplicationLagWithDefaults instantiates a new MetricsOptionReplicationLag 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 (*MetricsOptionReplicationLag) GetQueryPattern

func (o *MetricsOptionReplicationLag) GetQueryPattern() string

GetQueryPattern returns the QueryPattern field value if set, zero value otherwise.

func (*MetricsOptionReplicationLag) GetQueryPatternOk

func (o *MetricsOptionReplicationLag) GetQueryPatternOk() (*string, bool)

GetQueryPatternOk returns a tuple with the QueryPattern field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MetricsOptionReplicationLag) GetQueryType

GetQueryType returns the QueryType field value if set, zero value otherwise.

func (*MetricsOptionReplicationLag) GetQueryTypeOk

GetQueryTypeOk returns a tuple with the QueryType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*MetricsOptionReplicationLag) HasQueryPattern

func (o *MetricsOptionReplicationLag) HasQueryPattern() bool

HasQueryPattern returns a boolean if a field has been set.

func (*MetricsOptionReplicationLag) HasQueryType

func (o *MetricsOptionReplicationLag) HasQueryType() bool

HasQueryType returns a boolean if a field has been set.

func (MetricsOptionReplicationLag) MarshalJSON

func (o MetricsOptionReplicationLag) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*MetricsOptionReplicationLag) SetQueryPattern

func (o *MetricsOptionReplicationLag) SetQueryPattern(v string)

SetQueryPattern gets a reference to the given string and assigns it to the QueryPattern field.

func (*MetricsOptionReplicationLag) SetQueryType

SetQueryType gets a reference to the given EngineOptionsMetricsQueryType and assigns it to the QueryType field.

func (*MetricsOptionReplicationLag) UnmarshalJSON

func (o *MetricsOptionReplicationLag) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type MetricsQueryType

type MetricsQueryType string
const (
	MetricsQueryTypeInstant MetricsQueryType = "instant"
	MetricsQueryTypeRange   MetricsQueryType = "range"
)

List of MetricsQueryType.

func NewMetricsQueryTypeFromValue

func NewMetricsQueryTypeFromValue(v string) (*MetricsQueryType, error)

NewMetricsQueryTypeFromValue returns a pointer to a valid MetricsQueryType for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*MetricsQueryType) GetAllowedValues

func (v *MetricsQueryType) GetAllowedValues() []MetricsQueryType

GetAllowedValues returns the list of possible values.

func (MetricsQueryType) IsValid

func (v MetricsQueryType) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (MetricsQueryType) Ptr

Ptr returns reference to MetricsQueryType value.

func (*MetricsQueryType) UnmarshalJSON

func (v *MetricsQueryType) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type ModeComponent

type ModeComponent struct {
	Component    string          `json:"component"`
	Shards       *IntegerOption  `json:"shards,omitempty"`
	Replicas     IntegerOption   `json:"replicas"`
	Cpu          FloatOption     `json:"cpu"`
	Memory       FloatOption     `json:"memory"`
	HideEnpoints bool            `json:"hideEnpoints"`
	HideOnCreate bool            `json:"hideOnCreate"`
	Storages     []StorageOption `json:"storages"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewModeComponent

func NewModeComponent(component string, replicas IntegerOption, cpu FloatOption, memory FloatOption, hideEnpoints bool, hideOnCreate bool, storages []StorageOption) *ModeComponent

NewModeComponent instantiates a new ModeComponent 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 NewModeComponentWithDefaults

func NewModeComponentWithDefaults() *ModeComponent

NewModeComponentWithDefaults instantiates a new ModeComponent 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 (*ModeComponent) GetComponent

func (o *ModeComponent) GetComponent() string

GetComponent returns the Component field value.

func (*ModeComponent) GetComponentOk

func (o *ModeComponent) GetComponentOk() (*string, bool)

GetComponentOk returns a tuple with the Component field value and a boolean to check if the value has been set.

func (*ModeComponent) GetCpu

func (o *ModeComponent) GetCpu() FloatOption

GetCpu returns the Cpu field value.

func (*ModeComponent) GetCpuOk

func (o *ModeComponent) GetCpuOk() (*FloatOption, bool)

GetCpuOk returns a tuple with the Cpu field value and a boolean to check if the value has been set.

func (*ModeComponent) GetHideEnpoints

func (o *ModeComponent) GetHideEnpoints() bool

GetHideEnpoints returns the HideEnpoints field value.

func (*ModeComponent) GetHideEnpointsOk

func (o *ModeComponent) GetHideEnpointsOk() (*bool, bool)

GetHideEnpointsOk returns a tuple with the HideEnpoints field value and a boolean to check if the value has been set.

func (*ModeComponent) GetHideOnCreate

func (o *ModeComponent) GetHideOnCreate() bool

GetHideOnCreate returns the HideOnCreate field value.

func (*ModeComponent) GetHideOnCreateOk

func (o *ModeComponent) GetHideOnCreateOk() (*bool, bool)

GetHideOnCreateOk returns a tuple with the HideOnCreate field value and a boolean to check if the value has been set.

func (*ModeComponent) GetMemory

func (o *ModeComponent) GetMemory() FloatOption

GetMemory returns the Memory field value.

func (*ModeComponent) GetMemoryOk

func (o *ModeComponent) GetMemoryOk() (*FloatOption, bool)

GetMemoryOk returns a tuple with the Memory field value and a boolean to check if the value has been set.

func (*ModeComponent) GetReplicas

func (o *ModeComponent) GetReplicas() IntegerOption

GetReplicas returns the Replicas field value.

func (*ModeComponent) GetReplicasOk

func (o *ModeComponent) GetReplicasOk() (*IntegerOption, bool)

GetReplicasOk returns a tuple with the Replicas field value and a boolean to check if the value has been set.

func (*ModeComponent) GetShards

func (o *ModeComponent) GetShards() IntegerOption

GetShards returns the Shards field value if set, zero value otherwise.

func (*ModeComponent) GetShardsOk

func (o *ModeComponent) GetShardsOk() (*IntegerOption, bool)

GetShardsOk returns a tuple with the Shards field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ModeComponent) GetStorages

func (o *ModeComponent) GetStorages() []StorageOption

GetStorages returns the Storages field value.

func (*ModeComponent) GetStoragesOk

func (o *ModeComponent) GetStoragesOk() (*[]StorageOption, bool)

GetStoragesOk returns a tuple with the Storages field value and a boolean to check if the value has been set.

func (*ModeComponent) HasShards

func (o *ModeComponent) HasShards() bool

HasShards returns a boolean if a field has been set.

func (ModeComponent) MarshalJSON

func (o ModeComponent) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ModeComponent) SetComponent

func (o *ModeComponent) SetComponent(v string)

SetComponent sets field value.

func (*ModeComponent) SetCpu

func (o *ModeComponent) SetCpu(v FloatOption)

SetCpu sets field value.

func (*ModeComponent) SetHideEnpoints

func (o *ModeComponent) SetHideEnpoints(v bool)

SetHideEnpoints sets field value.

func (*ModeComponent) SetHideOnCreate

func (o *ModeComponent) SetHideOnCreate(v bool)

SetHideOnCreate sets field value.

func (*ModeComponent) SetMemory

func (o *ModeComponent) SetMemory(v FloatOption)

SetMemory sets field value.

func (*ModeComponent) SetReplicas

func (o *ModeComponent) SetReplicas(v IntegerOption)

SetReplicas sets field value.

func (*ModeComponent) SetShards

func (o *ModeComponent) SetShards(v IntegerOption)

SetShards gets a reference to the given IntegerOption and assigns it to the Shards field.

func (*ModeComponent) SetStorages

func (o *ModeComponent) SetStorages(v []StorageOption)

SetStorages sets field value.

func (*ModeComponent) UnmarshalJSON

func (o *ModeComponent) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ModeOption

type ModeOption struct {
	Name        string                 `json:"name"`
	Title       LocalizedDescription   `json:"title"`
	Description LocalizedDescription   `json:"description"`
	Components  []ModeComponent        `json:"components"`
	Proxy       *ModeOptionProxy       `json:"proxy,omitempty"`
	Extra       map[string]interface{} `json:"extra,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewModeOption

func NewModeOption(name string, title LocalizedDescription, description LocalizedDescription, components []ModeComponent) *ModeOption

NewModeOption instantiates a new ModeOption 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 NewModeOptionWithDefaults

func NewModeOptionWithDefaults() *ModeOption

NewModeOptionWithDefaults instantiates a new ModeOption 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 (*ModeOption) GetComponents

func (o *ModeOption) GetComponents() []ModeComponent

GetComponents returns the Components field value.

func (*ModeOption) GetComponentsOk

func (o *ModeOption) GetComponentsOk() (*[]ModeComponent, bool)

GetComponentsOk returns a tuple with the Components field value and a boolean to check if the value has been set.

func (*ModeOption) GetDescription

func (o *ModeOption) GetDescription() LocalizedDescription

GetDescription returns the Description field value.

func (*ModeOption) GetDescriptionOk

func (o *ModeOption) GetDescriptionOk() (*LocalizedDescription, bool)

GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.

func (*ModeOption) GetExtra

func (o *ModeOption) GetExtra() map[string]interface{}

GetExtra returns the Extra field value if set, zero value otherwise.

func (*ModeOption) GetExtraOk

func (o *ModeOption) GetExtraOk() (*map[string]interface{}, bool)

GetExtraOk returns a tuple with the Extra field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ModeOption) GetName

func (o *ModeOption) GetName() string

GetName returns the Name field value.

func (*ModeOption) GetNameOk

func (o *ModeOption) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*ModeOption) GetProxy

func (o *ModeOption) GetProxy() ModeOptionProxy

GetProxy returns the Proxy field value if set, zero value otherwise.

func (*ModeOption) GetProxyOk

func (o *ModeOption) GetProxyOk() (*ModeOptionProxy, bool)

GetProxyOk returns a tuple with the Proxy field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ModeOption) GetTitle

func (o *ModeOption) GetTitle() LocalizedDescription

GetTitle returns the Title field value.

func (*ModeOption) GetTitleOk

func (o *ModeOption) GetTitleOk() (*LocalizedDescription, bool)

GetTitleOk returns a tuple with the Title field value and a boolean to check if the value has been set.

func (*ModeOption) HasExtra

func (o *ModeOption) HasExtra() bool

HasExtra returns a boolean if a field has been set.

func (*ModeOption) HasProxy

func (o *ModeOption) HasProxy() bool

HasProxy returns a boolean if a field has been set.

func (ModeOption) MarshalJSON

func (o ModeOption) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ModeOption) SetComponents

func (o *ModeOption) SetComponents(v []ModeComponent)

SetComponents sets field value.

func (*ModeOption) SetDescription

func (o *ModeOption) SetDescription(v LocalizedDescription)

SetDescription sets field value.

func (*ModeOption) SetExtra

func (o *ModeOption) SetExtra(v map[string]interface{})

SetExtra gets a reference to the given map[string]interface{} and assigns it to the Extra field.

func (*ModeOption) SetName

func (o *ModeOption) SetName(v string)

SetName sets field value.

func (*ModeOption) SetProxy

func (o *ModeOption) SetProxy(v ModeOptionProxy)

SetProxy gets a reference to the given ModeOptionProxy and assigns it to the Proxy field.

func (*ModeOption) SetTitle

func (o *ModeOption) SetTitle(v LocalizedDescription)

SetTitle sets field value.

func (*ModeOption) UnmarshalJSON

func (o *ModeOption) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ModeOptionProxy

type ModeOptionProxy struct {
	Enabled *bool `json:"enabled,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewModeOptionProxy

func NewModeOptionProxy() *ModeOptionProxy

NewModeOptionProxy instantiates a new ModeOptionProxy 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 NewModeOptionProxyWithDefaults

func NewModeOptionProxyWithDefaults() *ModeOptionProxy

NewModeOptionProxyWithDefaults instantiates a new ModeOptionProxy 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 (*ModeOptionProxy) GetEnabled

func (o *ModeOptionProxy) GetEnabled() bool

GetEnabled returns the Enabled field value if set, zero value otherwise.

func (*ModeOptionProxy) GetEnabledOk

func (o *ModeOptionProxy) GetEnabledOk() (*bool, bool)

GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ModeOptionProxy) HasEnabled

func (o *ModeOptionProxy) HasEnabled() bool

HasEnabled returns a boolean if a field has been set.

func (ModeOptionProxy) MarshalJSON

func (o ModeOptionProxy) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ModeOptionProxy) SetEnabled

func (o *ModeOptionProxy) SetEnabled(v bool)

SetEnabled gets a reference to the given bool and assigns it to the Enabled field.

func (*ModeOptionProxy) UnmarshalJSON

func (o *ModeOptionProxy) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type NetworkConfig

type NetworkConfig struct {
	// Enable node port service for this environment
	NodePortEnabled *bool `json:"nodePortEnabled,omitempty"`
	// Enable load balancer service for this environment
	LbEnabled *bool `json:"lbEnabled,omitempty"`
	// Enable the Internet load balancer service for this environment
	InternetLbEnabled *bool `json:"internetLBEnabled,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

NetworkConfig Configuration of networking for this environment

func NewNetworkConfig

func NewNetworkConfig() *NetworkConfig

NewNetworkConfig instantiates a new NetworkConfig 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 NewNetworkConfigWithDefaults

func NewNetworkConfigWithDefaults() *NetworkConfig

NewNetworkConfigWithDefaults instantiates a new NetworkConfig 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 (*NetworkConfig) GetInternetLbEnabled

func (o *NetworkConfig) GetInternetLbEnabled() bool

GetInternetLbEnabled returns the InternetLbEnabled field value if set, zero value otherwise.

func (*NetworkConfig) GetInternetLbEnabledOk

func (o *NetworkConfig) GetInternetLbEnabledOk() (*bool, bool)

GetInternetLbEnabledOk returns a tuple with the InternetLbEnabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NetworkConfig) GetLbEnabled

func (o *NetworkConfig) GetLbEnabled() bool

GetLbEnabled returns the LbEnabled field value if set, zero value otherwise.

func (*NetworkConfig) GetLbEnabledOk

func (o *NetworkConfig) GetLbEnabledOk() (*bool, bool)

GetLbEnabledOk returns a tuple with the LbEnabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NetworkConfig) GetNodePortEnabled

func (o *NetworkConfig) GetNodePortEnabled() bool

GetNodePortEnabled returns the NodePortEnabled field value if set, zero value otherwise.

func (*NetworkConfig) GetNodePortEnabledOk

func (o *NetworkConfig) GetNodePortEnabledOk() (*bool, bool)

GetNodePortEnabledOk returns a tuple with the NodePortEnabled field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NetworkConfig) HasInternetLbEnabled

func (o *NetworkConfig) HasInternetLbEnabled() bool

HasInternetLbEnabled returns a boolean if a field has been set.

func (*NetworkConfig) HasLbEnabled

func (o *NetworkConfig) HasLbEnabled() bool

HasLbEnabled returns a boolean if a field has been set.

func (*NetworkConfig) HasNodePortEnabled

func (o *NetworkConfig) HasNodePortEnabled() bool

HasNodePortEnabled returns a boolean if a field has been set.

func (NetworkConfig) MarshalJSON

func (o NetworkConfig) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*NetworkConfig) SetInternetLbEnabled

func (o *NetworkConfig) SetInternetLbEnabled(v bool)

SetInternetLbEnabled gets a reference to the given bool and assigns it to the InternetLbEnabled field.

func (*NetworkConfig) SetLbEnabled

func (o *NetworkConfig) SetLbEnabled(v bool)

SetLbEnabled gets a reference to the given bool and assigns it to the LbEnabled field.

func (*NetworkConfig) SetNodePortEnabled

func (o *NetworkConfig) SetNodePortEnabled(v bool)

SetNodePortEnabled gets a reference to the given bool and assigns it to the NodePortEnabled field.

func (*NetworkConfig) UnmarshalJSON

func (o *NetworkConfig) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type NodeGroup

type NodeGroup struct {
	// The full, unique name of this Object, name part must consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName',  or 'my.name',  or '123-abc'
	Name string `json:"name"`
	// the description of the node group
	Description *string `json:"description,omitempty"`
	// the nodes of the node group
	Nodes []string `json:"nodes"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

NodeGroup NodeGroup creation info

func NewNodeGroup

func NewNodeGroup(name string, nodes []string) *NodeGroup

NewNodeGroup instantiates a new NodeGroup 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 NewNodeGroupWithDefaults

func NewNodeGroupWithDefaults() *NodeGroup

NewNodeGroupWithDefaults instantiates a new NodeGroup 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 (*NodeGroup) GetDescription

func (o *NodeGroup) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*NodeGroup) GetDescriptionOk

func (o *NodeGroup) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NodeGroup) GetName

func (o *NodeGroup) GetName() string

GetName returns the Name field value.

func (*NodeGroup) GetNameOk

func (o *NodeGroup) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*NodeGroup) GetNodes

func (o *NodeGroup) GetNodes() []string

GetNodes returns the Nodes field value.

func (*NodeGroup) GetNodesOk

func (o *NodeGroup) GetNodesOk() (*[]string, bool)

GetNodesOk returns a tuple with the Nodes field value and a boolean to check if the value has been set.

func (*NodeGroup) HasDescription

func (o *NodeGroup) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (NodeGroup) MarshalJSON

func (o NodeGroup) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*NodeGroup) SetDescription

func (o *NodeGroup) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*NodeGroup) SetName

func (o *NodeGroup) SetName(v string)

SetName sets field value.

func (*NodeGroup) SetNodes

func (o *NodeGroup) SetNodes(v []string)

SetNodes sets field value.

func (*NodeGroup) UnmarshalJSON

func (o *NodeGroup) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ObParameter

type ObParameter struct {
	// The name of the parameter
	Name string `json:"name"`
	// The value of the parameter
	Value string `json:"value"`
	// The type of the parameter value
	DataType string `json:"dataType"`
	// The description of the parameter
	Description string `json:"description"`
	// The value options of the parameter
	Enum []map[string]interface{} `json:"enum"`
	// The maximum value of the parameter
	Maximum float64 `json:"maximum"`
	// The minimum value of the parameter
	Minimum float64 `json:"minimum"`
	// Whether the parameter is an immutable parameter, immutable parameters cannot be modified
	Immutable *bool `json:"immutable,omitempty"`
	// Whether the parameter is variable or a parameter
	IsVariable *bool `json:"isVariable,omitempty"`
	// EditLevel represents the way the configuration item is modified.
	EditLevel *string `json:"editLevel,omitempty"`
	// Whether the parameter is read-only
	ReadOnly bool `json:"readOnly"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewObParameter

func NewObParameter(name string, value string, dataType string, description string, enum []map[string]interface{}, maximum float64, minimum float64, readOnly bool) *ObParameter

NewObParameter instantiates a new ObParameter 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 NewObParameterWithDefaults

func NewObParameterWithDefaults() *ObParameter

NewObParameterWithDefaults instantiates a new ObParameter 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 (*ObParameter) GetDataType

func (o *ObParameter) GetDataType() string

GetDataType returns the DataType field value.

func (*ObParameter) GetDataTypeOk

func (o *ObParameter) GetDataTypeOk() (*string, bool)

GetDataTypeOk returns a tuple with the DataType field value and a boolean to check if the value has been set.

func (*ObParameter) GetDescription

func (o *ObParameter) GetDescription() string

GetDescription returns the Description field value.

func (*ObParameter) GetDescriptionOk

func (o *ObParameter) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.

func (*ObParameter) GetEditLevel

func (o *ObParameter) GetEditLevel() string

GetEditLevel returns the EditLevel field value if set, zero value otherwise.

func (*ObParameter) GetEditLevelOk

func (o *ObParameter) GetEditLevelOk() (*string, bool)

GetEditLevelOk returns a tuple with the EditLevel field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ObParameter) GetEnum

func (o *ObParameter) GetEnum() []map[string]interface{}

GetEnum returns the Enum field value.

func (*ObParameter) GetEnumOk

func (o *ObParameter) GetEnumOk() (*[]map[string]interface{}, bool)

GetEnumOk returns a tuple with the Enum field value and a boolean to check if the value has been set.

func (*ObParameter) GetImmutable

func (o *ObParameter) GetImmutable() bool

GetImmutable returns the Immutable field value if set, zero value otherwise.

func (*ObParameter) GetImmutableOk

func (o *ObParameter) GetImmutableOk() (*bool, bool)

GetImmutableOk returns a tuple with the Immutable field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ObParameter) GetIsVariable

func (o *ObParameter) GetIsVariable() bool

GetIsVariable returns the IsVariable field value if set, zero value otherwise.

func (*ObParameter) GetIsVariableOk

func (o *ObParameter) GetIsVariableOk() (*bool, bool)

GetIsVariableOk returns a tuple with the IsVariable field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ObParameter) GetMaximum

func (o *ObParameter) GetMaximum() float64

GetMaximum returns the Maximum field value.

func (*ObParameter) GetMaximumOk

func (o *ObParameter) GetMaximumOk() (*float64, bool)

GetMaximumOk returns a tuple with the Maximum field value and a boolean to check if the value has been set.

func (*ObParameter) GetMinimum

func (o *ObParameter) GetMinimum() float64

GetMinimum returns the Minimum field value.

func (*ObParameter) GetMinimumOk

func (o *ObParameter) GetMinimumOk() (*float64, bool)

GetMinimumOk returns a tuple with the Minimum field value and a boolean to check if the value has been set.

func (*ObParameter) GetName

func (o *ObParameter) GetName() string

GetName returns the Name field value.

func (*ObParameter) GetNameOk

func (o *ObParameter) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*ObParameter) GetReadOnly

func (o *ObParameter) GetReadOnly() bool

GetReadOnly returns the ReadOnly field value.

func (*ObParameter) GetReadOnlyOk

func (o *ObParameter) GetReadOnlyOk() (*bool, bool)

GetReadOnlyOk returns a tuple with the ReadOnly field value and a boolean to check if the value has been set.

func (*ObParameter) GetValue

func (o *ObParameter) GetValue() string

GetValue returns the Value field value.

func (*ObParameter) GetValueOk

func (o *ObParameter) GetValueOk() (*string, bool)

GetValueOk returns a tuple with the Value field value and a boolean to check if the value has been set.

func (*ObParameter) HasEditLevel

func (o *ObParameter) HasEditLevel() bool

HasEditLevel returns a boolean if a field has been set.

func (*ObParameter) HasImmutable

func (o *ObParameter) HasImmutable() bool

HasImmutable returns a boolean if a field has been set.

func (*ObParameter) HasIsVariable

func (o *ObParameter) HasIsVariable() bool

HasIsVariable returns a boolean if a field has been set.

func (ObParameter) MarshalJSON

func (o ObParameter) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ObParameter) SetDataType

func (o *ObParameter) SetDataType(v string)

SetDataType sets field value.

func (*ObParameter) SetDescription

func (o *ObParameter) SetDescription(v string)

SetDescription sets field value.

func (*ObParameter) SetEditLevel

func (o *ObParameter) SetEditLevel(v string)

SetEditLevel gets a reference to the given string and assigns it to the EditLevel field.

func (*ObParameter) SetEnum

func (o *ObParameter) SetEnum(v []map[string]interface{})

SetEnum sets field value.

func (*ObParameter) SetImmutable

func (o *ObParameter) SetImmutable(v bool)

SetImmutable gets a reference to the given bool and assigns it to the Immutable field.

func (*ObParameter) SetIsVariable

func (o *ObParameter) SetIsVariable(v bool)

SetIsVariable gets a reference to the given bool and assigns it to the IsVariable field.

func (*ObParameter) SetMaximum

func (o *ObParameter) SetMaximum(v float64)

SetMaximum sets field value.

func (*ObParameter) SetMinimum

func (o *ObParameter) SetMinimum(v float64)

SetMinimum sets field value.

func (*ObParameter) SetName

func (o *ObParameter) SetName(v string)

SetName sets field value.

func (*ObParameter) SetReadOnly

func (o *ObParameter) SetReadOnly(v bool)

SetReadOnly sets field value.

func (*ObParameter) SetValue

func (o *ObParameter) SetValue(v string)

SetValue sets field value.

func (*ObParameter) UnmarshalJSON

func (o *ObParameter) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ObSession

type ObSession struct {
	// session id
	Id *string `json:"id,omitempty"`
	// user name
	User *string `json:"user,omitempty"`
	// tenant name
	Tenant *string `json:"tenant,omitempty"`
	// host name
	Host *string `json:"host,omitempty"`
	// database name
	Db *string `json:"db,omitempty"`
	// command
	Command *string `json:"command,omitempty"`
	// time
	Time *string `json:"time,omitempty"`
	// state
	State *string `json:"state,omitempty"`
	// info
	Info *string `json:"info,omitempty"`
	// ip
	Ip *string `json:"ip,omitempty"`
	// port
	Port *string `json:"port,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewObSession

func NewObSession() *ObSession

NewObSession instantiates a new ObSession 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 NewObSessionWithDefaults

func NewObSessionWithDefaults() *ObSession

NewObSessionWithDefaults instantiates a new ObSession 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 (*ObSession) GetCommand

func (o *ObSession) GetCommand() string

GetCommand returns the Command field value if set, zero value otherwise.

func (*ObSession) GetCommandOk

func (o *ObSession) GetCommandOk() (*string, bool)

GetCommandOk returns a tuple with the Command field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ObSession) GetDb

func (o *ObSession) GetDb() string

GetDb returns the Db field value if set, zero value otherwise.

func (*ObSession) GetDbOk

func (o *ObSession) GetDbOk() (*string, bool)

GetDbOk returns a tuple with the Db field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ObSession) GetHost

func (o *ObSession) GetHost() string

GetHost returns the Host field value if set, zero value otherwise.

func (*ObSession) GetHostOk

func (o *ObSession) GetHostOk() (*string, bool)

GetHostOk returns a tuple with the Host field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ObSession) GetId

func (o *ObSession) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*ObSession) GetIdOk

func (o *ObSession) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ObSession) GetInfo

func (o *ObSession) GetInfo() string

GetInfo returns the Info field value if set, zero value otherwise.

func (*ObSession) GetInfoOk

func (o *ObSession) GetInfoOk() (*string, bool)

GetInfoOk returns a tuple with the Info field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ObSession) GetIp

func (o *ObSession) GetIp() string

GetIp returns the Ip field value if set, zero value otherwise.

func (*ObSession) GetIpOk

func (o *ObSession) GetIpOk() (*string, bool)

GetIpOk returns a tuple with the Ip field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ObSession) GetPort

func (o *ObSession) GetPort() string

GetPort returns the Port field value if set, zero value otherwise.

func (*ObSession) GetPortOk

func (o *ObSession) GetPortOk() (*string, bool)

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 (*ObSession) GetState

func (o *ObSession) GetState() string

GetState returns the State field value if set, zero value otherwise.

func (*ObSession) GetStateOk

func (o *ObSession) GetStateOk() (*string, bool)

GetStateOk returns a tuple with the State field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ObSession) GetTenant

func (o *ObSession) GetTenant() string

GetTenant returns the Tenant field value if set, zero value otherwise.

func (*ObSession) GetTenantOk

func (o *ObSession) GetTenantOk() (*string, bool)

GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ObSession) GetTime

func (o *ObSession) GetTime() string

GetTime returns the Time field value if set, zero value otherwise.

func (*ObSession) GetTimeOk

func (o *ObSession) GetTimeOk() (*string, bool)

GetTimeOk returns a tuple with the Time field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ObSession) GetUser

func (o *ObSession) GetUser() string

GetUser returns the User field value if set, zero value otherwise.

func (*ObSession) GetUserOk

func (o *ObSession) GetUserOk() (*string, bool)

GetUserOk returns a tuple with the User field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ObSession) HasCommand

func (o *ObSession) HasCommand() bool

HasCommand returns a boolean if a field has been set.

func (*ObSession) HasDb

func (o *ObSession) HasDb() bool

HasDb returns a boolean if a field has been set.

func (*ObSession) HasHost

func (o *ObSession) HasHost() bool

HasHost returns a boolean if a field has been set.

func (*ObSession) HasId

func (o *ObSession) HasId() bool

HasId returns a boolean if a field has been set.

func (*ObSession) HasInfo

func (o *ObSession) HasInfo() bool

HasInfo returns a boolean if a field has been set.

func (*ObSession) HasIp

func (o *ObSession) HasIp() bool

HasIp returns a boolean if a field has been set.

func (*ObSession) HasPort

func (o *ObSession) HasPort() bool

HasPort returns a boolean if a field has been set.

func (*ObSession) HasState

func (o *ObSession) HasState() bool

HasState returns a boolean if a field has been set.

func (*ObSession) HasTenant

func (o *ObSession) HasTenant() bool

HasTenant returns a boolean if a field has been set.

func (*ObSession) HasTime

func (o *ObSession) HasTime() bool

HasTime returns a boolean if a field has been set.

func (*ObSession) HasUser

func (o *ObSession) HasUser() bool

HasUser returns a boolean if a field has been set.

func (ObSession) MarshalJSON

func (o ObSession) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ObSession) SetCommand

func (o *ObSession) SetCommand(v string)

SetCommand gets a reference to the given string and assigns it to the Command field.

func (*ObSession) SetDb

func (o *ObSession) SetDb(v string)

SetDb gets a reference to the given string and assigns it to the Db field.

func (*ObSession) SetHost

func (o *ObSession) SetHost(v string)

SetHost gets a reference to the given string and assigns it to the Host field.

func (*ObSession) SetId

func (o *ObSession) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*ObSession) SetInfo

func (o *ObSession) SetInfo(v string)

SetInfo gets a reference to the given string and assigns it to the Info field.

func (*ObSession) SetIp

func (o *ObSession) SetIp(v string)

SetIp gets a reference to the given string and assigns it to the Ip field.

func (*ObSession) SetPort

func (o *ObSession) SetPort(v string)

SetPort gets a reference to the given string and assigns it to the Port field.

func (*ObSession) SetState

func (o *ObSession) SetState(v string)

SetState gets a reference to the given string and assigns it to the State field.

func (*ObSession) SetTenant

func (o *ObSession) SetTenant(v string)

SetTenant gets a reference to the given string and assigns it to the Tenant field.

func (*ObSession) SetTime

func (o *ObSession) SetTime(v string)

SetTime gets a reference to the given string and assigns it to the Time field.

func (*ObSession) SetUser

func (o *ObSession) SetUser(v string)

SetUser gets a reference to the given string and assigns it to the User field.

func (*ObSession) UnmarshalJSON

func (o *ObSession) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type Object

type Object struct {
	// Type is the type of db object, like 'Table', 'Views', 'Functions'
	Type *string `json:"type,omitempty"`
	// Count is the number of each object
	Count *int64 `json:"count,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewObject

func NewObject() *Object

NewObject instantiates a new Object 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 NewObjectWithDefaults

func NewObjectWithDefaults() *Object

NewObjectWithDefaults instantiates a new Object 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 (*Object) GetCount

func (o *Object) GetCount() int64

GetCount returns the Count field value if set, zero value otherwise.

func (*Object) GetCountOk

func (o *Object) GetCountOk() (*int64, bool)

GetCountOk returns a tuple with the Count field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Object) GetType

func (o *Object) GetType() string

GetType returns the Type field value if set, zero value otherwise.

func (*Object) GetTypeOk

func (o *Object) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Object) HasCount

func (o *Object) HasCount() bool

HasCount returns a boolean if a field has been set.

func (*Object) HasType

func (o *Object) HasType() bool

HasType returns a boolean if a field has been set.

func (Object) MarshalJSON

func (o Object) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*Object) SetCount

func (o *Object) SetCount(v int64)

SetCount gets a reference to the given int64 and assigns it to the Count field.

func (*Object) SetType

func (o *Object) SetType(v string)

SetType gets a reference to the given string and assigns it to the Type field.

func (*Object) UnmarshalJSON

func (o *Object) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ObjectResponse

type ObjectResponse struct {
	// The data of the Object
	Data map[string]interface{} `json:"data,omitempty"`
	// The type of the Object
	Type *string `json:"type,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewObjectResponse

func NewObjectResponse() *ObjectResponse

NewObjectResponse instantiates a new ObjectResponse 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 NewObjectResponseWithDefaults

func NewObjectResponseWithDefaults() *ObjectResponse

NewObjectResponseWithDefaults instantiates a new ObjectResponse 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 (*ObjectResponse) GetData

func (o *ObjectResponse) GetData() map[string]interface{}

GetData returns the Data field value if set, zero value otherwise.

func (*ObjectResponse) GetDataOk

func (o *ObjectResponse) GetDataOk() (*map[string]interface{}, bool)

GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ObjectResponse) GetType

func (o *ObjectResponse) GetType() string

GetType returns the Type field value if set, zero value otherwise.

func (*ObjectResponse) GetTypeOk

func (o *ObjectResponse) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ObjectResponse) HasData

func (o *ObjectResponse) HasData() bool

HasData returns a boolean if a field has been set.

func (*ObjectResponse) HasType

func (o *ObjectResponse) HasType() bool

HasType returns a boolean if a field has been set.

func (ObjectResponse) MarshalJSON

func (o ObjectResponse) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ObjectResponse) SetData

func (o *ObjectResponse) SetData(v map[string]interface{})

SetData gets a reference to the given map[string]interface{} and assigns it to the Data field.

func (*ObjectResponse) SetType

func (o *ObjectResponse) SetType(v string)

SetType gets a reference to the given string and assigns it to the Type field.

func (*ObjectResponse) UnmarshalJSON

func (o *ObjectResponse) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type OceanbaseApi

type OceanbaseApi common.Service

OceanbaseApi service type

func NewOceanbaseApi

func NewOceanbaseApi(client *common.APIClient) *OceanbaseApi

NewOceanbaseApi Returns NewOceanbaseApi.

func (*OceanbaseApi) GetTenant

func (a *OceanbaseApi) GetTenant(ctx _context.Context, orgName string, clusterName string, tenantId string) (Tenant, *_nethttp.Response, error)

GetTenant get tenants detail information of the oceanbase cluster.

func (*OceanbaseApi) ListTenants

func (a *OceanbaseApi) ListTenants(ctx _context.Context, orgName string, clusterName string) ([]Tenant, *_nethttp.Response, error)

ListTenants list all tenants for the oceanbase cluster.

type OpsExpose

type OpsExpose struct {
	Component *string `json:"component,omitempty"`
	Enable    bool    `json:"enable"`
	// Specifies the type of exposure for the KubeBlocks cluster.
	Type OpsExposeType `json:"type"`
	// Specifies the type of service for the KubeBlocks cluster.
	VpcServiceType *OpsExposeVPCServiceType    `json:"vpcServiceType,omitempty"`
	PortsMapping   []OpsExposePortsMappingItem `json:"portsMapping,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

OpsExpose OpsExpose is the payload to expose a KubeBlocks cluster

func NewOpsExpose

func NewOpsExpose(enable bool, typeVar OpsExposeType) *OpsExpose

NewOpsExpose instantiates a new OpsExpose 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 NewOpsExposeWithDefaults

func NewOpsExposeWithDefaults() *OpsExpose

NewOpsExposeWithDefaults instantiates a new OpsExpose 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 (*OpsExpose) GetComponent

func (o *OpsExpose) GetComponent() string

GetComponent returns the Component field value if set, zero value otherwise.

func (*OpsExpose) GetComponentOk

func (o *OpsExpose) GetComponentOk() (*string, bool)

GetComponentOk returns a tuple with the Component field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OpsExpose) GetEnable

func (o *OpsExpose) GetEnable() bool

GetEnable returns the Enable field value.

func (*OpsExpose) GetEnableOk

func (o *OpsExpose) GetEnableOk() (*bool, bool)

GetEnableOk returns a tuple with the Enable field value and a boolean to check if the value has been set.

func (*OpsExpose) GetPortsMapping

func (o *OpsExpose) GetPortsMapping() []OpsExposePortsMappingItem

GetPortsMapping returns the PortsMapping field value if set, zero value otherwise.

func (*OpsExpose) GetPortsMappingOk

func (o *OpsExpose) GetPortsMappingOk() (*[]OpsExposePortsMappingItem, bool)

GetPortsMappingOk returns a tuple with the PortsMapping field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OpsExpose) GetType

func (o *OpsExpose) GetType() OpsExposeType

GetType returns the Type field value.

func (*OpsExpose) GetTypeOk

func (o *OpsExpose) GetTypeOk() (*OpsExposeType, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (*OpsExpose) GetVpcServiceType

func (o *OpsExpose) GetVpcServiceType() OpsExposeVPCServiceType

GetVpcServiceType returns the VpcServiceType field value if set, zero value otherwise.

func (*OpsExpose) GetVpcServiceTypeOk

func (o *OpsExpose) GetVpcServiceTypeOk() (*OpsExposeVPCServiceType, bool)

GetVpcServiceTypeOk returns a tuple with the VpcServiceType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OpsExpose) HasComponent

func (o *OpsExpose) HasComponent() bool

HasComponent returns a boolean if a field has been set.

func (*OpsExpose) HasPortsMapping

func (o *OpsExpose) HasPortsMapping() bool

HasPortsMapping returns a boolean if a field has been set.

func (*OpsExpose) HasVpcServiceType

func (o *OpsExpose) HasVpcServiceType() bool

HasVpcServiceType returns a boolean if a field has been set.

func (OpsExpose) MarshalJSON

func (o OpsExpose) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*OpsExpose) SetComponent

func (o *OpsExpose) SetComponent(v string)

SetComponent gets a reference to the given string and assigns it to the Component field.

func (*OpsExpose) SetEnable

func (o *OpsExpose) SetEnable(v bool)

SetEnable sets field value.

func (*OpsExpose) SetPortsMapping

func (o *OpsExpose) SetPortsMapping(v []OpsExposePortsMappingItem)

SetPortsMapping gets a reference to the given []OpsExposePortsMappingItem and assigns it to the PortsMapping field.

func (*OpsExpose) SetType

func (o *OpsExpose) SetType(v OpsExposeType)

SetType sets field value.

func (*OpsExpose) SetVpcServiceType

func (o *OpsExpose) SetVpcServiceType(v OpsExposeVPCServiceType)

SetVpcServiceType gets a reference to the given OpsExposeVPCServiceType and assigns it to the VpcServiceType field.

func (*OpsExpose) UnmarshalJSON

func (o *OpsExpose) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type OpsExposePortsMappingItem

type OpsExposePortsMappingItem struct {
	Old *int32 `json:"old,omitempty"`
	New *int32 `json:"new,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewOpsExposePortsMappingItem

func NewOpsExposePortsMappingItem() *OpsExposePortsMappingItem

NewOpsExposePortsMappingItem instantiates a new OpsExposePortsMappingItem 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 NewOpsExposePortsMappingItemWithDefaults

func NewOpsExposePortsMappingItemWithDefaults() *OpsExposePortsMappingItem

NewOpsExposePortsMappingItemWithDefaults instantiates a new OpsExposePortsMappingItem 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 (*OpsExposePortsMappingItem) GetNew

func (o *OpsExposePortsMappingItem) GetNew() int32

GetNew returns the New field value if set, zero value otherwise.

func (*OpsExposePortsMappingItem) GetNewOk

func (o *OpsExposePortsMappingItem) GetNewOk() (*int32, bool)

GetNewOk returns a tuple with the New field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OpsExposePortsMappingItem) GetOld

func (o *OpsExposePortsMappingItem) GetOld() int32

GetOld returns the Old field value if set, zero value otherwise.

func (*OpsExposePortsMappingItem) GetOldOk

func (o *OpsExposePortsMappingItem) GetOldOk() (*int32, bool)

GetOldOk returns a tuple with the Old field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OpsExposePortsMappingItem) HasNew

func (o *OpsExposePortsMappingItem) HasNew() bool

HasNew returns a boolean if a field has been set.

func (*OpsExposePortsMappingItem) HasOld

func (o *OpsExposePortsMappingItem) HasOld() bool

HasOld returns a boolean if a field has been set.

func (OpsExposePortsMappingItem) MarshalJSON

func (o OpsExposePortsMappingItem) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*OpsExposePortsMappingItem) SetNew

func (o *OpsExposePortsMappingItem) SetNew(v int32)

SetNew gets a reference to the given int32 and assigns it to the New field.

func (*OpsExposePortsMappingItem) SetOld

func (o *OpsExposePortsMappingItem) SetOld(v int32)

SetOld gets a reference to the given int32 and assigns it to the Old field.

func (*OpsExposePortsMappingItem) UnmarshalJSON

func (o *OpsExposePortsMappingItem) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type OpsExposeType

type OpsExposeType string

OpsExposeType Specifies the type of exposure for the KubeBlocks cluster.

const (
	OpsExposeTypeVpc      OpsExposeType = "vpc"
	OpsExposeTypeInternet OpsExposeType = "internet"
)

List of OpsExposeType.

func NewOpsExposeTypeFromValue

func NewOpsExposeTypeFromValue(v string) (*OpsExposeType, error)

NewOpsExposeTypeFromValue returns a pointer to a valid OpsExposeType for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*OpsExposeType) GetAllowedValues

func (v *OpsExposeType) GetAllowedValues() []OpsExposeType

GetAllowedValues returns the list of possible values.

func (OpsExposeType) IsValid

func (v OpsExposeType) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (OpsExposeType) Ptr

func (v OpsExposeType) Ptr() *OpsExposeType

Ptr returns reference to OpsExposeType value.

func (*OpsExposeType) UnmarshalJSON

func (v *OpsExposeType) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type OpsExposeVPCServiceType

type OpsExposeVPCServiceType string

OpsExposeVPCServiceType Specifies the type of service for the KubeBlocks cluster.

const (
	OpsExposeVPCServiceTypeLoadBalancer OpsExposeVPCServiceType = "LoadBalancer"
	OpsExposeVPCServiceTypeNodePort     OpsExposeVPCServiceType = "NodePort"
)

List of OpsExposeVPCServiceType.

func NewOpsExposeVPCServiceTypeFromValue

func NewOpsExposeVPCServiceTypeFromValue(v string) (*OpsExposeVPCServiceType, error)

NewOpsExposeVPCServiceTypeFromValue returns a pointer to a valid OpsExposeVPCServiceType for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*OpsExposeVPCServiceType) GetAllowedValues

func (v *OpsExposeVPCServiceType) GetAllowedValues() []OpsExposeVPCServiceType

GetAllowedValues returns the list of possible values.

func (OpsExposeVPCServiceType) IsValid

func (v OpsExposeVPCServiceType) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (OpsExposeVPCServiceType) Ptr

Ptr returns reference to OpsExposeVPCServiceType value.

func (*OpsExposeVPCServiceType) UnmarshalJSON

func (v *OpsExposeVPCServiceType) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type OpsHScale

type OpsHScale struct {
	// component type
	Component *string `json:"component,omitempty"`
	// number of replicas
	Replicas int32 `json:"replicas"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

OpsHScale OpsHScale is the payload to horizontally scale a KubeBlocks cluster

func NewOpsHScale

func NewOpsHScale(replicas int32) *OpsHScale

NewOpsHScale instantiates a new OpsHScale 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 NewOpsHScaleWithDefaults

func NewOpsHScaleWithDefaults() *OpsHScale

NewOpsHScaleWithDefaults instantiates a new OpsHScale 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 (*OpsHScale) GetComponent

func (o *OpsHScale) GetComponent() string

GetComponent returns the Component field value if set, zero value otherwise.

func (*OpsHScale) GetComponentOk

func (o *OpsHScale) GetComponentOk() (*string, bool)

GetComponentOk returns a tuple with the Component field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OpsHScale) GetReplicas

func (o *OpsHScale) GetReplicas() int32

GetReplicas returns the Replicas field value.

func (*OpsHScale) GetReplicasOk

func (o *OpsHScale) GetReplicasOk() (*int32, bool)

GetReplicasOk returns a tuple with the Replicas field value and a boolean to check if the value has been set.

func (*OpsHScale) HasComponent

func (o *OpsHScale) HasComponent() bool

HasComponent returns a boolean if a field has been set.

func (OpsHScale) MarshalJSON

func (o OpsHScale) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*OpsHScale) SetComponent

func (o *OpsHScale) SetComponent(v string)

SetComponent gets a reference to the given string and assigns it to the Component field.

func (*OpsHScale) SetReplicas

func (o *OpsHScale) SetReplicas(v int32)

SetReplicas sets field value.

func (*OpsHScale) UnmarshalJSON

func (o *OpsHScale) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type OpsLicense

type OpsLicense struct {
	// component type
	Component string `json:"component"`
	// license ID
	LicenseId string `json:"licenseId"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

OpsLicense OpsLicense is the payload to update a KubeBlocks cluster license

func NewOpsLicense

func NewOpsLicense(component string, licenseId string) *OpsLicense

NewOpsLicense instantiates a new OpsLicense 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 NewOpsLicenseWithDefaults

func NewOpsLicenseWithDefaults() *OpsLicense

NewOpsLicenseWithDefaults instantiates a new OpsLicense 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 (*OpsLicense) GetComponent

func (o *OpsLicense) GetComponent() string

GetComponent returns the Component field value.

func (*OpsLicense) GetComponentOk

func (o *OpsLicense) GetComponentOk() (*string, bool)

GetComponentOk returns a tuple with the Component field value and a boolean to check if the value has been set.

func (*OpsLicense) GetLicenseId

func (o *OpsLicense) GetLicenseId() string

GetLicenseId returns the LicenseId field value.

func (*OpsLicense) GetLicenseIdOk

func (o *OpsLicense) GetLicenseIdOk() (*string, bool)

GetLicenseIdOk returns a tuple with the LicenseId field value and a boolean to check if the value has been set.

func (OpsLicense) MarshalJSON

func (o OpsLicense) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*OpsLicense) SetComponent

func (o *OpsLicense) SetComponent(v string)

SetComponent sets field value.

func (*OpsLicense) SetLicenseId

func (o *OpsLicense) SetLicenseId(v string)

SetLicenseId sets field value.

func (*OpsLicense) UnmarshalJSON

func (o *OpsLicense) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type OpsPromote

type OpsPromote struct {
	ComponentName *string `json:"componentName,omitempty"`
	InstanceName  *string `json:"instanceName,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

OpsPromote OpsPromote is the payload to promote a KubeBlocks cluster

func NewOpsPromote

func NewOpsPromote() *OpsPromote

NewOpsPromote instantiates a new OpsPromote 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 NewOpsPromoteWithDefaults

func NewOpsPromoteWithDefaults() *OpsPromote

NewOpsPromoteWithDefaults instantiates a new OpsPromote 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 (*OpsPromote) GetComponentName

func (o *OpsPromote) GetComponentName() string

GetComponentName returns the ComponentName field value if set, zero value otherwise.

func (*OpsPromote) GetComponentNameOk

func (o *OpsPromote) GetComponentNameOk() (*string, bool)

GetComponentNameOk returns a tuple with the ComponentName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OpsPromote) GetInstanceName

func (o *OpsPromote) GetInstanceName() string

GetInstanceName returns the InstanceName field value if set, zero value otherwise.

func (*OpsPromote) GetInstanceNameOk

func (o *OpsPromote) GetInstanceNameOk() (*string, bool)

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 (*OpsPromote) HasComponentName

func (o *OpsPromote) HasComponentName() bool

HasComponentName returns a boolean if a field has been set.

func (*OpsPromote) HasInstanceName

func (o *OpsPromote) HasInstanceName() bool

HasInstanceName returns a boolean if a field has been set.

func (OpsPromote) MarshalJSON

func (o OpsPromote) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*OpsPromote) SetComponentName

func (o *OpsPromote) SetComponentName(v string)

SetComponentName gets a reference to the given string and assigns it to the ComponentName field.

func (*OpsPromote) SetInstanceName

func (o *OpsPromote) SetInstanceName(v string)

SetInstanceName gets a reference to the given string and assigns it to the InstanceName field.

func (*OpsPromote) UnmarshalJSON

func (o *OpsPromote) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type OpsRebuildInstance

type OpsRebuildInstance struct {
	// will ignore role check during rebuilding instance.
	IgnoreRoleCheck *bool                            `json:"ignoreRoleCheck,omitempty"`
	Requests        []OpsRebuildInstanceRequestsItem `json:"requests,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

OpsRebuildInstance rebuild the instances of the cluster.

func NewOpsRebuildInstance

func NewOpsRebuildInstance() *OpsRebuildInstance

NewOpsRebuildInstance instantiates a new OpsRebuildInstance 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 NewOpsRebuildInstanceWithDefaults

func NewOpsRebuildInstanceWithDefaults() *OpsRebuildInstance

NewOpsRebuildInstanceWithDefaults instantiates a new OpsRebuildInstance 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 (*OpsRebuildInstance) GetIgnoreRoleCheck

func (o *OpsRebuildInstance) GetIgnoreRoleCheck() bool

GetIgnoreRoleCheck returns the IgnoreRoleCheck field value if set, zero value otherwise.

func (*OpsRebuildInstance) GetIgnoreRoleCheckOk

func (o *OpsRebuildInstance) GetIgnoreRoleCheckOk() (*bool, bool)

GetIgnoreRoleCheckOk returns a tuple with the IgnoreRoleCheck field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OpsRebuildInstance) GetRequests

GetRequests returns the Requests field value if set, zero value otherwise.

func (*OpsRebuildInstance) GetRequestsOk

func (o *OpsRebuildInstance) GetRequestsOk() (*[]OpsRebuildInstanceRequestsItem, bool)

GetRequestsOk returns a tuple with the Requests field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OpsRebuildInstance) HasIgnoreRoleCheck

func (o *OpsRebuildInstance) HasIgnoreRoleCheck() bool

HasIgnoreRoleCheck returns a boolean if a field has been set.

func (*OpsRebuildInstance) HasRequests

func (o *OpsRebuildInstance) HasRequests() bool

HasRequests returns a boolean if a field has been set.

func (OpsRebuildInstance) MarshalJSON

func (o OpsRebuildInstance) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*OpsRebuildInstance) SetIgnoreRoleCheck

func (o *OpsRebuildInstance) SetIgnoreRoleCheck(v bool)

SetIgnoreRoleCheck gets a reference to the given bool and assigns it to the IgnoreRoleCheck field.

func (*OpsRebuildInstance) SetRequests

SetRequests gets a reference to the given []OpsRebuildInstanceRequestsItem and assigns it to the Requests field.

func (*OpsRebuildInstance) UnmarshalJSON

func (o *OpsRebuildInstance) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type OpsRebuildInstanceInstanceParam

type OpsRebuildInstanceInstanceParam struct {
	// Pod name of the instance
	Name string `json:"name"`
	// The instance will rebuild on the specified node. If not set, it will rebuild on a random node.
	TargetNodeName *string `json:"targetNodeName,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

OpsRebuildInstanceInstanceParam instance params for RebuildInstance ops

func NewOpsRebuildInstanceInstanceParam

func NewOpsRebuildInstanceInstanceParam(name string) *OpsRebuildInstanceInstanceParam

NewOpsRebuildInstanceInstanceParam instantiates a new OpsRebuildInstanceInstanceParam 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 NewOpsRebuildInstanceInstanceParamWithDefaults

func NewOpsRebuildInstanceInstanceParamWithDefaults() *OpsRebuildInstanceInstanceParam

NewOpsRebuildInstanceInstanceParamWithDefaults instantiates a new OpsRebuildInstanceInstanceParam 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 (*OpsRebuildInstanceInstanceParam) GetName

GetName returns the Name field value.

func (*OpsRebuildInstanceInstanceParam) GetNameOk

func (o *OpsRebuildInstanceInstanceParam) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*OpsRebuildInstanceInstanceParam) GetTargetNodeName

func (o *OpsRebuildInstanceInstanceParam) GetTargetNodeName() string

GetTargetNodeName returns the TargetNodeName field value if set, zero value otherwise.

func (*OpsRebuildInstanceInstanceParam) GetTargetNodeNameOk

func (o *OpsRebuildInstanceInstanceParam) GetTargetNodeNameOk() (*string, bool)

GetTargetNodeNameOk returns a tuple with the TargetNodeName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OpsRebuildInstanceInstanceParam) HasTargetNodeName

func (o *OpsRebuildInstanceInstanceParam) HasTargetNodeName() bool

HasTargetNodeName returns a boolean if a field has been set.

func (OpsRebuildInstanceInstanceParam) MarshalJSON

func (o OpsRebuildInstanceInstanceParam) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*OpsRebuildInstanceInstanceParam) SetName

SetName sets field value.

func (*OpsRebuildInstanceInstanceParam) SetTargetNodeName

func (o *OpsRebuildInstanceInstanceParam) SetTargetNodeName(v string)

SetTargetNodeName gets a reference to the given string and assigns it to the TargetNodeName field.

func (*OpsRebuildInstanceInstanceParam) UnmarshalJSON

func (o *OpsRebuildInstanceInstanceParam) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type OpsRebuildInstanceRequestsItem

type OpsRebuildInstanceRequestsItem struct {
	BackupName *string                           `json:"backupName,omitempty"`
	Instances  []OpsRebuildInstanceInstanceParam `json:"instances"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewOpsRebuildInstanceRequestsItem

func NewOpsRebuildInstanceRequestsItem(instances []OpsRebuildInstanceInstanceParam) *OpsRebuildInstanceRequestsItem

NewOpsRebuildInstanceRequestsItem instantiates a new OpsRebuildInstanceRequestsItem 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 NewOpsRebuildInstanceRequestsItemWithDefaults

func NewOpsRebuildInstanceRequestsItemWithDefaults() *OpsRebuildInstanceRequestsItem

NewOpsRebuildInstanceRequestsItemWithDefaults instantiates a new OpsRebuildInstanceRequestsItem 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 (*OpsRebuildInstanceRequestsItem) GetBackupName

func (o *OpsRebuildInstanceRequestsItem) GetBackupName() string

GetBackupName returns the BackupName field value if set, zero value otherwise.

func (*OpsRebuildInstanceRequestsItem) GetBackupNameOk

func (o *OpsRebuildInstanceRequestsItem) GetBackupNameOk() (*string, bool)

GetBackupNameOk returns a tuple with the BackupName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OpsRebuildInstanceRequestsItem) GetInstances

GetInstances returns the Instances field value.

func (*OpsRebuildInstanceRequestsItem) GetInstancesOk

GetInstancesOk returns a tuple with the Instances field value and a boolean to check if the value has been set.

func (*OpsRebuildInstanceRequestsItem) HasBackupName

func (o *OpsRebuildInstanceRequestsItem) HasBackupName() bool

HasBackupName returns a boolean if a field has been set.

func (OpsRebuildInstanceRequestsItem) MarshalJSON

func (o OpsRebuildInstanceRequestsItem) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*OpsRebuildInstanceRequestsItem) SetBackupName

func (o *OpsRebuildInstanceRequestsItem) SetBackupName(v string)

SetBackupName gets a reference to the given string and assigns it to the BackupName field.

func (*OpsRebuildInstanceRequestsItem) SetInstances

SetInstances sets field value.

func (*OpsRebuildInstanceRequestsItem) UnmarshalJSON

func (o *OpsRebuildInstanceRequestsItem) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type OpsRequestName

type OpsRequestName struct {
	OpsRequestName   string  `json:"opsRequestName"`
	DependentOpsName *string `json:"dependentOpsName,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

OpsRequestName OpsRequestName is the name of a KubeBlocks OpsRequest

func NewOpsRequestName

func NewOpsRequestName(opsRequestName string) *OpsRequestName

NewOpsRequestName instantiates a new OpsRequestName 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 NewOpsRequestNameWithDefaults

func NewOpsRequestNameWithDefaults() *OpsRequestName

NewOpsRequestNameWithDefaults instantiates a new OpsRequestName 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 (*OpsRequestName) GetDependentOpsName

func (o *OpsRequestName) GetDependentOpsName() string

GetDependentOpsName returns the DependentOpsName field value if set, zero value otherwise.

func (*OpsRequestName) GetDependentOpsNameOk

func (o *OpsRequestName) GetDependentOpsNameOk() (*string, bool)

GetDependentOpsNameOk returns a tuple with the DependentOpsName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OpsRequestName) GetOpsRequestName

func (o *OpsRequestName) GetOpsRequestName() string

GetOpsRequestName returns the OpsRequestName field value.

func (*OpsRequestName) GetOpsRequestNameOk

func (o *OpsRequestName) GetOpsRequestNameOk() (*string, bool)

GetOpsRequestNameOk returns a tuple with the OpsRequestName field value and a boolean to check if the value has been set.

func (*OpsRequestName) HasDependentOpsName

func (o *OpsRequestName) HasDependentOpsName() bool

HasDependentOpsName returns a boolean if a field has been set.

func (OpsRequestName) MarshalJSON

func (o OpsRequestName) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*OpsRequestName) SetDependentOpsName

func (o *OpsRequestName) SetDependentOpsName(v string)

SetDependentOpsName gets a reference to the given string and assigns it to the DependentOpsName field.

func (*OpsRequestName) SetOpsRequestName

func (o *OpsRequestName) SetOpsRequestName(v string)

SetOpsRequestName sets field value.

func (*OpsRequestName) UnmarshalJSON

func (o *OpsRequestName) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type OpsRestart

type OpsRestart struct {
	// component type
	Component *string `json:"component,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

OpsRestart OpsRestart is the payload to restart a KubeBlocks cluster

func NewOpsRestart

func NewOpsRestart() *OpsRestart

NewOpsRestart instantiates a new OpsRestart 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 NewOpsRestartWithDefaults

func NewOpsRestartWithDefaults() *OpsRestart

NewOpsRestartWithDefaults instantiates a new OpsRestart 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 (*OpsRestart) GetComponent

func (o *OpsRestart) GetComponent() string

GetComponent returns the Component field value if set, zero value otherwise.

func (*OpsRestart) GetComponentOk

func (o *OpsRestart) GetComponentOk() (*string, bool)

GetComponentOk returns a tuple with the Component field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OpsRestart) HasComponent

func (o *OpsRestart) HasComponent() bool

HasComponent returns a boolean if a field has been set.

func (OpsRestart) MarshalJSON

func (o OpsRestart) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*OpsRestart) SetComponent

func (o *OpsRestart) SetComponent(v string)

SetComponent gets a reference to the given string and assigns it to the Component field.

func (*OpsRestart) UnmarshalJSON

func (o *OpsRestart) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type OpsType

type OpsType string
const (
	OpsTypeVerticalScaling   OpsType = "VerticalScaling"
	OpsTypeHorizontalScaling OpsType = "HorizontalScaling"
	OpsTypeVolumeExpansion   OpsType = "VolumeExpansion"
	OpsTypeUpgrade           OpsType = "Upgrade"
	OpsTypeReconfiguring     OpsType = "Reconfiguring"
	OpsTypeSwitchover        OpsType = "Switchover"
	OpsTypeRestart           OpsType = "Restart"
	OpsTypeStop              OpsType = "Stop"
	OpsTypeStart             OpsType = "Start"
	OpsTypeExpose            OpsType = "Expose"
	OpsTypeDataScript        OpsType = "DataScript"
)

List of OpsType.

func NewOpsTypeFromValue

func NewOpsTypeFromValue(v string) (*OpsType, error)

NewOpsTypeFromValue returns a pointer to a valid OpsType for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*OpsType) GetAllowedValues

func (v *OpsType) GetAllowedValues() []OpsType

GetAllowedValues returns the list of possible values.

func (OpsType) IsValid

func (v OpsType) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (OpsType) Ptr

func (v OpsType) Ptr() *OpsType

Ptr returns reference to OpsType value.

func (*OpsType) UnmarshalJSON

func (v *OpsType) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type OpsUpgrade

type OpsUpgrade struct {
	Version   string  `json:"version"`
	Component *string `json:"component,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

OpsUpgrade OpsUpgrade is the payload to upgrade a KubeBlocks cluster

func NewOpsUpgrade

func NewOpsUpgrade(version string) *OpsUpgrade

NewOpsUpgrade instantiates a new OpsUpgrade 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 NewOpsUpgradeWithDefaults

func NewOpsUpgradeWithDefaults() *OpsUpgrade

NewOpsUpgradeWithDefaults instantiates a new OpsUpgrade 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 (*OpsUpgrade) GetComponent

func (o *OpsUpgrade) GetComponent() string

GetComponent returns the Component field value if set, zero value otherwise.

func (*OpsUpgrade) GetComponentOk

func (o *OpsUpgrade) GetComponentOk() (*string, bool)

GetComponentOk returns a tuple with the Component field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OpsUpgrade) GetVersion

func (o *OpsUpgrade) GetVersion() string

GetVersion returns the Version field value.

func (*OpsUpgrade) GetVersionOk

func (o *OpsUpgrade) GetVersionOk() (*string, bool)

GetVersionOk returns a tuple with the Version field value and a boolean to check if the value has been set.

func (*OpsUpgrade) HasComponent

func (o *OpsUpgrade) HasComponent() bool

HasComponent returns a boolean if a field has been set.

func (OpsUpgrade) MarshalJSON

func (o OpsUpgrade) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*OpsUpgrade) SetComponent

func (o *OpsUpgrade) SetComponent(v string)

SetComponent gets a reference to the given string and assigns it to the Component field.

func (*OpsUpgrade) SetVersion

func (o *OpsUpgrade) SetVersion(v string)

SetVersion sets field value.

func (*OpsUpgrade) UnmarshalJSON

func (o *OpsUpgrade) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type OpsVScale

type OpsVScale struct {
	// component type
	Component *string `json:"component,omitempty"`
	// number of cpu
	Cpu *string `json:"cpu,omitempty"`
	// memory size
	Memory *string `json:"memory,omitempty"`
	// class code of the cluster
	ClassCode *string `json:"classCode,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

OpsVScale OpsVScale is the payload to vertically scale a KubeBlocks cluster

func NewOpsVScale

func NewOpsVScale() *OpsVScale

NewOpsVScale instantiates a new OpsVScale 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 NewOpsVScaleWithDefaults

func NewOpsVScaleWithDefaults() *OpsVScale

NewOpsVScaleWithDefaults instantiates a new OpsVScale 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 (*OpsVScale) GetClassCode

func (o *OpsVScale) GetClassCode() string

GetClassCode returns the ClassCode field value if set, zero value otherwise.

func (*OpsVScale) GetClassCodeOk

func (o *OpsVScale) GetClassCodeOk() (*string, bool)

GetClassCodeOk returns a tuple with the ClassCode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OpsVScale) GetComponent

func (o *OpsVScale) GetComponent() string

GetComponent returns the Component field value if set, zero value otherwise.

func (*OpsVScale) GetComponentOk

func (o *OpsVScale) GetComponentOk() (*string, bool)

GetComponentOk returns a tuple with the Component field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OpsVScale) GetCpu

func (o *OpsVScale) GetCpu() string

GetCpu returns the Cpu field value if set, zero value otherwise.

func (*OpsVScale) GetCpuOk

func (o *OpsVScale) GetCpuOk() (*string, bool)

GetCpuOk returns a tuple with the Cpu field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OpsVScale) GetMemory

func (o *OpsVScale) GetMemory() string

GetMemory returns the Memory field value if set, zero value otherwise.

func (*OpsVScale) GetMemoryOk

func (o *OpsVScale) GetMemoryOk() (*string, bool)

GetMemoryOk returns a tuple with the Memory field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OpsVScale) HasClassCode

func (o *OpsVScale) HasClassCode() bool

HasClassCode returns a boolean if a field has been set.

func (*OpsVScale) HasComponent

func (o *OpsVScale) HasComponent() bool

HasComponent returns a boolean if a field has been set.

func (*OpsVScale) HasCpu

func (o *OpsVScale) HasCpu() bool

HasCpu returns a boolean if a field has been set.

func (*OpsVScale) HasMemory

func (o *OpsVScale) HasMemory() bool

HasMemory returns a boolean if a field has been set.

func (OpsVScale) MarshalJSON

func (o OpsVScale) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*OpsVScale) SetClassCode

func (o *OpsVScale) SetClassCode(v string)

SetClassCode gets a reference to the given string and assigns it to the ClassCode field.

func (*OpsVScale) SetComponent

func (o *OpsVScale) SetComponent(v string)

SetComponent gets a reference to the given string and assigns it to the Component field.

func (*OpsVScale) SetCpu

func (o *OpsVScale) SetCpu(v string)

SetCpu gets a reference to the given string and assigns it to the Cpu field.

func (*OpsVScale) SetMemory

func (o *OpsVScale) SetMemory(v string)

SetMemory gets a reference to the given string and assigns it to the Memory field.

func (*OpsVScale) UnmarshalJSON

func (o *OpsVScale) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type OpsVolumeExpand

type OpsVolumeExpand struct {
	Component *string                      `json:"component,omitempty"`
	Volumes   []OpsVolumeExpandVolumesItem `json:"volumes"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

OpsVolumeExpand OpsVolumeExpand is the payload to expand volume for a KubeBlocks cluster

func NewOpsVolumeExpand

func NewOpsVolumeExpand(volumes []OpsVolumeExpandVolumesItem) *OpsVolumeExpand

NewOpsVolumeExpand instantiates a new OpsVolumeExpand 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 NewOpsVolumeExpandWithDefaults

func NewOpsVolumeExpandWithDefaults() *OpsVolumeExpand

NewOpsVolumeExpandWithDefaults instantiates a new OpsVolumeExpand 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 (*OpsVolumeExpand) GetComponent

func (o *OpsVolumeExpand) GetComponent() string

GetComponent returns the Component field value if set, zero value otherwise.

func (*OpsVolumeExpand) GetComponentOk

func (o *OpsVolumeExpand) GetComponentOk() (*string, bool)

GetComponentOk returns a tuple with the Component field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OpsVolumeExpand) GetVolumes

func (o *OpsVolumeExpand) GetVolumes() []OpsVolumeExpandVolumesItem

GetVolumes returns the Volumes field value.

func (*OpsVolumeExpand) GetVolumesOk

func (o *OpsVolumeExpand) GetVolumesOk() (*[]OpsVolumeExpandVolumesItem, bool)

GetVolumesOk returns a tuple with the Volumes field value and a boolean to check if the value has been set.

func (*OpsVolumeExpand) HasComponent

func (o *OpsVolumeExpand) HasComponent() bool

HasComponent returns a boolean if a field has been set.

func (OpsVolumeExpand) MarshalJSON

func (o OpsVolumeExpand) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*OpsVolumeExpand) SetComponent

func (o *OpsVolumeExpand) SetComponent(v string)

SetComponent gets a reference to the given string and assigns it to the Component field.

func (*OpsVolumeExpand) SetVolumes

func (o *OpsVolumeExpand) SetVolumes(v []OpsVolumeExpandVolumesItem)

SetVolumes sets field value.

func (*OpsVolumeExpand) UnmarshalJSON

func (o *OpsVolumeExpand) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type OpsVolumeExpandVolumesItem

type OpsVolumeExpandVolumesItem struct {
	// volume name
	Name string `json:"name"`
	// Storage size, the unit is Gi.
	Storage string `json:"storage"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewOpsVolumeExpandVolumesItem

func NewOpsVolumeExpandVolumesItem(name string, storage string) *OpsVolumeExpandVolumesItem

NewOpsVolumeExpandVolumesItem instantiates a new OpsVolumeExpandVolumesItem 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 NewOpsVolumeExpandVolumesItemWithDefaults

func NewOpsVolumeExpandVolumesItemWithDefaults() *OpsVolumeExpandVolumesItem

NewOpsVolumeExpandVolumesItemWithDefaults instantiates a new OpsVolumeExpandVolumesItem 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 (*OpsVolumeExpandVolumesItem) GetName

func (o *OpsVolumeExpandVolumesItem) GetName() string

GetName returns the Name field value.

func (*OpsVolumeExpandVolumesItem) GetNameOk

func (o *OpsVolumeExpandVolumesItem) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*OpsVolumeExpandVolumesItem) GetStorage

func (o *OpsVolumeExpandVolumesItem) GetStorage() string

GetStorage returns the Storage field value.

func (*OpsVolumeExpandVolumesItem) GetStorageOk

func (o *OpsVolumeExpandVolumesItem) GetStorageOk() (*string, bool)

GetStorageOk returns a tuple with the Storage field value and a boolean to check if the value has been set.

func (OpsVolumeExpandVolumesItem) MarshalJSON

func (o OpsVolumeExpandVolumesItem) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*OpsVolumeExpandVolumesItem) SetName

func (o *OpsVolumeExpandVolumesItem) SetName(v string)

SetName sets field value.

func (*OpsVolumeExpandVolumesItem) SetStorage

func (o *OpsVolumeExpandVolumesItem) SetStorage(v string)

SetStorage sets field value.

func (*OpsVolumeExpandVolumesItem) UnmarshalJSON

func (o *OpsVolumeExpandVolumesItem) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type OpsrequestApi

type OpsrequestApi common.Service

OpsrequestApi service type

func NewOpsrequestApi

func NewOpsrequestApi(client *common.APIClient) *OpsrequestApi

NewOpsrequestApi Returns NewOpsrequestApi.

func (*OpsrequestApi) CancelOps

func (a *OpsrequestApi) CancelOps(ctx _context.Context, orgName string, opsName string, clusterName string, opsType string) (*_nethttp.Response, error)

CancelOps Cancel OpsRequest. cancel a OpsRequest

func (*OpsrequestApi) ClusterVolumeExpand

func (a *OpsrequestApi) ClusterVolumeExpand(ctx _context.Context, orgName string, clusterName string, body OpsVolumeExpand) (OpsRequestName, *_nethttp.Response, error)

ClusterVolumeExpand Expand cluster volume size.

func (*OpsrequestApi) CustomOps

func (a *OpsrequestApi) CustomOps(ctx _context.Context, orgName string, clusterName string, body interface{}) (OpsRequestName, *_nethttp.Response, error)

CustomOps Create custom OpsRequest.

func (*OpsrequestApi) ExposeCluster

func (a *OpsrequestApi) ExposeCluster(ctx _context.Context, orgName string, clusterName string, body OpsExpose) (OpsRequestName, *_nethttp.Response, error)

ExposeCluster Expose cluster loadbalancer endpoint.

func (*OpsrequestApi) HorizontalScaleCluster

func (a *OpsrequestApi) HorizontalScaleCluster(ctx _context.Context, orgName string, clusterName string, body OpsHScale) (OpsRequestName, *_nethttp.Response, error)

HorizontalScaleCluster Horizontal scale cluster.

func (*OpsrequestApi) PromoteCluster

func (a *OpsrequestApi) PromoteCluster(ctx _context.Context, orgName string, clusterName string, body OpsPromote) (OpsRequestName, *_nethttp.Response, error)

PromoteCluster Promote cluster intance to primary.

func (*OpsrequestApi) RebuildInstance

func (a *OpsrequestApi) RebuildInstance(ctx _context.Context, orgName string, clusterName string, body OpsRebuildInstance) (OpsRequestName, *_nethttp.Response, error)

RebuildInstance rebuild the instance.

func (*OpsrequestApi) ReconfigureCluster

func (a *OpsrequestApi) ReconfigureCluster(ctx _context.Context, orgName string, clusterName string, body ReconfigureCreate) (OpsRequestName, *_nethttp.Response, error)

ReconfigureCluster Update cluster configuration.

func (*OpsrequestApi) RestartCluster

func (a *OpsrequestApi) RestartCluster(ctx _context.Context, orgName string, clusterName string, body OpsRestart) (OpsRequestName, *_nethttp.Response, error)

RestartCluster Restart cluster.

func (*OpsrequestApi) StartCluster

func (a *OpsrequestApi) StartCluster(ctx _context.Context, orgName string, clusterName string) (OpsRequestName, *_nethttp.Response, error)

StartCluster Start cluster.

func (*OpsrequestApi) StopCluster

func (a *OpsrequestApi) StopCluster(ctx _context.Context, orgName string, clusterName string) (OpsRequestName, *_nethttp.Response, error)

StopCluster Stop cluster.

func (*OpsrequestApi) UpdateClusterLicense

func (a *OpsrequestApi) UpdateClusterLicense(ctx _context.Context, orgName string, clusterName string, body OpsLicense) (OpsRequestName, *_nethttp.Response, error)

UpdateClusterLicense Update the cluster license.

func (*OpsrequestApi) UpgradeCluster

func (a *OpsrequestApi) UpgradeCluster(ctx _context.Context, orgName string, clusterName string, body OpsUpgrade) (OpsRequestName, *_nethttp.Response, error)

UpgradeCluster Upgrade cluster version.

func (*OpsrequestApi) VerticalScaleCluster

func (a *OpsrequestApi) VerticalScaleCluster(ctx _context.Context, orgName string, clusterName string, body OpsVScale) (OpsRequestName, *_nethttp.Response, error)

VerticalScaleCluster Vertical scale cluster.

type Org

type Org struct {
	// CreatedAt is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.
	//
	// Populated by the system. Read-only. Null for lists
	CreatedAt time.Time `json:"createdAt"`
	// The description of the organization
	Description *string `json:"description,omitempty"`
	// The display name of the organization
	DisplayName *string `json:"displayName,omitempty"`
	// The ID of the organization
	Id *string `json:"id,omitempty"`
	// The full, unique name of this Object in the format organizations/{name}, set during creation. name must be a valid RFC 1123 compliant DNS label
	Name string `json:"name"`
	// UpdatedAt is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.
	//
	// Populated by the system. Read-only. Null for lists
	UpdatedAt time.Time `json:"updatedAt"`
	// return true if the organization is enabled
	Enabled bool `json:"enabled"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

Org Org info

func NewOrg

func NewOrg(createdAt time.Time, name string, updatedAt time.Time, enabled bool) *Org

NewOrg instantiates a new Org 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 NewOrgWithDefaults

func NewOrgWithDefaults() *Org

NewOrgWithDefaults instantiates a new Org 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 (*Org) GetCreatedAt

func (o *Org) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field value.

func (*Org) GetCreatedAtOk

func (o *Org) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value and a boolean to check if the value has been set.

func (*Org) GetDescription

func (o *Org) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*Org) GetDescriptionOk

func (o *Org) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Org) GetDisplayName

func (o *Org) GetDisplayName() string

GetDisplayName returns the DisplayName field value if set, zero value otherwise.

func (*Org) GetDisplayNameOk

func (o *Org) GetDisplayNameOk() (*string, bool)

GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Org) GetEnabled

func (o *Org) GetEnabled() bool

GetEnabled returns the Enabled field value.

func (*Org) GetEnabledOk

func (o *Org) GetEnabledOk() (*bool, bool)

GetEnabledOk returns a tuple with the Enabled field value and a boolean to check if the value has been set.

func (*Org) GetId

func (o *Org) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*Org) GetIdOk

func (o *Org) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Org) GetName

func (o *Org) GetName() string

GetName returns the Name field value.

func (*Org) GetNameOk

func (o *Org) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*Org) GetUpdatedAt

func (o *Org) GetUpdatedAt() time.Time

GetUpdatedAt returns the UpdatedAt field value.

func (*Org) GetUpdatedAtOk

func (o *Org) GetUpdatedAtOk() (*time.Time, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value and a boolean to check if the value has been set.

func (*Org) HasDescription

func (o *Org) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*Org) HasDisplayName

func (o *Org) HasDisplayName() bool

HasDisplayName returns a boolean if a field has been set.

func (*Org) HasId

func (o *Org) HasId() bool

HasId returns a boolean if a field has been set.

func (Org) MarshalJSON

func (o Org) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*Org) SetCreatedAt

func (o *Org) SetCreatedAt(v time.Time)

SetCreatedAt sets field value.

func (*Org) SetDescription

func (o *Org) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*Org) SetDisplayName

func (o *Org) SetDisplayName(v string)

SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.

func (*Org) SetEnabled

func (o *Org) SetEnabled(v bool)

SetEnabled sets field value.

func (*Org) SetId

func (o *Org) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*Org) SetName

func (o *Org) SetName(v string)

SetName sets field value.

func (*Org) SetUpdatedAt

func (o *Org) SetUpdatedAt(v time.Time)

SetUpdatedAt sets field value.

func (*Org) UnmarshalJSON

func (o *Org) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type OrgCreate

type OrgCreate struct {
	// The description of the organization
	Description *string `json:"description,omitempty"`
	// The display name of the organization
	DisplayName *string `json:"displayName,omitempty"`
	// The full, unique name of this Object in the format organizations/{name}, set during creation. name must be a valid RFC 1123 compliant DNS label
	Name string `json:"name"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

OrgCreate OrgCreate is the payload for organization creation

func NewOrgCreate

func NewOrgCreate(name string) *OrgCreate

NewOrgCreate instantiates a new OrgCreate 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 NewOrgCreateWithDefaults

func NewOrgCreateWithDefaults() *OrgCreate

NewOrgCreateWithDefaults instantiates a new OrgCreate 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 (*OrgCreate) GetDescription

func (o *OrgCreate) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*OrgCreate) GetDescriptionOk

func (o *OrgCreate) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrgCreate) GetDisplayName

func (o *OrgCreate) GetDisplayName() string

GetDisplayName returns the DisplayName field value if set, zero value otherwise.

func (*OrgCreate) GetDisplayNameOk

func (o *OrgCreate) GetDisplayNameOk() (*string, bool)

GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrgCreate) GetName

func (o *OrgCreate) GetName() string

GetName returns the Name field value.

func (*OrgCreate) GetNameOk

func (o *OrgCreate) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*OrgCreate) HasDescription

func (o *OrgCreate) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*OrgCreate) HasDisplayName

func (o *OrgCreate) HasDisplayName() bool

HasDisplayName returns a boolean if a field has been set.

func (OrgCreate) MarshalJSON

func (o OrgCreate) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*OrgCreate) SetDescription

func (o *OrgCreate) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*OrgCreate) SetDisplayName

func (o *OrgCreate) SetDisplayName(v string)

SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.

func (*OrgCreate) SetName

func (o *OrgCreate) SetName(v string)

SetName sets field value.

func (*OrgCreate) UnmarshalJSON

func (o *OrgCreate) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type OrgList

type OrgList struct {
	// Items is the list of Org objects in the list
	Items []Org `json:"items"`
	// PageResult info
	PageResult *PageResult `json:"pageResult,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

OrgList OrgList is a list of Orgs

func NewOrgList

func NewOrgList(items []Org) *OrgList

NewOrgList instantiates a new OrgList 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 NewOrgListWithDefaults

func NewOrgListWithDefaults() *OrgList

NewOrgListWithDefaults instantiates a new OrgList 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 (*OrgList) GetItems

func (o *OrgList) GetItems() []Org

GetItems returns the Items field value.

func (*OrgList) GetItemsOk

func (o *OrgList) GetItemsOk() (*[]Org, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (*OrgList) GetPageResult

func (o *OrgList) GetPageResult() PageResult

GetPageResult returns the PageResult field value if set, zero value otherwise.

func (*OrgList) GetPageResultOk

func (o *OrgList) GetPageResultOk() (*PageResult, bool)

GetPageResultOk returns a tuple with the PageResult field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrgList) HasPageResult

func (o *OrgList) HasPageResult() bool

HasPageResult returns a boolean if a field has been set.

func (OrgList) MarshalJSON

func (o OrgList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*OrgList) SetItems

func (o *OrgList) SetItems(v []Org)

SetItems sets field value.

func (*OrgList) SetPageResult

func (o *OrgList) SetPageResult(v PageResult)

SetPageResult gets a reference to the given PageResult and assigns it to the PageResult field.

func (*OrgList) UnmarshalJSON

func (o *OrgList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type OrgMember

type OrgMember struct {
	// The display name of User. Read-Only
	DisplayName *string `json:"displayName,omitempty"`
	// The email of User. Required when create. Read-Only after create
	Email string `json:"email"`
	// The role of the User in the Org. Required
	Role OrgMemberRole `json:"role"`
	// The ID of User. Read-Only
	UserId string `json:"userId"`
	// Return true if the member is freezed in the organization
	Freezed bool `json:"freezed"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

OrgMember Org Member info

func NewOrgMember

func NewOrgMember(email string, role OrgMemberRole, userId string, freezed bool) *OrgMember

NewOrgMember instantiates a new OrgMember 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 NewOrgMemberWithDefaults

func NewOrgMemberWithDefaults() *OrgMember

NewOrgMemberWithDefaults instantiates a new OrgMember 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 (*OrgMember) GetDisplayName

func (o *OrgMember) GetDisplayName() string

GetDisplayName returns the DisplayName field value if set, zero value otherwise.

func (*OrgMember) GetDisplayNameOk

func (o *OrgMember) GetDisplayNameOk() (*string, bool)

GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrgMember) GetEmail

func (o *OrgMember) GetEmail() string

GetEmail returns the Email field value.

func (*OrgMember) GetEmailOk

func (o *OrgMember) GetEmailOk() (*string, bool)

GetEmailOk returns a tuple with the Email field value and a boolean to check if the value has been set.

func (*OrgMember) GetFreezed

func (o *OrgMember) GetFreezed() bool

GetFreezed returns the Freezed field value.

func (*OrgMember) GetFreezedOk

func (o *OrgMember) GetFreezedOk() (*bool, bool)

GetFreezedOk returns a tuple with the Freezed field value and a boolean to check if the value has been set.

func (*OrgMember) GetRole

func (o *OrgMember) GetRole() OrgMemberRole

GetRole returns the Role field value.

func (*OrgMember) GetRoleOk

func (o *OrgMember) GetRoleOk() (*OrgMemberRole, bool)

GetRoleOk returns a tuple with the Role field value and a boolean to check if the value has been set.

func (*OrgMember) GetUserId

func (o *OrgMember) GetUserId() string

GetUserId returns the UserId field value.

func (*OrgMember) GetUserIdOk

func (o *OrgMember) GetUserIdOk() (*string, bool)

GetUserIdOk returns a tuple with the UserId field value and a boolean to check if the value has been set.

func (*OrgMember) HasDisplayName

func (o *OrgMember) HasDisplayName() bool

HasDisplayName returns a boolean if a field has been set.

func (OrgMember) MarshalJSON

func (o OrgMember) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*OrgMember) SetDisplayName

func (o *OrgMember) SetDisplayName(v string)

SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.

func (*OrgMember) SetEmail

func (o *OrgMember) SetEmail(v string)

SetEmail sets field value.

func (*OrgMember) SetFreezed

func (o *OrgMember) SetFreezed(v bool)

SetFreezed sets field value.

func (*OrgMember) SetRole

func (o *OrgMember) SetRole(v OrgMemberRole)

SetRole sets field value.

func (*OrgMember) SetUserId

func (o *OrgMember) SetUserId(v string)

SetUserId sets field value.

func (*OrgMember) UnmarshalJSON

func (o *OrgMember) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type OrgMemberAdd

type OrgMemberAdd struct {
	// The name of the role in the organization
	Role string `json:"role"`
	// The ID of the user
	UserId string `json:"userId"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

OrgMemberAdd MemberAdd is the payload for adding organization member

func NewOrgMemberAdd

func NewOrgMemberAdd(role string, userId string) *OrgMemberAdd

NewOrgMemberAdd instantiates a new OrgMemberAdd 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 NewOrgMemberAddWithDefaults

func NewOrgMemberAddWithDefaults() *OrgMemberAdd

NewOrgMemberAddWithDefaults instantiates a new OrgMemberAdd 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 (*OrgMemberAdd) GetRole

func (o *OrgMemberAdd) GetRole() string

GetRole returns the Role field value.

func (*OrgMemberAdd) GetRoleOk

func (o *OrgMemberAdd) GetRoleOk() (*string, bool)

GetRoleOk returns a tuple with the Role field value and a boolean to check if the value has been set.

func (*OrgMemberAdd) GetUserId

func (o *OrgMemberAdd) GetUserId() string

GetUserId returns the UserId field value.

func (*OrgMemberAdd) GetUserIdOk

func (o *OrgMemberAdd) GetUserIdOk() (*string, bool)

GetUserIdOk returns a tuple with the UserId field value and a boolean to check if the value has been set.

func (OrgMemberAdd) MarshalJSON

func (o OrgMemberAdd) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*OrgMemberAdd) SetRole

func (o *OrgMemberAdd) SetRole(v string)

SetRole sets field value.

func (*OrgMemberAdd) SetUserId

func (o *OrgMemberAdd) SetUserId(v string)

SetUserId sets field value.

func (*OrgMemberAdd) UnmarshalJSON

func (o *OrgMemberAdd) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type OrgMemberList

type OrgMemberList struct {
	// Items is the list of OrgMember objects in the list
	Items []OrgMember `json:"items"`
	// PageResult info
	PageResult *PageResult `json:"pageResult,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

OrgMemberList OrgMemberList is org member list

func NewOrgMemberList

func NewOrgMemberList(items []OrgMember) *OrgMemberList

NewOrgMemberList instantiates a new OrgMemberList 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 NewOrgMemberListWithDefaults

func NewOrgMemberListWithDefaults() *OrgMemberList

NewOrgMemberListWithDefaults instantiates a new OrgMemberList 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 (*OrgMemberList) GetItems

func (o *OrgMemberList) GetItems() []OrgMember

GetItems returns the Items field value.

func (*OrgMemberList) GetItemsOk

func (o *OrgMemberList) GetItemsOk() (*[]OrgMember, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (*OrgMemberList) GetPageResult

func (o *OrgMemberList) GetPageResult() PageResult

GetPageResult returns the PageResult field value if set, zero value otherwise.

func (*OrgMemberList) GetPageResultOk

func (o *OrgMemberList) GetPageResultOk() (*PageResult, bool)

GetPageResultOk returns a tuple with the PageResult field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrgMemberList) HasPageResult

func (o *OrgMemberList) HasPageResult() bool

HasPageResult returns a boolean if a field has been set.

func (OrgMemberList) MarshalJSON

func (o OrgMemberList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*OrgMemberList) SetItems

func (o *OrgMemberList) SetItems(v []OrgMember)

SetItems sets field value.

func (*OrgMemberList) SetPageResult

func (o *OrgMemberList) SetPageResult(v PageResult)

SetPageResult gets a reference to the given PageResult and assigns it to the PageResult field.

func (*OrgMemberList) UnmarshalJSON

func (o *OrgMemberList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type OrgMemberRole

type OrgMemberRole string

OrgMemberRole The role of the User in the Org. Required

const (
	OrgMemberRoleAdmin     OrgMemberRole = "admin"
	OrgMemberRoleDeveloper OrgMemberRole = "developer"
)

List of OrgMemberRole.

func NewOrgMemberRoleFromValue

func NewOrgMemberRoleFromValue(v string) (*OrgMemberRole, error)

NewOrgMemberRoleFromValue returns a pointer to a valid OrgMemberRole for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*OrgMemberRole) GetAllowedValues

func (v *OrgMemberRole) GetAllowedValues() []OrgMemberRole

GetAllowedValues returns the list of possible values.

func (OrgMemberRole) IsValid

func (v OrgMemberRole) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (OrgMemberRole) Ptr

func (v OrgMemberRole) Ptr() *OrgMemberRole

Ptr returns reference to OrgMemberRole value.

func (*OrgMemberRole) UnmarshalJSON

func (v *OrgMemberRole) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type OrgMemberUpdate

type OrgMemberUpdate struct {
	// The role of the User in the Org. Required
	Role string `json:"role"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

OrgMemberUpdate Org Member update

func NewOrgMemberUpdate

func NewOrgMemberUpdate(role string) *OrgMemberUpdate

NewOrgMemberUpdate instantiates a new OrgMemberUpdate 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 NewOrgMemberUpdateWithDefaults

func NewOrgMemberUpdateWithDefaults() *OrgMemberUpdate

NewOrgMemberUpdateWithDefaults instantiates a new OrgMemberUpdate 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 (*OrgMemberUpdate) GetRole

func (o *OrgMemberUpdate) GetRole() string

GetRole returns the Role field value.

func (*OrgMemberUpdate) GetRoleOk

func (o *OrgMemberUpdate) GetRoleOk() (*string, bool)

GetRoleOk returns a tuple with the Role field value and a boolean to check if the value has been set.

func (OrgMemberUpdate) MarshalJSON

func (o OrgMemberUpdate) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*OrgMemberUpdate) SetRole

func (o *OrgMemberUpdate) SetRole(v string)

SetRole sets field value.

func (*OrgMemberUpdate) UnmarshalJSON

func (o *OrgMemberUpdate) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type OrgTagsList

type OrgTagsList struct {
	Items []Tag `json:"items"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewOrgTagsList

func NewOrgTagsList(items []Tag) *OrgTagsList

NewOrgTagsList instantiates a new OrgTagsList 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 NewOrgTagsListWithDefaults

func NewOrgTagsListWithDefaults() *OrgTagsList

NewOrgTagsListWithDefaults instantiates a new OrgTagsList 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 (*OrgTagsList) GetItems

func (o *OrgTagsList) GetItems() []Tag

GetItems returns the Items field value.

func (*OrgTagsList) GetItemsOk

func (o *OrgTagsList) GetItemsOk() (*[]Tag, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (OrgTagsList) MarshalJSON

func (o OrgTagsList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*OrgTagsList) SetItems

func (o *OrgTagsList) SetItems(v []Tag)

SetItems sets field value.

func (*OrgTagsList) UnmarshalJSON

func (o *OrgTagsList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type OrgUpdate

type OrgUpdate struct {
	// The description of the organization
	Description *string `json:"description,omitempty"`
	// The display name of the organization
	DisplayName *string `json:"displayName,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

OrgUpdate Organization update

func NewOrgUpdate

func NewOrgUpdate() *OrgUpdate

NewOrgUpdate instantiates a new OrgUpdate 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 NewOrgUpdateWithDefaults

func NewOrgUpdateWithDefaults() *OrgUpdate

NewOrgUpdateWithDefaults instantiates a new OrgUpdate 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 (*OrgUpdate) GetDescription

func (o *OrgUpdate) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*OrgUpdate) GetDescriptionOk

func (o *OrgUpdate) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrgUpdate) GetDisplayName

func (o *OrgUpdate) GetDisplayName() string

GetDisplayName returns the DisplayName field value if set, zero value otherwise.

func (*OrgUpdate) GetDisplayNameOk

func (o *OrgUpdate) GetDisplayNameOk() (*string, bool)

GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*OrgUpdate) HasDescription

func (o *OrgUpdate) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*OrgUpdate) HasDisplayName

func (o *OrgUpdate) HasDisplayName() bool

HasDisplayName returns a boolean if a field has been set.

func (OrgUpdate) MarshalJSON

func (o OrgUpdate) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*OrgUpdate) SetDescription

func (o *OrgUpdate) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*OrgUpdate) SetDisplayName

func (o *OrgUpdate) SetDisplayName(v string)

SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.

func (*OrgUpdate) UnmarshalJSON

func (o *OrgUpdate) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type OrganizationApi

type OrganizationApi common.Service

OrganizationApi service type

func NewOrganizationApi

func NewOrganizationApi(client *common.APIClient) *OrganizationApi

NewOrganizationApi Returns NewOrganizationApi.

func (*OrganizationApi) CreateOrg

func (a *OrganizationApi) CreateOrg(ctx _context.Context, body OrgCreate) (Org, *_nethttp.Response, error)

CreateOrg Create organization. Create a new organization

func (*OrganizationApi) FreezeMember

func (a *OrganizationApi) FreezeMember(ctx _context.Context, orgName string, memberId string) (*_nethttp.Response, error)

FreezeMember freeze the member in org. freeze the member in org

func (*OrganizationApi) ListOrg

ListOrg List joined organizations. List organizations of current user

func (*OrganizationApi) PatchOrg

func (a *OrganizationApi) PatchOrg(ctx _context.Context, orgName string, body OrgUpdate) (Org, *_nethttp.Response, error)

PatchOrg Update organization. partially update the specified Org

func (*OrganizationApi) ReadOrg

func (a *OrganizationApi) ReadOrg(ctx _context.Context, orgName string) (Org, *_nethttp.Response, error)

ReadOrg Get organization. read the specified Org

func (*OrganizationApi) UnfreezeMember

func (a *OrganizationApi) UnfreezeMember(ctx _context.Context, orgName string, memberId string) (*_nethttp.Response, error)

UnfreezeMember unfreeze the member in org. unfreeze the member in org

type Owner

type Owner struct {
	// APIVersion is the API version of the owner.
	ApiVersion *string `json:"apiVersion,omitempty"`
	// Kind is the type of the owner.
	Kind *string `json:"kind,omitempty"`
	// Name is the name of the owner.
	Name *string `json:"name,omitempty"`
	// UID is the unique identifier of the owner.
	Uid *string `json:"uid,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

Owner Owner related to the Event

func NewOwner

func NewOwner() *Owner

NewOwner instantiates a new Owner 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 NewOwnerWithDefaults

func NewOwnerWithDefaults() *Owner

NewOwnerWithDefaults instantiates a new Owner 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 (*Owner) GetApiVersion

func (o *Owner) GetApiVersion() string

GetApiVersion returns the ApiVersion field value if set, zero value otherwise.

func (*Owner) GetApiVersionOk

func (o *Owner) GetApiVersionOk() (*string, bool)

GetApiVersionOk returns a tuple with the ApiVersion field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Owner) GetKind

func (o *Owner) GetKind() string

GetKind returns the Kind field value if set, zero value otherwise.

func (*Owner) GetKindOk

func (o *Owner) GetKindOk() (*string, bool)

GetKindOk returns a tuple with the Kind field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Owner) GetName

func (o *Owner) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*Owner) GetNameOk

func (o *Owner) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Owner) GetUid

func (o *Owner) GetUid() string

GetUid returns the Uid field value if set, zero value otherwise.

func (*Owner) GetUidOk

func (o *Owner) GetUidOk() (*string, bool)

GetUidOk returns a tuple with the Uid field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Owner) HasApiVersion

func (o *Owner) HasApiVersion() bool

HasApiVersion returns a boolean if a field has been set.

func (*Owner) HasKind

func (o *Owner) HasKind() bool

HasKind returns a boolean if a field has been set.

func (*Owner) HasName

func (o *Owner) HasName() bool

HasName returns a boolean if a field has been set.

func (*Owner) HasUid

func (o *Owner) HasUid() bool

HasUid returns a boolean if a field has been set.

func (Owner) MarshalJSON

func (o Owner) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*Owner) SetApiVersion

func (o *Owner) SetApiVersion(v string)

SetApiVersion gets a reference to the given string and assigns it to the ApiVersion field.

func (*Owner) SetKind

func (o *Owner) SetKind(v string)

SetKind gets a reference to the given string and assigns it to the Kind field.

func (*Owner) SetName

func (o *Owner) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*Owner) SetUid

func (o *Owner) SetUid(v string)

SetUid gets a reference to the given string and assigns it to the Uid field.

func (*Owner) UnmarshalJSON

func (o *Owner) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type PageResult

type PageResult struct {
	// a link to the first page of results. This link is optional for collections that cannot be indexed directly to a given page
	First *string `json:"first,omitempty"`
	// a link to the last page of results. This link is optional for collections that cannot be indexed directly to a given page
	Last *string `json:"last,omitempty"`
	// a link to the next page of results. A response that does not contain a next link does not have further data to fetch
	Next *string `json:"next,omitempty"`
	// a link to the previous page of results. A response that does not contain a prev link has no previous data. This link is optional for collections that cannot be traversed backward
	Prev *string `json:"prev,omitempty"`
	// the total count of items in the list irrespective of pagination
	TotalSize *int64 `json:"totalSize,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

PageResult PageResult info

func NewPageResult

func NewPageResult() *PageResult

NewPageResult instantiates a new PageResult 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 NewPageResultWithDefaults

func NewPageResultWithDefaults() *PageResult

NewPageResultWithDefaults instantiates a new PageResult 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 (*PageResult) GetFirst

func (o *PageResult) GetFirst() string

GetFirst returns the First field value if set, zero value otherwise.

func (*PageResult) GetFirstOk

func (o *PageResult) GetFirstOk() (*string, bool)

GetFirstOk returns a tuple with the First field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PageResult) GetLast

func (o *PageResult) GetLast() string

GetLast returns the Last field value if set, zero value otherwise.

func (*PageResult) GetLastOk

func (o *PageResult) GetLastOk() (*string, bool)

GetLastOk returns a tuple with the Last field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PageResult) GetNext

func (o *PageResult) GetNext() string

GetNext returns the Next field value if set, zero value otherwise.

func (*PageResult) GetNextOk

func (o *PageResult) GetNextOk() (*string, bool)

GetNextOk returns a tuple with the Next field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PageResult) GetPrev

func (o *PageResult) GetPrev() string

GetPrev returns the Prev field value if set, zero value otherwise.

func (*PageResult) GetPrevOk

func (o *PageResult) GetPrevOk() (*string, bool)

GetPrevOk returns a tuple with the Prev field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PageResult) GetTotalSize

func (o *PageResult) GetTotalSize() int64

GetTotalSize returns the TotalSize field value if set, zero value otherwise.

func (*PageResult) GetTotalSizeOk

func (o *PageResult) GetTotalSizeOk() (*int64, bool)

GetTotalSizeOk returns a tuple with the TotalSize field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PageResult) HasFirst

func (o *PageResult) HasFirst() bool

HasFirst returns a boolean if a field has been set.

func (*PageResult) HasLast

func (o *PageResult) HasLast() bool

HasLast returns a boolean if a field has been set.

func (*PageResult) HasNext

func (o *PageResult) HasNext() bool

HasNext returns a boolean if a field has been set.

func (*PageResult) HasPrev

func (o *PageResult) HasPrev() bool

HasPrev returns a boolean if a field has been set.

func (*PageResult) HasTotalSize

func (o *PageResult) HasTotalSize() bool

HasTotalSize returns a boolean if a field has been set.

func (PageResult) MarshalJSON

func (o PageResult) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*PageResult) SetFirst

func (o *PageResult) SetFirst(v string)

SetFirst gets a reference to the given string and assigns it to the First field.

func (*PageResult) SetLast

func (o *PageResult) SetLast(v string)

SetLast gets a reference to the given string and assigns it to the Last field.

func (*PageResult) SetNext

func (o *PageResult) SetNext(v string)

SetNext gets a reference to the given string and assigns it to the Next field.

func (*PageResult) SetPrev

func (o *PageResult) SetPrev(v string)

SetPrev gets a reference to the given string and assigns it to the Prev field.

func (*PageResult) SetTotalSize

func (o *PageResult) SetTotalSize(v int64)

SetTotalSize gets a reference to the given int64 and assigns it to the TotalSize field.

func (*PageResult) UnmarshalJSON

func (o *PageResult) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type Pagination

type Pagination struct {
	RowsCount  *int32 `json:"rows_count,omitempty"`
	Page       *int32 `json:"page,omitempty"`
	PagesCount *int32 `json:"pages_count,omitempty"`
	PerPage    *int32 `json:"per_page,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewPagination

func NewPagination() *Pagination

NewPagination instantiates a new Pagination 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 NewPaginationWithDefaults

func NewPaginationWithDefaults() *Pagination

NewPaginationWithDefaults instantiates a new Pagination 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 (*Pagination) GetPage

func (o *Pagination) GetPage() int32

GetPage returns the Page field value if set, zero value otherwise.

func (*Pagination) GetPageOk

func (o *Pagination) GetPageOk() (*int32, bool)

GetPageOk returns a tuple with the Page field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Pagination) GetPagesCount

func (o *Pagination) GetPagesCount() int32

GetPagesCount returns the PagesCount field value if set, zero value otherwise.

func (*Pagination) GetPagesCountOk

func (o *Pagination) GetPagesCountOk() (*int32, bool)

GetPagesCountOk returns a tuple with the PagesCount field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Pagination) GetPerPage

func (o *Pagination) GetPerPage() int32

GetPerPage returns the PerPage field value if set, zero value otherwise.

func (*Pagination) GetPerPageOk

func (o *Pagination) GetPerPageOk() (*int32, bool)

GetPerPageOk returns a tuple with the PerPage field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Pagination) GetRowsCount

func (o *Pagination) GetRowsCount() int32

GetRowsCount returns the RowsCount field value if set, zero value otherwise.

func (*Pagination) GetRowsCountOk

func (o *Pagination) GetRowsCountOk() (*int32, bool)

GetRowsCountOk returns a tuple with the RowsCount field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Pagination) HasPage

func (o *Pagination) HasPage() bool

HasPage returns a boolean if a field has been set.

func (*Pagination) HasPagesCount

func (o *Pagination) HasPagesCount() bool

HasPagesCount returns a boolean if a field has been set.

func (*Pagination) HasPerPage

func (o *Pagination) HasPerPage() bool

HasPerPage returns a boolean if a field has been set.

func (*Pagination) HasRowsCount

func (o *Pagination) HasRowsCount() bool

HasRowsCount returns a boolean if a field has been set.

func (Pagination) MarshalJSON

func (o Pagination) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*Pagination) SetPage

func (o *Pagination) SetPage(v int32)

SetPage gets a reference to the given int32 and assigns it to the Page field.

func (*Pagination) SetPagesCount

func (o *Pagination) SetPagesCount(v int32)

SetPagesCount gets a reference to the given int32 and assigns it to the PagesCount field.

func (*Pagination) SetPerPage

func (o *Pagination) SetPerPage(v int32)

SetPerPage gets a reference to the given int32 and assigns it to the PerPage field.

func (*Pagination) SetRowsCount

func (o *Pagination) SetRowsCount(v int32)

SetRowsCount gets a reference to the given int32 and assigns it to the RowsCount field.

func (*Pagination) UnmarshalJSON

func (o *Pagination) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ParamTplApi

type ParamTplApi common.Service

ParamTplApi service type

func NewParamTplApi

func NewParamTplApi(client *common.APIClient) *ParamTplApi

NewParamTplApi Returns NewParamTplApi.

func (*ParamTplApi) CreateParamTpl

func (a *ParamTplApi) CreateParamTpl(ctx _context.Context, orgName string, body ParamTplCreate) (ParamTplListItem, *_nethttp.Response, error)

CreateParamTpl Create configuration template.

func (*ParamTplApi) CreateParamTplFromCluster

func (a *ParamTplApi) CreateParamTplFromCluster(ctx _context.Context, orgName string, clusterName string, body ParamTplCreateFromCluster) (*_nethttp.Response, error)

CreateParamTplFromCluster Export configuration template from cluster.

func (*ParamTplApi) DeleteParamTpl

func (a *ParamTplApi) DeleteParamTpl(ctx _context.Context, orgName string, paramTplName string) (*_nethttp.Response, error)

DeleteParamTpl Delete configuration template.

func (*ParamTplApi) GetClusterParamTpls

GetClusterParamTpls Get cluster configuration templates.

func (*ParamTplApi) ListParamTpl

ListParamTpl List configuration templates in an Org.

func (*ParamTplApi) PatchParamTpl

func (a *ParamTplApi) PatchParamTpl(ctx _context.Context, orgName string, paramTplName string, body ParamTplUpdate) (ParamTplListItem, *_nethttp.Response, error)

PatchParamTpl Update configuration template. partially update the parameter template

func (*ParamTplApi) ReadParamTpl

func (a *ParamTplApi) ReadParamTpl(ctx _context.Context, orgName string, paramTplName string, o ...ReadParamTplOptionalParameters) (ParamTplGet, *_nethttp.Response, error)

ReadParamTpl Get configuration template details.

type ParamTplApplToClusterList

type ParamTplApplToClusterList struct {
	// Items is the list of parameter templates applicable to the cluster objects in the list
	Items []ParamTplApplToClusterListItem `json:"items"`
	// PageResult info
	PageResult *PageResult `json:"pageResult,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ParamTplApplToClusterList paramTplAPPLToClusterList is a list of parameter templates applicable to the cluster

func NewParamTplApplToClusterList

func NewParamTplApplToClusterList(items []ParamTplApplToClusterListItem) *ParamTplApplToClusterList

NewParamTplApplToClusterList instantiates a new ParamTplApplToClusterList 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 NewParamTplApplToClusterListWithDefaults

func NewParamTplApplToClusterListWithDefaults() *ParamTplApplToClusterList

NewParamTplApplToClusterListWithDefaults instantiates a new ParamTplApplToClusterList 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 (*ParamTplApplToClusterList) GetItems

GetItems returns the Items field value.

func (*ParamTplApplToClusterList) GetItemsOk

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (*ParamTplApplToClusterList) GetPageResult

func (o *ParamTplApplToClusterList) GetPageResult() PageResult

GetPageResult returns the PageResult field value if set, zero value otherwise.

func (*ParamTplApplToClusterList) GetPageResultOk

func (o *ParamTplApplToClusterList) GetPageResultOk() (*PageResult, bool)

GetPageResultOk returns a tuple with the PageResult field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ParamTplApplToClusterList) HasPageResult

func (o *ParamTplApplToClusterList) HasPageResult() bool

HasPageResult returns a boolean if a field has been set.

func (ParamTplApplToClusterList) MarshalJSON

func (o ParamTplApplToClusterList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ParamTplApplToClusterList) SetItems

SetItems sets field value.

func (*ParamTplApplToClusterList) SetPageResult

func (o *ParamTplApplToClusterList) SetPageResult(v PageResult)

SetPageResult gets a reference to the given PageResult and assigns it to the PageResult field.

func (*ParamTplApplToClusterList) UnmarshalJSON

func (o *ParamTplApplToClusterList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ParamTplApplToClusterListItem

type ParamTplApplToClusterListItem struct {
	// The number of parameters in the parameter template
	Count int32 `json:"count"`
	// Name of parameter template. Name must be unique within an Org
	Name string `json:"name"`
	// whether to restart after applying this parameter template or not
	NeedRestart bool `json:"needRestart"`
	// the template partition
	Partition string `json:"partition"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ParamTplApplToClusterListItem parameter template applicable to the cluster information

func NewParamTplApplToClusterListItem

func NewParamTplApplToClusterListItem(count int32, name string, needRestart bool, partition string) *ParamTplApplToClusterListItem

NewParamTplApplToClusterListItem instantiates a new ParamTplApplToClusterListItem 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 NewParamTplApplToClusterListItemWithDefaults

func NewParamTplApplToClusterListItemWithDefaults() *ParamTplApplToClusterListItem

NewParamTplApplToClusterListItemWithDefaults instantiates a new ParamTplApplToClusterListItem 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 (*ParamTplApplToClusterListItem) GetCount

func (o *ParamTplApplToClusterListItem) GetCount() int32

GetCount returns the Count field value.

func (*ParamTplApplToClusterListItem) GetCountOk

func (o *ParamTplApplToClusterListItem) GetCountOk() (*int32, bool)

GetCountOk returns a tuple with the Count field value and a boolean to check if the value has been set.

func (*ParamTplApplToClusterListItem) GetName

GetName returns the Name field value.

func (*ParamTplApplToClusterListItem) GetNameOk

func (o *ParamTplApplToClusterListItem) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*ParamTplApplToClusterListItem) GetNeedRestart

func (o *ParamTplApplToClusterListItem) GetNeedRestart() bool

GetNeedRestart returns the NeedRestart field value.

func (*ParamTplApplToClusterListItem) GetNeedRestartOk

func (o *ParamTplApplToClusterListItem) GetNeedRestartOk() (*bool, bool)

GetNeedRestartOk returns a tuple with the NeedRestart field value and a boolean to check if the value has been set.

func (*ParamTplApplToClusterListItem) GetPartition

func (o *ParamTplApplToClusterListItem) GetPartition() string

GetPartition returns the Partition field value.

func (*ParamTplApplToClusterListItem) GetPartitionOk

func (o *ParamTplApplToClusterListItem) GetPartitionOk() (*string, bool)

GetPartitionOk returns a tuple with the Partition field value and a boolean to check if the value has been set.

func (ParamTplApplToClusterListItem) MarshalJSON

func (o ParamTplApplToClusterListItem) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ParamTplApplToClusterListItem) SetCount

func (o *ParamTplApplToClusterListItem) SetCount(v int32)

SetCount sets field value.

func (*ParamTplApplToClusterListItem) SetName

func (o *ParamTplApplToClusterListItem) SetName(v string)

SetName sets field value.

func (*ParamTplApplToClusterListItem) SetNeedRestart

func (o *ParamTplApplToClusterListItem) SetNeedRestart(v bool)

SetNeedRestart sets field value.

func (*ParamTplApplToClusterListItem) SetPartition

func (o *ParamTplApplToClusterListItem) SetPartition(v string)

SetPartition sets field value.

func (*ParamTplApplToClusterListItem) UnmarshalJSON

func (o *ParamTplApplToClusterListItem) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ParamTplCreate

type ParamTplCreate struct {
	// Description of parameter template
	Description string `json:"description"`
	// Name of database with its version, eg: mysql8.0
	Family string `json:"family"`
	// Name of parameter template. Name must be unique within an Org
	Name string `json:"name"`
	// Name of custom parameter template. When set customName, will create a copy of this custom parameter template.
	CustomName *string `json:"customName,omitempty"`
	// Determines whether the user can see this parameter template
	IsPrivate *bool `json:"isPrivate,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ParamTplCreate parameter template create

func NewParamTplCreate

func NewParamTplCreate(description string, family string, name string) *ParamTplCreate

NewParamTplCreate instantiates a new ParamTplCreate 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 NewParamTplCreateWithDefaults

func NewParamTplCreateWithDefaults() *ParamTplCreate

NewParamTplCreateWithDefaults instantiates a new ParamTplCreate 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 (*ParamTplCreate) GetCustomName

func (o *ParamTplCreate) GetCustomName() string

GetCustomName returns the CustomName field value if set, zero value otherwise.

func (*ParamTplCreate) GetCustomNameOk

func (o *ParamTplCreate) GetCustomNameOk() (*string, bool)

GetCustomNameOk returns a tuple with the CustomName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ParamTplCreate) GetDescription

func (o *ParamTplCreate) GetDescription() string

GetDescription returns the Description field value.

func (*ParamTplCreate) GetDescriptionOk

func (o *ParamTplCreate) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.

func (*ParamTplCreate) GetFamily

func (o *ParamTplCreate) GetFamily() string

GetFamily returns the Family field value.

func (*ParamTplCreate) GetFamilyOk

func (o *ParamTplCreate) GetFamilyOk() (*string, bool)

GetFamilyOk returns a tuple with the Family field value and a boolean to check if the value has been set.

func (*ParamTplCreate) GetIsPrivate

func (o *ParamTplCreate) GetIsPrivate() bool

GetIsPrivate returns the IsPrivate field value if set, zero value otherwise.

func (*ParamTplCreate) GetIsPrivateOk

func (o *ParamTplCreate) GetIsPrivateOk() (*bool, bool)

GetIsPrivateOk returns a tuple with the IsPrivate field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ParamTplCreate) GetName

func (o *ParamTplCreate) GetName() string

GetName returns the Name field value.

func (*ParamTplCreate) GetNameOk

func (o *ParamTplCreate) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*ParamTplCreate) HasCustomName

func (o *ParamTplCreate) HasCustomName() bool

HasCustomName returns a boolean if a field has been set.

func (*ParamTplCreate) HasIsPrivate

func (o *ParamTplCreate) HasIsPrivate() bool

HasIsPrivate returns a boolean if a field has been set.

func (ParamTplCreate) MarshalJSON

func (o ParamTplCreate) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ParamTplCreate) SetCustomName

func (o *ParamTplCreate) SetCustomName(v string)

SetCustomName gets a reference to the given string and assigns it to the CustomName field.

func (*ParamTplCreate) SetDescription

func (o *ParamTplCreate) SetDescription(v string)

SetDescription sets field value.

func (*ParamTplCreate) SetFamily

func (o *ParamTplCreate) SetFamily(v string)

SetFamily sets field value.

func (*ParamTplCreate) SetIsPrivate

func (o *ParamTplCreate) SetIsPrivate(v bool)

SetIsPrivate gets a reference to the given bool and assigns it to the IsPrivate field.

func (*ParamTplCreate) SetName

func (o *ParamTplCreate) SetName(v string)

SetName sets field value.

func (*ParamTplCreate) UnmarshalJSON

func (o *ParamTplCreate) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ParamTplCreateFromCluster

type ParamTplCreateFromCluster struct {
	// Description of parameter template
	Description string `json:"description"`
	// Name of parameter template. Name must be unique within an Org
	Name string `json:"name"`
	// component type.
	Component *string `json:"component,omitempty"`
	// database engine Version
	EngineVersion *string `json:"engineVersion,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ParamTplCreateFromCluster parameter template create

func NewParamTplCreateFromCluster

func NewParamTplCreateFromCluster(description string, name string) *ParamTplCreateFromCluster

NewParamTplCreateFromCluster instantiates a new ParamTplCreateFromCluster 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 NewParamTplCreateFromClusterWithDefaults

func NewParamTplCreateFromClusterWithDefaults() *ParamTplCreateFromCluster

NewParamTplCreateFromClusterWithDefaults instantiates a new ParamTplCreateFromCluster 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 (*ParamTplCreateFromCluster) GetComponent

func (o *ParamTplCreateFromCluster) GetComponent() string

GetComponent returns the Component field value if set, zero value otherwise.

func (*ParamTplCreateFromCluster) GetComponentOk

func (o *ParamTplCreateFromCluster) GetComponentOk() (*string, bool)

GetComponentOk returns a tuple with the Component field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ParamTplCreateFromCluster) GetDescription

func (o *ParamTplCreateFromCluster) GetDescription() string

GetDescription returns the Description field value.

func (*ParamTplCreateFromCluster) GetDescriptionOk

func (o *ParamTplCreateFromCluster) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.

func (*ParamTplCreateFromCluster) GetEngineVersion

func (o *ParamTplCreateFromCluster) GetEngineVersion() string

GetEngineVersion returns the EngineVersion field value if set, zero value otherwise.

func (*ParamTplCreateFromCluster) GetEngineVersionOk

func (o *ParamTplCreateFromCluster) GetEngineVersionOk() (*string, bool)

GetEngineVersionOk returns a tuple with the EngineVersion field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ParamTplCreateFromCluster) GetName

func (o *ParamTplCreateFromCluster) GetName() string

GetName returns the Name field value.

func (*ParamTplCreateFromCluster) GetNameOk

func (o *ParamTplCreateFromCluster) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*ParamTplCreateFromCluster) HasComponent

func (o *ParamTplCreateFromCluster) HasComponent() bool

HasComponent returns a boolean if a field has been set.

func (*ParamTplCreateFromCluster) HasEngineVersion

func (o *ParamTplCreateFromCluster) HasEngineVersion() bool

HasEngineVersion returns a boolean if a field has been set.

func (ParamTplCreateFromCluster) MarshalJSON

func (o ParamTplCreateFromCluster) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ParamTplCreateFromCluster) SetComponent

func (o *ParamTplCreateFromCluster) SetComponent(v string)

SetComponent gets a reference to the given string and assigns it to the Component field.

func (*ParamTplCreateFromCluster) SetDescription

func (o *ParamTplCreateFromCluster) SetDescription(v string)

SetDescription sets field value.

func (*ParamTplCreateFromCluster) SetEngineVersion

func (o *ParamTplCreateFromCluster) SetEngineVersion(v string)

SetEngineVersion gets a reference to the given string and assigns it to the EngineVersion field.

func (*ParamTplCreateFromCluster) SetName

func (o *ParamTplCreateFromCluster) SetName(v string)

SetName sets field value.

func (*ParamTplCreateFromCluster) UnmarshalJSON

func (o *ParamTplCreateFromCluster) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ParamTplGet

type ParamTplGet struct {
	Items []ParamTplGetItem `json:"items,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ParamTplGet paramTplGet is the response of get parameter template request

func NewParamTplGet

func NewParamTplGet() *ParamTplGet

NewParamTplGet instantiates a new ParamTplGet 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 NewParamTplGetWithDefaults

func NewParamTplGetWithDefaults() *ParamTplGet

NewParamTplGetWithDefaults instantiates a new ParamTplGet 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 (*ParamTplGet) GetItems

func (o *ParamTplGet) GetItems() []ParamTplGetItem

GetItems returns the Items field value if set, zero value otherwise.

func (*ParamTplGet) GetItemsOk

func (o *ParamTplGet) GetItemsOk() (*[]ParamTplGetItem, bool)

GetItemsOk returns a tuple with the Items field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ParamTplGet) HasItems

func (o *ParamTplGet) HasItems() bool

HasItems returns a boolean if a field has been set.

func (ParamTplGet) MarshalJSON

func (o ParamTplGet) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ParamTplGet) SetItems

func (o *ParamTplGet) SetItems(v []ParamTplGetItem)

SetItems gets a reference to the given []ParamTplGetItem and assigns it to the Items field.

func (*ParamTplGet) UnmarshalJSON

func (o *ParamTplGet) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ParamTplGetItem

type ParamTplGetItem struct {
	// The name of the configuration spec
	SpecName string `json:"specName"`
	// Cluster parameters configuration, include the file name and content of the parameters
	Config ConfigurationWithRegex `json:"config"`
	// With the list of parameterSpecs and the configuration file name
	ParameterSpec ParameterSpecListItem `json:"parameterSpec"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ParamTplGetItem paramTplGetItem is a list of get parameter template and parameterSpec

func NewParamTplGetItem

func NewParamTplGetItem(specName string, config ConfigurationWithRegex, parameterSpec ParameterSpecListItem) *ParamTplGetItem

NewParamTplGetItem instantiates a new ParamTplGetItem 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 NewParamTplGetItemWithDefaults

func NewParamTplGetItemWithDefaults() *ParamTplGetItem

NewParamTplGetItemWithDefaults instantiates a new ParamTplGetItem 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 (*ParamTplGetItem) GetConfig

func (o *ParamTplGetItem) GetConfig() ConfigurationWithRegex

GetConfig returns the Config field value.

func (*ParamTplGetItem) GetConfigOk

func (o *ParamTplGetItem) GetConfigOk() (*ConfigurationWithRegex, bool)

GetConfigOk returns a tuple with the Config field value and a boolean to check if the value has been set.

func (*ParamTplGetItem) GetParameterSpec

func (o *ParamTplGetItem) GetParameterSpec() ParameterSpecListItem

GetParameterSpec returns the ParameterSpec field value.

func (*ParamTplGetItem) GetParameterSpecOk

func (o *ParamTplGetItem) GetParameterSpecOk() (*ParameterSpecListItem, bool)

GetParameterSpecOk returns a tuple with the ParameterSpec field value and a boolean to check if the value has been set.

func (*ParamTplGetItem) GetSpecName

func (o *ParamTplGetItem) GetSpecName() string

GetSpecName returns the SpecName field value.

func (*ParamTplGetItem) GetSpecNameOk

func (o *ParamTplGetItem) GetSpecNameOk() (*string, bool)

GetSpecNameOk returns a tuple with the SpecName field value and a boolean to check if the value has been set.

func (ParamTplGetItem) MarshalJSON

func (o ParamTplGetItem) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ParamTplGetItem) SetConfig

func (o *ParamTplGetItem) SetConfig(v ConfigurationWithRegex)

SetConfig sets field value.

func (*ParamTplGetItem) SetParameterSpec

func (o *ParamTplGetItem) SetParameterSpec(v ParameterSpecListItem)

SetParameterSpec sets field value.

func (*ParamTplGetItem) SetSpecName

func (o *ParamTplGetItem) SetSpecName(v string)

SetSpecName sets field value.

func (*ParamTplGetItem) UnmarshalJSON

func (o *ParamTplGetItem) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ParamTplList

type ParamTplList struct {
	// Items is the list of parameter templates objects in the list
	Items []ParamTplListItem `json:"items"`
	// PageResult info
	PageResult *PageResult `json:"pageResult,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ParamTplList paramTplList is a list of parameter templates

func NewParamTplList

func NewParamTplList(items []ParamTplListItem) *ParamTplList

NewParamTplList instantiates a new ParamTplList 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 NewParamTplListWithDefaults

func NewParamTplListWithDefaults() *ParamTplList

NewParamTplListWithDefaults instantiates a new ParamTplList 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 (*ParamTplList) GetItems

func (o *ParamTplList) GetItems() []ParamTplListItem

GetItems returns the Items field value.

func (*ParamTplList) GetItemsOk

func (o *ParamTplList) GetItemsOk() (*[]ParamTplListItem, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (*ParamTplList) GetPageResult

func (o *ParamTplList) GetPageResult() PageResult

GetPageResult returns the PageResult field value if set, zero value otherwise.

func (*ParamTplList) GetPageResultOk

func (o *ParamTplList) GetPageResultOk() (*PageResult, bool)

GetPageResultOk returns a tuple with the PageResult field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ParamTplList) HasPageResult

func (o *ParamTplList) HasPageResult() bool

HasPageResult returns a boolean if a field has been set.

func (ParamTplList) MarshalJSON

func (o ParamTplList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ParamTplList) SetItems

func (o *ParamTplList) SetItems(v []ParamTplListItem)

SetItems sets field value.

func (*ParamTplList) SetPageResult

func (o *ParamTplList) SetPageResult(v PageResult)

SetPageResult gets a reference to the given PageResult and assigns it to the PageResult field.

func (*ParamTplList) UnmarshalJSON

func (o *ParamTplList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ParamTplListItem

type ParamTplListItem struct {
	// Name of the organization
	OrgName *string `json:"orgName,omitempty"`
	// CreatedAt is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.
	//
	// Populated by the system. Read-only. Null for lists
	CreatedAt *time.Time `json:"createdAt,omitempty"`
	// Description of parameter template
	Description string `json:"description"`
	// Name of database with its version, eg: mysql8.0
	Family string `json:"family"`
	// Name of parameter template. Name must be unique within an Org
	Name string `json:"name"`
	// the template partition in listParamTpl request
	Partition string `json:"partition"`
	// UpdatedAt is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.
	//
	// Populated by the system. Read-only. Null for lists
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ParamTplListItem parameter template information

func NewParamTplListItem

func NewParamTplListItem(description string, family string, name string, partition string) *ParamTplListItem

NewParamTplListItem instantiates a new ParamTplListItem 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 NewParamTplListItemWithDefaults

func NewParamTplListItemWithDefaults() *ParamTplListItem

NewParamTplListItemWithDefaults instantiates a new ParamTplListItem 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 (*ParamTplListItem) GetCreatedAt

func (o *ParamTplListItem) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.

func (*ParamTplListItem) GetCreatedAtOk

func (o *ParamTplListItem) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ParamTplListItem) GetDescription

func (o *ParamTplListItem) GetDescription() string

GetDescription returns the Description field value.

func (*ParamTplListItem) GetDescriptionOk

func (o *ParamTplListItem) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.

func (*ParamTplListItem) GetFamily

func (o *ParamTplListItem) GetFamily() string

GetFamily returns the Family field value.

func (*ParamTplListItem) GetFamilyOk

func (o *ParamTplListItem) GetFamilyOk() (*string, bool)

GetFamilyOk returns a tuple with the Family field value and a boolean to check if the value has been set.

func (*ParamTplListItem) GetName

func (o *ParamTplListItem) GetName() string

GetName returns the Name field value.

func (*ParamTplListItem) GetNameOk

func (o *ParamTplListItem) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*ParamTplListItem) GetOrgName

func (o *ParamTplListItem) GetOrgName() string

GetOrgName returns the OrgName field value if set, zero value otherwise.

func (*ParamTplListItem) GetOrgNameOk

func (o *ParamTplListItem) GetOrgNameOk() (*string, bool)

GetOrgNameOk returns a tuple with the OrgName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ParamTplListItem) GetPartition

func (o *ParamTplListItem) GetPartition() string

GetPartition returns the Partition field value.

func (*ParamTplListItem) GetPartitionOk

func (o *ParamTplListItem) GetPartitionOk() (*string, bool)

GetPartitionOk returns a tuple with the Partition field value and a boolean to check if the value has been set.

func (*ParamTplListItem) GetUpdatedAt

func (o *ParamTplListItem) GetUpdatedAt() time.Time

GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.

func (*ParamTplListItem) GetUpdatedAtOk

func (o *ParamTplListItem) GetUpdatedAtOk() (*time.Time, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ParamTplListItem) HasCreatedAt

func (o *ParamTplListItem) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*ParamTplListItem) HasOrgName

func (o *ParamTplListItem) HasOrgName() bool

HasOrgName returns a boolean if a field has been set.

func (*ParamTplListItem) HasUpdatedAt

func (o *ParamTplListItem) HasUpdatedAt() bool

HasUpdatedAt returns a boolean if a field has been set.

func (ParamTplListItem) MarshalJSON

func (o ParamTplListItem) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ParamTplListItem) SetCreatedAt

func (o *ParamTplListItem) SetCreatedAt(v time.Time)

SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.

func (*ParamTplListItem) SetDescription

func (o *ParamTplListItem) SetDescription(v string)

SetDescription sets field value.

func (*ParamTplListItem) SetFamily

func (o *ParamTplListItem) SetFamily(v string)

SetFamily sets field value.

func (*ParamTplListItem) SetName

func (o *ParamTplListItem) SetName(v string)

SetName sets field value.

func (*ParamTplListItem) SetOrgName

func (o *ParamTplListItem) SetOrgName(v string)

SetOrgName gets a reference to the given string and assigns it to the OrgName field.

func (*ParamTplListItem) SetPartition

func (o *ParamTplListItem) SetPartition(v string)

SetPartition sets field value.

func (*ParamTplListItem) SetUpdatedAt

func (o *ParamTplListItem) SetUpdatedAt(v time.Time)

SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field.

func (*ParamTplListItem) UnmarshalJSON

func (o *ParamTplListItem) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ParamTplPartition

type ParamTplPartition string
const (
	ParamTplPartitionDefault ParamTplPartition = "default"
	ParamTplPartitionCustom  ParamTplPartition = "custom"
)

List of ParamTplPartition.

func NewParamTplPartitionFromValue

func NewParamTplPartitionFromValue(v string) (*ParamTplPartition, error)

NewParamTplPartitionFromValue returns a pointer to a valid ParamTplPartition for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*ParamTplPartition) GetAllowedValues

func (v *ParamTplPartition) GetAllowedValues() []ParamTplPartition

GetAllowedValues returns the list of possible values.

func (ParamTplPartition) IsValid

func (v ParamTplPartition) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (ParamTplPartition) Ptr

Ptr returns reference to ParamTplPartition value.

func (*ParamTplPartition) UnmarshalJSON

func (v *ParamTplPartition) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type ParamTplUpdate

type ParamTplUpdate struct {
	// Specify parameters belongs to which spec
	SpecName *string `json:"specName,omitempty"`
	// Specify parameters belongs to which config file
	ConfigFile *string `json:"configFile,omitempty"`
	// Specify parameters list to be updated
	Parameters map[string]string `json:"parameters,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ParamTplUpdate paramTplUpdate is the payload to update a parameter template

func NewParamTplUpdate

func NewParamTplUpdate() *ParamTplUpdate

NewParamTplUpdate instantiates a new ParamTplUpdate 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 NewParamTplUpdateWithDefaults

func NewParamTplUpdateWithDefaults() *ParamTplUpdate

NewParamTplUpdateWithDefaults instantiates a new ParamTplUpdate 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 (*ParamTplUpdate) GetConfigFile

func (o *ParamTplUpdate) GetConfigFile() string

GetConfigFile returns the ConfigFile field value if set, zero value otherwise.

func (*ParamTplUpdate) GetConfigFileOk

func (o *ParamTplUpdate) GetConfigFileOk() (*string, bool)

GetConfigFileOk returns a tuple with the ConfigFile field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ParamTplUpdate) GetParameters

func (o *ParamTplUpdate) GetParameters() map[string]string

GetParameters returns the Parameters field value if set, zero value otherwise.

func (*ParamTplUpdate) GetParametersOk

func (o *ParamTplUpdate) GetParametersOk() (*map[string]string, bool)

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 (*ParamTplUpdate) GetSpecName

func (o *ParamTplUpdate) GetSpecName() string

GetSpecName returns the SpecName field value if set, zero value otherwise.

func (*ParamTplUpdate) GetSpecNameOk

func (o *ParamTplUpdate) GetSpecNameOk() (*string, bool)

GetSpecNameOk returns a tuple with the SpecName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ParamTplUpdate) HasConfigFile

func (o *ParamTplUpdate) HasConfigFile() bool

HasConfigFile returns a boolean if a field has been set.

func (*ParamTplUpdate) HasParameters

func (o *ParamTplUpdate) HasParameters() bool

HasParameters returns a boolean if a field has been set.

func (*ParamTplUpdate) HasSpecName

func (o *ParamTplUpdate) HasSpecName() bool

HasSpecName returns a boolean if a field has been set.

func (ParamTplUpdate) MarshalJSON

func (o ParamTplUpdate) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ParamTplUpdate) SetConfigFile

func (o *ParamTplUpdate) SetConfigFile(v string)

SetConfigFile gets a reference to the given string and assigns it to the ConfigFile field.

func (*ParamTplUpdate) SetParameters

func (o *ParamTplUpdate) SetParameters(v map[string]string)

SetParameters gets a reference to the given map[string]string and assigns it to the Parameters field.

func (*ParamTplUpdate) SetSpecName

func (o *ParamTplUpdate) SetSpecName(v string)

SetSpecName gets a reference to the given string and assigns it to the SpecName field.

func (*ParamTplUpdate) UnmarshalJSON

func (o *ParamTplUpdate) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ParamTplsItem

type ParamTplsItem struct {
	// component type, refer to componentDef and support NamePrefix, Deprecated.
	ComponentDefRef *string `json:"componentDefRef,omitempty"`
	// component type, refer to componentDef and support NamePrefix
	Component *string `json:"component,omitempty"`
	// name of assigned parameter template
	ParamTplName      *string            `json:"paramTplName,omitempty"`
	ParamTplPartition *ParamTplPartition `json:"paramTplPartition,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ParamTplsItem the item of the parameter template

func NewParamTplsItem

func NewParamTplsItem() *ParamTplsItem

NewParamTplsItem instantiates a new ParamTplsItem 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 NewParamTplsItemWithDefaults

func NewParamTplsItemWithDefaults() *ParamTplsItem

NewParamTplsItemWithDefaults instantiates a new ParamTplsItem 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 (*ParamTplsItem) GetComponent

func (o *ParamTplsItem) GetComponent() string

GetComponent returns the Component field value if set, zero value otherwise.

func (*ParamTplsItem) GetComponentDefRef

func (o *ParamTplsItem) GetComponentDefRef() string

GetComponentDefRef returns the ComponentDefRef field value if set, zero value otherwise.

func (*ParamTplsItem) GetComponentDefRefOk

func (o *ParamTplsItem) GetComponentDefRefOk() (*string, bool)

GetComponentDefRefOk returns a tuple with the ComponentDefRef field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ParamTplsItem) GetComponentOk

func (o *ParamTplsItem) GetComponentOk() (*string, bool)

GetComponentOk returns a tuple with the Component field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ParamTplsItem) GetParamTplName

func (o *ParamTplsItem) GetParamTplName() string

GetParamTplName returns the ParamTplName field value if set, zero value otherwise.

func (*ParamTplsItem) GetParamTplNameOk

func (o *ParamTplsItem) GetParamTplNameOk() (*string, bool)

GetParamTplNameOk returns a tuple with the ParamTplName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ParamTplsItem) GetParamTplPartition

func (o *ParamTplsItem) GetParamTplPartition() ParamTplPartition

GetParamTplPartition returns the ParamTplPartition field value if set, zero value otherwise.

func (*ParamTplsItem) GetParamTplPartitionOk

func (o *ParamTplsItem) GetParamTplPartitionOk() (*ParamTplPartition, bool)

GetParamTplPartitionOk returns a tuple with the ParamTplPartition field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ParamTplsItem) HasComponent

func (o *ParamTplsItem) HasComponent() bool

HasComponent returns a boolean if a field has been set.

func (*ParamTplsItem) HasComponentDefRef

func (o *ParamTplsItem) HasComponentDefRef() bool

HasComponentDefRef returns a boolean if a field has been set.

func (*ParamTplsItem) HasParamTplName

func (o *ParamTplsItem) HasParamTplName() bool

HasParamTplName returns a boolean if a field has been set.

func (*ParamTplsItem) HasParamTplPartition

func (o *ParamTplsItem) HasParamTplPartition() bool

HasParamTplPartition returns a boolean if a field has been set.

func (ParamTplsItem) MarshalJSON

func (o ParamTplsItem) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ParamTplsItem) SetComponent

func (o *ParamTplsItem) SetComponent(v string)

SetComponent gets a reference to the given string and assigns it to the Component field.

func (*ParamTplsItem) SetComponentDefRef

func (o *ParamTplsItem) SetComponentDefRef(v string)

SetComponentDefRef gets a reference to the given string and assigns it to the ComponentDefRef field.

func (*ParamTplsItem) SetParamTplName

func (o *ParamTplsItem) SetParamTplName(v string)

SetParamTplName gets a reference to the given string and assigns it to the ParamTplName field.

func (*ParamTplsItem) SetParamTplPartition

func (o *ParamTplsItem) SetParamTplPartition(v ParamTplPartition)

SetParamTplPartition gets a reference to the given ParamTplPartition and assigns it to the ParamTplPartition field.

func (*ParamTplsItem) UnmarshalJSON

func (o *ParamTplsItem) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ParameterApi

type ParameterApi common.Service

ParameterApi service type

func NewParameterApi

func NewParameterApi(client *common.APIClient) *ParameterApi

NewParameterApi Returns NewParameterApi.

func (*ParameterApi) ListConfigurations

func (a *ParameterApi) ListConfigurations(ctx _context.Context, orgName string, clusterName string, o ...ListConfigurationsOptionalParameters) (ConfigurationList, *_nethttp.Response, error)

ListConfigurations List configurations of the cluster.

func (*ParameterApi) ListParameterSpecs

func (a *ParameterApi) ListParameterSpecs(ctx _context.Context, orgName string, clusterName string, o ...ListParameterSpecsOptionalParameters) (ParameterSpecList, *_nethttp.Response, error)

ListParameterSpecs List parameter specs of the cluster.

func (*ParameterApi) ListParametersHistory

func (a *ParameterApi) ListParametersHistory(ctx _context.Context, orgName string, clusterName string, o ...ListParametersHistoryOptionalParameters) (ParameterHistoryList, *_nethttp.Response, error)

ListParametersHistory List parameters history of the cluster.

type ParameterConfig

type ParameterConfig struct {
	ConfigName    string                 `json:"configName"`
	SpecName      string                 `json:"specName"`
	Constraint    string                 `json:"constraint"`
	Regex         string                 `json:"regex"`
	ConfigTplName string                 `json:"configTplName"`
	InitOptions   map[string]interface{} `json:"initOptions,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewParameterConfig

func NewParameterConfig(configName string, specName string, constraint string, regex string, configTplName string) *ParameterConfig

NewParameterConfig instantiates a new ParameterConfig 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 NewParameterConfigWithDefaults

func NewParameterConfigWithDefaults() *ParameterConfig

NewParameterConfigWithDefaults instantiates a new ParameterConfig 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 (*ParameterConfig) GetConfigName

func (o *ParameterConfig) GetConfigName() string

GetConfigName returns the ConfigName field value.

func (*ParameterConfig) GetConfigNameOk

func (o *ParameterConfig) GetConfigNameOk() (*string, bool)

GetConfigNameOk returns a tuple with the ConfigName field value and a boolean to check if the value has been set.

func (*ParameterConfig) GetConfigTplName

func (o *ParameterConfig) GetConfigTplName() string

GetConfigTplName returns the ConfigTplName field value.

func (*ParameterConfig) GetConfigTplNameOk

func (o *ParameterConfig) GetConfigTplNameOk() (*string, bool)

GetConfigTplNameOk returns a tuple with the ConfigTplName field value and a boolean to check if the value has been set.

func (*ParameterConfig) GetConstraint

func (o *ParameterConfig) GetConstraint() string

GetConstraint returns the Constraint field value.

func (*ParameterConfig) GetConstraintOk

func (o *ParameterConfig) GetConstraintOk() (*string, bool)

GetConstraintOk returns a tuple with the Constraint field value and a boolean to check if the value has been set.

func (*ParameterConfig) GetInitOptions

func (o *ParameterConfig) GetInitOptions() map[string]interface{}

GetInitOptions returns the InitOptions field value if set, zero value otherwise.

func (*ParameterConfig) GetInitOptionsOk

func (o *ParameterConfig) GetInitOptionsOk() (*map[string]interface{}, bool)

GetInitOptionsOk returns a tuple with the InitOptions field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ParameterConfig) GetRegex

func (o *ParameterConfig) GetRegex() string

GetRegex returns the Regex field value.

func (*ParameterConfig) GetRegexOk

func (o *ParameterConfig) GetRegexOk() (*string, bool)

GetRegexOk returns a tuple with the Regex field value and a boolean to check if the value has been set.

func (*ParameterConfig) GetSpecName

func (o *ParameterConfig) GetSpecName() string

GetSpecName returns the SpecName field value.

func (*ParameterConfig) GetSpecNameOk

func (o *ParameterConfig) GetSpecNameOk() (*string, bool)

GetSpecNameOk returns a tuple with the SpecName field value and a boolean to check if the value has been set.

func (*ParameterConfig) HasInitOptions

func (o *ParameterConfig) HasInitOptions() bool

HasInitOptions returns a boolean if a field has been set.

func (ParameterConfig) MarshalJSON

func (o ParameterConfig) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ParameterConfig) SetConfigName

func (o *ParameterConfig) SetConfigName(v string)

SetConfigName sets field value.

func (*ParameterConfig) SetConfigTplName

func (o *ParameterConfig) SetConfigTplName(v string)

SetConfigTplName sets field value.

func (*ParameterConfig) SetConstraint

func (o *ParameterConfig) SetConstraint(v string)

SetConstraint sets field value.

func (*ParameterConfig) SetInitOptions

func (o *ParameterConfig) SetInitOptions(v map[string]interface{})

SetInitOptions gets a reference to the given map[string]interface{} and assigns it to the InitOptions field.

func (*ParameterConfig) SetRegex

func (o *ParameterConfig) SetRegex(v string)

SetRegex sets field value.

func (*ParameterConfig) SetSpecName

func (o *ParameterConfig) SetSpecName(v string)

SetSpecName sets field value.

func (*ParameterConfig) UnmarshalJSON

func (o *ParameterConfig) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ParameterHistory

type ParameterHistory struct {
	// The name of the parameter
	ParameterName string `json:"parameterName"`
	// The old value of the parameter
	OldValue string `json:"oldValue"`
	// The new value of the parameter
	NewValue string `json:"newValue"`
	// The date and time the parameter was last updated
	UpdatedAt time.Time `json:"updatedAt"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ParameterHistory The history of a parameter

func NewParameterHistory

func NewParameterHistory(parameterName string, oldValue string, newValue string, updatedAt time.Time) *ParameterHistory

NewParameterHistory instantiates a new ParameterHistory 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 NewParameterHistoryWithDefaults

func NewParameterHistoryWithDefaults() *ParameterHistory

NewParameterHistoryWithDefaults instantiates a new ParameterHistory 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 (*ParameterHistory) GetNewValue

func (o *ParameterHistory) GetNewValue() string

GetNewValue returns the NewValue field value.

func (*ParameterHistory) GetNewValueOk

func (o *ParameterHistory) GetNewValueOk() (*string, bool)

GetNewValueOk returns a tuple with the NewValue field value and a boolean to check if the value has been set.

func (*ParameterHistory) GetOldValue

func (o *ParameterHistory) GetOldValue() string

GetOldValue returns the OldValue field value.

func (*ParameterHistory) GetOldValueOk

func (o *ParameterHistory) GetOldValueOk() (*string, bool)

GetOldValueOk returns a tuple with the OldValue field value and a boolean to check if the value has been set.

func (*ParameterHistory) GetParameterName

func (o *ParameterHistory) GetParameterName() string

GetParameterName returns the ParameterName field value.

func (*ParameterHistory) GetParameterNameOk

func (o *ParameterHistory) GetParameterNameOk() (*string, bool)

GetParameterNameOk returns a tuple with the ParameterName field value and a boolean to check if the value has been set.

func (*ParameterHistory) GetUpdatedAt

func (o *ParameterHistory) GetUpdatedAt() time.Time

GetUpdatedAt returns the UpdatedAt field value.

func (*ParameterHistory) GetUpdatedAtOk

func (o *ParameterHistory) GetUpdatedAtOk() (*time.Time, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value and a boolean to check if the value has been set.

func (ParameterHistory) MarshalJSON

func (o ParameterHistory) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ParameterHistory) SetNewValue

func (o *ParameterHistory) SetNewValue(v string)

SetNewValue sets field value.

func (*ParameterHistory) SetOldValue

func (o *ParameterHistory) SetOldValue(v string)

SetOldValue sets field value.

func (*ParameterHistory) SetParameterName

func (o *ParameterHistory) SetParameterName(v string)

SetParameterName sets field value.

func (*ParameterHistory) SetUpdatedAt

func (o *ParameterHistory) SetUpdatedAt(v time.Time)

SetUpdatedAt sets field value.

func (*ParameterHistory) UnmarshalJSON

func (o *ParameterHistory) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ParameterHistoryList

type ParameterHistoryList struct {
	Items []ParameterHistory `json:"items,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ParameterHistoryList A list of parameter history

func NewParameterHistoryList

func NewParameterHistoryList() *ParameterHistoryList

NewParameterHistoryList instantiates a new ParameterHistoryList 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 NewParameterHistoryListWithDefaults

func NewParameterHistoryListWithDefaults() *ParameterHistoryList

NewParameterHistoryListWithDefaults instantiates a new ParameterHistoryList 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 (*ParameterHistoryList) GetItems

func (o *ParameterHistoryList) GetItems() []ParameterHistory

GetItems returns the Items field value if set, zero value otherwise.

func (*ParameterHistoryList) GetItemsOk

func (o *ParameterHistoryList) GetItemsOk() (*[]ParameterHistory, bool)

GetItemsOk returns a tuple with the Items field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ParameterHistoryList) HasItems

func (o *ParameterHistoryList) HasItems() bool

HasItems returns a boolean if a field has been set.

func (ParameterHistoryList) MarshalJSON

func (o ParameterHistoryList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ParameterHistoryList) SetItems

func (o *ParameterHistoryList) SetItems(v []ParameterHistory)

SetItems gets a reference to the given []ParameterHistory and assigns it to the Items field.

func (*ParameterHistoryList) UnmarshalJSON

func (o *ParameterHistoryList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ParameterOption

type ParameterOption struct {
	Component string            `json:"component"`
	Configs   []ParameterConfig `json:"configs"`
	// deprecated
	Versions  []string `json:"versions,omitempty"`
	ExportTpl bool     `json:"exportTpl"`
	// a alias with major version.
	Family string `json:"family"`
	// match the major version
	MajorVersion          *string              `json:"majorVersion,omitempty"`
	DefaultTplName        string               `json:"defaultTplName"`
	DefaultTplDescription LocalizedDescription `json:"defaultTplDescription"`
	DisableHa             *bool                `json:"disableHA,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewParameterOption

func NewParameterOption(component string, configs []ParameterConfig, exportTpl bool, family string, defaultTplName string, defaultTplDescription LocalizedDescription) *ParameterOption

NewParameterOption instantiates a new ParameterOption 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 NewParameterOptionWithDefaults

func NewParameterOptionWithDefaults() *ParameterOption

NewParameterOptionWithDefaults instantiates a new ParameterOption 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 (*ParameterOption) GetComponent

func (o *ParameterOption) GetComponent() string

GetComponent returns the Component field value.

func (*ParameterOption) GetComponentOk

func (o *ParameterOption) GetComponentOk() (*string, bool)

GetComponentOk returns a tuple with the Component field value and a boolean to check if the value has been set.

func (*ParameterOption) GetConfigs

func (o *ParameterOption) GetConfigs() []ParameterConfig

GetConfigs returns the Configs field value.

func (*ParameterOption) GetConfigsOk

func (o *ParameterOption) GetConfigsOk() (*[]ParameterConfig, bool)

GetConfigsOk returns a tuple with the Configs field value and a boolean to check if the value has been set.

func (*ParameterOption) GetDefaultTplDescription

func (o *ParameterOption) GetDefaultTplDescription() LocalizedDescription

GetDefaultTplDescription returns the DefaultTplDescription field value.

func (*ParameterOption) GetDefaultTplDescriptionOk

func (o *ParameterOption) GetDefaultTplDescriptionOk() (*LocalizedDescription, bool)

GetDefaultTplDescriptionOk returns a tuple with the DefaultTplDescription field value and a boolean to check if the value has been set.

func (*ParameterOption) GetDefaultTplName

func (o *ParameterOption) GetDefaultTplName() string

GetDefaultTplName returns the DefaultTplName field value.

func (*ParameterOption) GetDefaultTplNameOk

func (o *ParameterOption) GetDefaultTplNameOk() (*string, bool)

GetDefaultTplNameOk returns a tuple with the DefaultTplName field value and a boolean to check if the value has been set.

func (*ParameterOption) GetDisableHa

func (o *ParameterOption) GetDisableHa() bool

GetDisableHa returns the DisableHa field value if set, zero value otherwise.

func (*ParameterOption) GetDisableHaOk

func (o *ParameterOption) GetDisableHaOk() (*bool, bool)

GetDisableHaOk returns a tuple with the DisableHa field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ParameterOption) GetExportTpl

func (o *ParameterOption) GetExportTpl() bool

GetExportTpl returns the ExportTpl field value.

func (*ParameterOption) GetExportTplOk

func (o *ParameterOption) GetExportTplOk() (*bool, bool)

GetExportTplOk returns a tuple with the ExportTpl field value and a boolean to check if the value has been set.

func (*ParameterOption) GetFamily

func (o *ParameterOption) GetFamily() string

GetFamily returns the Family field value.

func (*ParameterOption) GetFamilyOk

func (o *ParameterOption) GetFamilyOk() (*string, bool)

GetFamilyOk returns a tuple with the Family field value and a boolean to check if the value has been set.

func (*ParameterOption) GetMajorVersion

func (o *ParameterOption) GetMajorVersion() string

GetMajorVersion returns the MajorVersion field value if set, zero value otherwise.

func (*ParameterOption) GetMajorVersionOk

func (o *ParameterOption) GetMajorVersionOk() (*string, bool)

GetMajorVersionOk returns a tuple with the MajorVersion field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ParameterOption) GetVersions

func (o *ParameterOption) GetVersions() []string

GetVersions returns the Versions field value if set, zero value otherwise.

func (*ParameterOption) GetVersionsOk

func (o *ParameterOption) GetVersionsOk() (*[]string, bool)

GetVersionsOk returns a tuple with the Versions field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ParameterOption) HasDisableHa

func (o *ParameterOption) HasDisableHa() bool

HasDisableHa returns a boolean if a field has been set.

func (*ParameterOption) HasMajorVersion

func (o *ParameterOption) HasMajorVersion() bool

HasMajorVersion returns a boolean if a field has been set.

func (*ParameterOption) HasVersions added in v0.28.40

func (o *ParameterOption) HasVersions() bool

HasVersions returns a boolean if a field has been set.

func (ParameterOption) MarshalJSON

func (o ParameterOption) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ParameterOption) SetComponent

func (o *ParameterOption) SetComponent(v string)

SetComponent sets field value.

func (*ParameterOption) SetConfigs

func (o *ParameterOption) SetConfigs(v []ParameterConfig)

SetConfigs sets field value.

func (*ParameterOption) SetDefaultTplDescription

func (o *ParameterOption) SetDefaultTplDescription(v LocalizedDescription)

SetDefaultTplDescription sets field value.

func (*ParameterOption) SetDefaultTplName

func (o *ParameterOption) SetDefaultTplName(v string)

SetDefaultTplName sets field value.

func (*ParameterOption) SetDisableHa

func (o *ParameterOption) SetDisableHa(v bool)

SetDisableHa gets a reference to the given bool and assigns it to the DisableHa field.

func (*ParameterOption) SetExportTpl

func (o *ParameterOption) SetExportTpl(v bool)

SetExportTpl sets field value.

func (*ParameterOption) SetFamily

func (o *ParameterOption) SetFamily(v string)

SetFamily sets field value.

func (*ParameterOption) SetMajorVersion

func (o *ParameterOption) SetMajorVersion(v string)

SetMajorVersion gets a reference to the given string and assigns it to the MajorVersion field.

func (*ParameterOption) SetVersions

func (o *ParameterOption) SetVersions(v []string)

SetVersions gets a reference to the given []string and assigns it to the Versions field.

func (*ParameterOption) UnmarshalJSON

func (o *ParameterOption) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ParameterSpec

type ParameterSpec struct {
	// The name of the parameter
	Name string `json:"name"`
	// The description of the parameter
	Description string `json:"description"`
	// The type of the parameter value
	Type string `json:"type"`
	// The default value of the parameter
	Default map[string]interface{} `json:"default"`
	// Whether the parameter requires a restart to take effect
	NeedRestart bool `json:"needRestart"`
	// Whether the parameter is an immutable parameter, immutable parameters cannot be modified
	Immutable bool `json:"immutable"`
	// The maximum value of the parameter
	Maximum float64 `json:"maximum"`
	// The minimum value of the parameter
	Minimum float64 `json:"minimum"`
	// The value options of the parameter
	Enum []map[string]interface{} `json:"enum"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ParameterSpec Cluster parameter specification

func NewParameterSpec

func NewParameterSpec(name string, description string, typeVar string, defaultVar map[string]interface{}, needRestart bool, immutable bool, maximum float64, minimum float64, enum []map[string]interface{}) *ParameterSpec

NewParameterSpec instantiates a new ParameterSpec 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 NewParameterSpecWithDefaults

func NewParameterSpecWithDefaults() *ParameterSpec

NewParameterSpecWithDefaults instantiates a new ParameterSpec 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 (*ParameterSpec) GetDefault

func (o *ParameterSpec) GetDefault() map[string]interface{}

GetDefault returns the Default field value.

func (*ParameterSpec) GetDefaultOk

func (o *ParameterSpec) GetDefaultOk() (*map[string]interface{}, bool)

GetDefaultOk returns a tuple with the Default field value and a boolean to check if the value has been set.

func (*ParameterSpec) GetDescription

func (o *ParameterSpec) GetDescription() string

GetDescription returns the Description field value.

func (*ParameterSpec) GetDescriptionOk

func (o *ParameterSpec) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.

func (*ParameterSpec) GetEnum

func (o *ParameterSpec) GetEnum() []map[string]interface{}

GetEnum returns the Enum field value.

func (*ParameterSpec) GetEnumOk

func (o *ParameterSpec) GetEnumOk() (*[]map[string]interface{}, bool)

GetEnumOk returns a tuple with the Enum field value and a boolean to check if the value has been set.

func (*ParameterSpec) GetImmutable

func (o *ParameterSpec) GetImmutable() bool

GetImmutable returns the Immutable field value.

func (*ParameterSpec) GetImmutableOk

func (o *ParameterSpec) GetImmutableOk() (*bool, bool)

GetImmutableOk returns a tuple with the Immutable field value and a boolean to check if the value has been set.

func (*ParameterSpec) GetMaximum

func (o *ParameterSpec) GetMaximum() float64

GetMaximum returns the Maximum field value.

func (*ParameterSpec) GetMaximumOk

func (o *ParameterSpec) GetMaximumOk() (*float64, bool)

GetMaximumOk returns a tuple with the Maximum field value and a boolean to check if the value has been set.

func (*ParameterSpec) GetMinimum

func (o *ParameterSpec) GetMinimum() float64

GetMinimum returns the Minimum field value.

func (*ParameterSpec) GetMinimumOk

func (o *ParameterSpec) GetMinimumOk() (*float64, bool)

GetMinimumOk returns a tuple with the Minimum field value and a boolean to check if the value has been set.

func (*ParameterSpec) GetName

func (o *ParameterSpec) GetName() string

GetName returns the Name field value.

func (*ParameterSpec) GetNameOk

func (o *ParameterSpec) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*ParameterSpec) GetNeedRestart

func (o *ParameterSpec) GetNeedRestart() bool

GetNeedRestart returns the NeedRestart field value.

func (*ParameterSpec) GetNeedRestartOk

func (o *ParameterSpec) GetNeedRestartOk() (*bool, bool)

GetNeedRestartOk returns a tuple with the NeedRestart field value and a boolean to check if the value has been set.

func (*ParameterSpec) GetType

func (o *ParameterSpec) GetType() string

GetType returns the Type field value.

func (*ParameterSpec) GetTypeOk

func (o *ParameterSpec) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (ParameterSpec) MarshalJSON

func (o ParameterSpec) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ParameterSpec) SetDefault

func (o *ParameterSpec) SetDefault(v map[string]interface{})

SetDefault sets field value.

func (*ParameterSpec) SetDescription

func (o *ParameterSpec) SetDescription(v string)

SetDescription sets field value.

func (*ParameterSpec) SetEnum

func (o *ParameterSpec) SetEnum(v []map[string]interface{})

SetEnum sets field value.

func (*ParameterSpec) SetImmutable

func (o *ParameterSpec) SetImmutable(v bool)

SetImmutable sets field value.

func (*ParameterSpec) SetMaximum

func (o *ParameterSpec) SetMaximum(v float64)

SetMaximum sets field value.

func (*ParameterSpec) SetMinimum

func (o *ParameterSpec) SetMinimum(v float64)

SetMinimum sets field value.

func (*ParameterSpec) SetName

func (o *ParameterSpec) SetName(v string)

SetName sets field value.

func (*ParameterSpec) SetNeedRestart

func (o *ParameterSpec) SetNeedRestart(v bool)

SetNeedRestart sets field value.

func (*ParameterSpec) SetType

func (o *ParameterSpec) SetType(v string)

SetType sets field value.

func (*ParameterSpec) UnmarshalJSON

func (o *ParameterSpec) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ParameterSpecList

type ParameterSpecList struct {
	Items []ParameterSpecListItem `json:"items,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ParameterSpecList A list of cluster parameterSpecs

func NewParameterSpecList

func NewParameterSpecList() *ParameterSpecList

NewParameterSpecList instantiates a new ParameterSpecList 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 NewParameterSpecListWithDefaults

func NewParameterSpecListWithDefaults() *ParameterSpecList

NewParameterSpecListWithDefaults instantiates a new ParameterSpecList 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 (*ParameterSpecList) GetItems

func (o *ParameterSpecList) GetItems() []ParameterSpecListItem

GetItems returns the Items field value if set, zero value otherwise.

func (*ParameterSpecList) GetItemsOk

func (o *ParameterSpecList) GetItemsOk() (*[]ParameterSpecListItem, bool)

GetItemsOk returns a tuple with the Items field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ParameterSpecList) HasItems

func (o *ParameterSpecList) HasItems() bool

HasItems returns a boolean if a field has been set.

func (ParameterSpecList) MarshalJSON

func (o ParameterSpecList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ParameterSpecList) SetItems

func (o *ParameterSpecList) SetItems(v []ParameterSpecListItem)

SetItems gets a reference to the given []ParameterSpecListItem and assigns it to the Items field.

func (*ParameterSpecList) UnmarshalJSON

func (o *ParameterSpecList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ParameterSpecListItem

type ParameterSpecListItem struct {
	Specs []ParameterSpec `json:"specs,omitempty"`
	// The name of the configuration file
	FileName *string `json:"fileName,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ParameterSpecListItem With the list of parameterSpecs and the configuration file name

func NewParameterSpecListItem

func NewParameterSpecListItem() *ParameterSpecListItem

NewParameterSpecListItem instantiates a new ParameterSpecListItem 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 NewParameterSpecListItemWithDefaults

func NewParameterSpecListItemWithDefaults() *ParameterSpecListItem

NewParameterSpecListItemWithDefaults instantiates a new ParameterSpecListItem 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 (*ParameterSpecListItem) GetFileName

func (o *ParameterSpecListItem) GetFileName() string

GetFileName returns the FileName field value if set, zero value otherwise.

func (*ParameterSpecListItem) GetFileNameOk

func (o *ParameterSpecListItem) GetFileNameOk() (*string, bool)

GetFileNameOk returns a tuple with the FileName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ParameterSpecListItem) GetSpecs

func (o *ParameterSpecListItem) GetSpecs() []ParameterSpec

GetSpecs returns the Specs field value if set, zero value otherwise.

func (*ParameterSpecListItem) GetSpecsOk

func (o *ParameterSpecListItem) GetSpecsOk() (*[]ParameterSpec, bool)

GetSpecsOk returns a tuple with the Specs field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ParameterSpecListItem) HasFileName

func (o *ParameterSpecListItem) HasFileName() bool

HasFileName returns a boolean if a field has been set.

func (*ParameterSpecListItem) HasSpecs

func (o *ParameterSpecListItem) HasSpecs() bool

HasSpecs returns a boolean if a field has been set.

func (ParameterSpecListItem) MarshalJSON

func (o ParameterSpecListItem) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ParameterSpecListItem) SetFileName

func (o *ParameterSpecListItem) SetFileName(v string)

SetFileName gets a reference to the given string and assigns it to the FileName field.

func (*ParameterSpecListItem) SetSpecs

func (o *ParameterSpecListItem) SetSpecs(v []ParameterSpec)

SetSpecs gets a reference to the given []ParameterSpec and assigns it to the Specs field.

func (*ParameterSpecListItem) UnmarshalJSON

func (o *ParameterSpecListItem) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type PatchAlertInhibitOptionalParameters

type PatchAlertInhibitOptionalParameters struct {
	Body *AlertInhibit
}

PatchAlertInhibitOptionalParameters holds optional parameters for PatchAlertInhibit.

func NewPatchAlertInhibitOptionalParameters

func NewPatchAlertInhibitOptionalParameters() *PatchAlertInhibitOptionalParameters

NewPatchAlertInhibitOptionalParameters creates an empty struct for parameters.

func (*PatchAlertInhibitOptionalParameters) WithBody

WithBody sets the corresponding parameter name and returns the struct.

type PatchBackupPolicyOptionalParameters

type PatchBackupPolicyOptionalParameters struct {
	UseVolumeSnapshot *bool
}

PatchBackupPolicyOptionalParameters holds optional parameters for PatchBackupPolicy.

func NewPatchBackupPolicyOptionalParameters

func NewPatchBackupPolicyOptionalParameters() *PatchBackupPolicyOptionalParameters

NewPatchBackupPolicyOptionalParameters creates an empty struct for parameters.

func (*PatchBackupPolicyOptionalParameters) WithUseVolumeSnapshot

func (r *PatchBackupPolicyOptionalParameters) WithUseVolumeSnapshot(useVolumeSnapshot bool) *PatchBackupPolicyOptionalParameters

WithUseVolumeSnapshot sets the corresponding parameter name and returns the struct.

type PatchClassOptionalParameters

type PatchClassOptionalParameters struct {
	Body *Class
}

PatchClassOptionalParameters holds optional parameters for PatchClass.

func NewPatchClassOptionalParameters

func NewPatchClassOptionalParameters() *PatchClassOptionalParameters

NewPatchClassOptionalParameters creates an empty struct for parameters.

func (*PatchClassOptionalParameters) WithBody

WithBody sets the corresponding parameter name and returns the struct.

type Permission

type Permission struct {
	// The name of the permission
	Name *string `json:"name,omitempty"`
	// The group of the permission
	Group *string `json:"group,omitempty"`
	// The description of the permission
	Description *string `json:"description,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

Permission Permission information

func NewPermission

func NewPermission() *Permission

NewPermission instantiates a new Permission 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 NewPermissionWithDefaults

func NewPermissionWithDefaults() *Permission

NewPermissionWithDefaults instantiates a new Permission 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 (*Permission) GetDescription

func (o *Permission) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*Permission) GetDescriptionOk

func (o *Permission) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Permission) GetGroup

func (o *Permission) GetGroup() string

GetGroup returns the Group field value if set, zero value otherwise.

func (*Permission) GetGroupOk

func (o *Permission) GetGroupOk() (*string, bool)

GetGroupOk returns a tuple with the Group field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Permission) GetName

func (o *Permission) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*Permission) GetNameOk

func (o *Permission) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Permission) HasDescription

func (o *Permission) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*Permission) HasGroup

func (o *Permission) HasGroup() bool

HasGroup returns a boolean if a field has been set.

func (*Permission) HasName

func (o *Permission) HasName() bool

HasName returns a boolean if a field has been set.

func (Permission) MarshalJSON

func (o Permission) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*Permission) SetDescription

func (o *Permission) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*Permission) SetGroup

func (o *Permission) SetGroup(v string)

SetGroup gets a reference to the given string and assigns it to the Group field.

func (*Permission) SetName

func (o *Permission) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*Permission) UnmarshalJSON

func (o *Permission) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type PermissionList

type PermissionList struct {
	// Items is the list of Permission objects in the list
	Items []Permission `json:"items"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

PermissionList PermissionList is a list of Permissions

func NewPermissionList

func NewPermissionList(items []Permission) *PermissionList

NewPermissionList instantiates a new PermissionList 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 NewPermissionListWithDefaults

func NewPermissionListWithDefaults() *PermissionList

NewPermissionListWithDefaults instantiates a new PermissionList 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 (*PermissionList) GetItems

func (o *PermissionList) GetItems() []Permission

GetItems returns the Items field value.

func (*PermissionList) GetItemsOk

func (o *PermissionList) GetItemsOk() (*[]Permission, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (PermissionList) MarshalJSON

func (o PermissionList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*PermissionList) SetItems

func (o *PermissionList) SetItems(v []Permission)

SetItems sets field value.

func (*PermissionList) UnmarshalJSON

func (o *PermissionList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type Pgbench

type Pgbench struct {
	// Step of pgbench
	Step *PgbenchStep `json:"step,omitempty"`
	// the cpu limit for test container
	LimitCpu *string `json:"limitCpu,omitempty"`
	// the memory limit for test container
	LimitMemory *string `json:"limitMemory,omitempty"`
	// the cpu request for test container
	RequestCpu *string `json:"requestCpu,omitempty"`
	// the memory request for test container
	RequestMemory *string `json:"requestMemory,omitempty"`
	// the name of benchmark
	Name *string `json:"name,omitempty"`
	// the cluster name
	Cluster string `json:"cluster"`
	// the database name
	Database string `json:"database"`
	// Username for database
	Username string `json:"username"`
	// Password for database
	Password string `json:"password"`
	// Address for database
	Address string `json:"address"`
	// Scale of pgbench
	Scale *int32 `json:"scale,omitempty"`
	// Number of clients to run
	Clients *int32 `json:"clients,omitempty"`
	// Number of threads to use
	Threads *int32 `json:"threads,omitempty"`
	// the seconds of test duration
	Duration *int32 `json:"duration,omitempty"`
	// Run select only test
	SelectOnly *bool `json:"selectOnly,omitempty"`
	// Extra arguments for pgbench
	ExtraArgs *string `json:"extraArgs,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

Pgbench pgbench is the pgbench benchmark object

func NewPgbench

func NewPgbench(cluster string, database string, username string, password string, address string) *Pgbench

NewPgbench instantiates a new Pgbench 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 NewPgbenchWithDefaults

func NewPgbenchWithDefaults() *Pgbench

NewPgbenchWithDefaults instantiates a new Pgbench 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 (*Pgbench) GetAddress

func (o *Pgbench) GetAddress() string

GetAddress returns the Address field value.

func (*Pgbench) GetAddressOk

func (o *Pgbench) GetAddressOk() (*string, bool)

GetAddressOk returns a tuple with the Address field value and a boolean to check if the value has been set.

func (*Pgbench) GetClients

func (o *Pgbench) GetClients() int32

GetClients returns the Clients field value if set, zero value otherwise.

func (*Pgbench) GetClientsOk

func (o *Pgbench) GetClientsOk() (*int32, bool)

GetClientsOk returns a tuple with the Clients field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Pgbench) GetCluster

func (o *Pgbench) GetCluster() string

GetCluster returns the Cluster field value.

func (*Pgbench) GetClusterOk

func (o *Pgbench) GetClusterOk() (*string, bool)

GetClusterOk returns a tuple with the Cluster field value and a boolean to check if the value has been set.

func (*Pgbench) GetDatabase

func (o *Pgbench) GetDatabase() string

GetDatabase returns the Database field value.

func (*Pgbench) GetDatabaseOk

func (o *Pgbench) GetDatabaseOk() (*string, bool)

GetDatabaseOk returns a tuple with the Database field value and a boolean to check if the value has been set.

func (*Pgbench) GetDuration

func (o *Pgbench) GetDuration() int32

GetDuration returns the Duration field value if set, zero value otherwise.

func (*Pgbench) GetDurationOk

func (o *Pgbench) GetDurationOk() (*int32, bool)

GetDurationOk returns a tuple with the Duration field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Pgbench) GetExtraArgs

func (o *Pgbench) GetExtraArgs() string

GetExtraArgs returns the ExtraArgs field value if set, zero value otherwise.

func (*Pgbench) GetExtraArgsOk

func (o *Pgbench) GetExtraArgsOk() (*string, bool)

GetExtraArgsOk returns a tuple with the ExtraArgs field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Pgbench) GetLimitCpu

func (o *Pgbench) GetLimitCpu() string

GetLimitCpu returns the LimitCpu field value if set, zero value otherwise.

func (*Pgbench) GetLimitCpuOk

func (o *Pgbench) GetLimitCpuOk() (*string, bool)

GetLimitCpuOk returns a tuple with the LimitCpu field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Pgbench) GetLimitMemory

func (o *Pgbench) GetLimitMemory() string

GetLimitMemory returns the LimitMemory field value if set, zero value otherwise.

func (*Pgbench) GetLimitMemoryOk

func (o *Pgbench) GetLimitMemoryOk() (*string, bool)

GetLimitMemoryOk returns a tuple with the LimitMemory field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Pgbench) GetName

func (o *Pgbench) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*Pgbench) GetNameOk

func (o *Pgbench) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Pgbench) GetPassword

func (o *Pgbench) GetPassword() string

GetPassword returns the Password field value.

func (*Pgbench) GetPasswordOk

func (o *Pgbench) GetPasswordOk() (*string, bool)

GetPasswordOk returns a tuple with the Password field value and a boolean to check if the value has been set.

func (*Pgbench) GetRequestCpu

func (o *Pgbench) GetRequestCpu() string

GetRequestCpu returns the RequestCpu field value if set, zero value otherwise.

func (*Pgbench) GetRequestCpuOk

func (o *Pgbench) GetRequestCpuOk() (*string, bool)

GetRequestCpuOk returns a tuple with the RequestCpu field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Pgbench) GetRequestMemory

func (o *Pgbench) GetRequestMemory() string

GetRequestMemory returns the RequestMemory field value if set, zero value otherwise.

func (*Pgbench) GetRequestMemoryOk

func (o *Pgbench) GetRequestMemoryOk() (*string, bool)

GetRequestMemoryOk returns a tuple with the RequestMemory field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Pgbench) GetScale

func (o *Pgbench) GetScale() int32

GetScale returns the Scale field value if set, zero value otherwise.

func (*Pgbench) GetScaleOk

func (o *Pgbench) GetScaleOk() (*int32, bool)

GetScaleOk returns a tuple with the Scale field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Pgbench) GetSelectOnly

func (o *Pgbench) GetSelectOnly() bool

GetSelectOnly returns the SelectOnly field value if set, zero value otherwise.

func (*Pgbench) GetSelectOnlyOk

func (o *Pgbench) GetSelectOnlyOk() (*bool, bool)

GetSelectOnlyOk returns a tuple with the SelectOnly field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Pgbench) GetStep

func (o *Pgbench) GetStep() PgbenchStep

GetStep returns the Step field value if set, zero value otherwise.

func (*Pgbench) GetStepOk

func (o *Pgbench) GetStepOk() (*PgbenchStep, bool)

GetStepOk returns a tuple with the Step field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Pgbench) GetThreads

func (o *Pgbench) GetThreads() int32

GetThreads returns the Threads field value if set, zero value otherwise.

func (*Pgbench) GetThreadsOk

func (o *Pgbench) GetThreadsOk() (*int32, bool)

GetThreadsOk returns a tuple with the Threads field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Pgbench) GetUsername

func (o *Pgbench) GetUsername() string

GetUsername returns the Username field value.

func (*Pgbench) GetUsernameOk

func (o *Pgbench) GetUsernameOk() (*string, bool)

GetUsernameOk returns a tuple with the Username field value and a boolean to check if the value has been set.

func (*Pgbench) HasClients

func (o *Pgbench) HasClients() bool

HasClients returns a boolean if a field has been set.

func (*Pgbench) HasDuration

func (o *Pgbench) HasDuration() bool

HasDuration returns a boolean if a field has been set.

func (*Pgbench) HasExtraArgs

func (o *Pgbench) HasExtraArgs() bool

HasExtraArgs returns a boolean if a field has been set.

func (*Pgbench) HasLimitCpu

func (o *Pgbench) HasLimitCpu() bool

HasLimitCpu returns a boolean if a field has been set.

func (*Pgbench) HasLimitMemory

func (o *Pgbench) HasLimitMemory() bool

HasLimitMemory returns a boolean if a field has been set.

func (*Pgbench) HasName

func (o *Pgbench) HasName() bool

HasName returns a boolean if a field has been set.

func (*Pgbench) HasRequestCpu

func (o *Pgbench) HasRequestCpu() bool

HasRequestCpu returns a boolean if a field has been set.

func (*Pgbench) HasRequestMemory

func (o *Pgbench) HasRequestMemory() bool

HasRequestMemory returns a boolean if a field has been set.

func (*Pgbench) HasScale

func (o *Pgbench) HasScale() bool

HasScale returns a boolean if a field has been set.

func (*Pgbench) HasSelectOnly

func (o *Pgbench) HasSelectOnly() bool

HasSelectOnly returns a boolean if a field has been set.

func (*Pgbench) HasStep

func (o *Pgbench) HasStep() bool

HasStep returns a boolean if a field has been set.

func (*Pgbench) HasThreads

func (o *Pgbench) HasThreads() bool

HasThreads returns a boolean if a field has been set.

func (Pgbench) MarshalJSON

func (o Pgbench) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*Pgbench) SetAddress

func (o *Pgbench) SetAddress(v string)

SetAddress sets field value.

func (*Pgbench) SetClients

func (o *Pgbench) SetClients(v int32)

SetClients gets a reference to the given int32 and assigns it to the Clients field.

func (*Pgbench) SetCluster

func (o *Pgbench) SetCluster(v string)

SetCluster sets field value.

func (*Pgbench) SetDatabase

func (o *Pgbench) SetDatabase(v string)

SetDatabase sets field value.

func (*Pgbench) SetDuration

func (o *Pgbench) SetDuration(v int32)

SetDuration gets a reference to the given int32 and assigns it to the Duration field.

func (*Pgbench) SetExtraArgs

func (o *Pgbench) SetExtraArgs(v string)

SetExtraArgs gets a reference to the given string and assigns it to the ExtraArgs field.

func (*Pgbench) SetLimitCpu

func (o *Pgbench) SetLimitCpu(v string)

SetLimitCpu gets a reference to the given string and assigns it to the LimitCpu field.

func (*Pgbench) SetLimitMemory

func (o *Pgbench) SetLimitMemory(v string)

SetLimitMemory gets a reference to the given string and assigns it to the LimitMemory field.

func (*Pgbench) SetName

func (o *Pgbench) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*Pgbench) SetPassword

func (o *Pgbench) SetPassword(v string)

SetPassword sets field value.

func (*Pgbench) SetRequestCpu

func (o *Pgbench) SetRequestCpu(v string)

SetRequestCpu gets a reference to the given string and assigns it to the RequestCpu field.

func (*Pgbench) SetRequestMemory

func (o *Pgbench) SetRequestMemory(v string)

SetRequestMemory gets a reference to the given string and assigns it to the RequestMemory field.

func (*Pgbench) SetScale

func (o *Pgbench) SetScale(v int32)

SetScale gets a reference to the given int32 and assigns it to the Scale field.

func (*Pgbench) SetSelectOnly

func (o *Pgbench) SetSelectOnly(v bool)

SetSelectOnly gets a reference to the given bool and assigns it to the SelectOnly field.

func (*Pgbench) SetStep

func (o *Pgbench) SetStep(v PgbenchStep)

SetStep gets a reference to the given PgbenchStep and assigns it to the Step field.

func (*Pgbench) SetThreads

func (o *Pgbench) SetThreads(v int32)

SetThreads gets a reference to the given int32 and assigns it to the Threads field.

func (*Pgbench) SetUsername

func (o *Pgbench) SetUsername(v string)

SetUsername sets field value.

func (*Pgbench) UnmarshalJSON

func (o *Pgbench) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type PgbenchStep

type PgbenchStep string

PgbenchStep Step of pgbench

const (
	PgbenchStepPrepare PgbenchStep = "prepare"
	PgbenchStepRun     PgbenchStep = "run"
	PgbenchStepCleanup PgbenchStep = "cleanup"
	PgbenchStepAll     PgbenchStep = "all"
)

List of PgbenchStep.

func NewPgbenchStepFromValue

func NewPgbenchStepFromValue(v string) (*PgbenchStep, error)

NewPgbenchStepFromValue returns a pointer to a valid PgbenchStep for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*PgbenchStep) GetAllowedValues

func (v *PgbenchStep) GetAllowedValues() []PgbenchStep

GetAllowedValues returns the list of possible values.

func (PgbenchStep) IsValid

func (v PgbenchStep) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (PgbenchStep) Ptr

func (v PgbenchStep) Ptr() *PgbenchStep

Ptr returns reference to PgbenchStep value.

func (*PgbenchStep) UnmarshalJSON

func (v *PgbenchStep) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type PrivilegeListItem

type PrivilegeListItem struct {
	// The name of the database.
	DatabaseName *string `json:"databaseName,omitempty"`
	// The type of privilege.
	Privileges string `json:"privileges"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

PrivilegeListItem Database and its assigned privileges.

func NewPrivilegeListItem

func NewPrivilegeListItem(privileges string) *PrivilegeListItem

NewPrivilegeListItem instantiates a new PrivilegeListItem 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 NewPrivilegeListItemWithDefaults

func NewPrivilegeListItemWithDefaults() *PrivilegeListItem

NewPrivilegeListItemWithDefaults instantiates a new PrivilegeListItem 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 (*PrivilegeListItem) GetDatabaseName

func (o *PrivilegeListItem) GetDatabaseName() string

GetDatabaseName returns the DatabaseName field value if set, zero value otherwise.

func (*PrivilegeListItem) GetDatabaseNameOk

func (o *PrivilegeListItem) GetDatabaseNameOk() (*string, bool)

GetDatabaseNameOk returns a tuple with the DatabaseName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PrivilegeListItem) GetPrivileges

func (o *PrivilegeListItem) GetPrivileges() string

GetPrivileges returns the Privileges field value.

func (*PrivilegeListItem) GetPrivilegesOk

func (o *PrivilegeListItem) GetPrivilegesOk() (*string, bool)

GetPrivilegesOk returns a tuple with the Privileges field value and a boolean to check if the value has been set.

func (*PrivilegeListItem) HasDatabaseName

func (o *PrivilegeListItem) HasDatabaseName() bool

HasDatabaseName returns a boolean if a field has been set.

func (PrivilegeListItem) MarshalJSON

func (o PrivilegeListItem) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*PrivilegeListItem) SetDatabaseName

func (o *PrivilegeListItem) SetDatabaseName(v string)

SetDatabaseName gets a reference to the given string and assigns it to the DatabaseName field.

func (*PrivilegeListItem) SetPrivileges

func (o *PrivilegeListItem) SetPrivileges(v string)

SetPrivileges sets field value.

func (*PrivilegeListItem) UnmarshalJSON

func (o *PrivilegeListItem) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type Provider

type Provider struct {
	// The name of the cloud provider.
	Name string `json:"name"`
	// The Chinese name of the cloud provider.
	NameCn string `json:"nameCN"`
	// The English name of the cloud provider.
	NameEn string `json:"nameEN"`
	Logo string `json:"logo"`
	// Whether the cloud provider is enabled.
	Enabled bool `json:"enabled"`
	// Whether the cloud provider supports ARN.
	SupportArn bool `json:"supportARN"`
	// The number of environments that the cloud provider has.
	EnvironmentCount int32 `json:"environmentCount"`
	// The number of regions that the cloud provider has.
	RegionCount int32 `json:"regionCount"`
	// The number of zones that the cloud provider has.
	ZoneCount int32 `json:"zoneCount"`
	// The time when the cloud provider was created.
	CreatedAt time.Time `json:"createdAt"`
	// The time when the cloud provider was last updated.
	UpdatedAt time.Time `json:"updatedAt"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

Provider The cloud provider that the environment is running on.

func NewProvider

func NewProvider(name string, nameCn string, nameEn string, logo string, enabled bool, supportArn bool, environmentCount int32, regionCount int32, zoneCount int32, createdAt time.Time, updatedAt time.Time) *Provider

NewProvider instantiates a new Provider 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 NewProviderWithDefaults

func NewProviderWithDefaults() *Provider

NewProviderWithDefaults instantiates a new Provider 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 (*Provider) GetCreatedAt

func (o *Provider) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field value.

func (*Provider) GetCreatedAtOk

func (o *Provider) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value and a boolean to check if the value has been set.

func (*Provider) GetEnabled

func (o *Provider) GetEnabled() bool

GetEnabled returns the Enabled field value.

func (*Provider) GetEnabledOk

func (o *Provider) GetEnabledOk() (*bool, bool)

GetEnabledOk returns a tuple with the Enabled field value and a boolean to check if the value has been set.

func (*Provider) GetEnvironmentCount

func (o *Provider) GetEnvironmentCount() int32

GetEnvironmentCount returns the EnvironmentCount field value.

func (*Provider) GetEnvironmentCountOk

func (o *Provider) GetEnvironmentCountOk() (*int32, bool)

GetEnvironmentCountOk returns a tuple with the EnvironmentCount field value and a boolean to check if the value has been set.

func (o *Provider) GetLogo() string

GetLogo returns the Logo field value.

func (*Provider) GetLogoOk

func (o *Provider) GetLogoOk() (*string, bool)

GetLogoOk returns a tuple with the Logo field value and a boolean to check if the value has been set.

func (*Provider) GetName

func (o *Provider) GetName() string

GetName returns the Name field value.

func (*Provider) GetNameCn

func (o *Provider) GetNameCn() string

GetNameCn returns the NameCn field value.

func (*Provider) GetNameCnOk

func (o *Provider) GetNameCnOk() (*string, bool)

GetNameCnOk returns a tuple with the NameCn field value and a boolean to check if the value has been set.

func (*Provider) GetNameEn

func (o *Provider) GetNameEn() string

GetNameEn returns the NameEn field value.

func (*Provider) GetNameEnOk

func (o *Provider) GetNameEnOk() (*string, bool)

GetNameEnOk returns a tuple with the NameEn field value and a boolean to check if the value has been set.

func (*Provider) GetNameOk

func (o *Provider) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*Provider) GetRegionCount

func (o *Provider) GetRegionCount() int32

GetRegionCount returns the RegionCount field value.

func (*Provider) GetRegionCountOk

func (o *Provider) GetRegionCountOk() (*int32, bool)

GetRegionCountOk returns a tuple with the RegionCount field value and a boolean to check if the value has been set.

func (*Provider) GetSupportArn

func (o *Provider) GetSupportArn() bool

GetSupportArn returns the SupportArn field value.

func (*Provider) GetSupportArnOk

func (o *Provider) GetSupportArnOk() (*bool, bool)

GetSupportArnOk returns a tuple with the SupportArn field value and a boolean to check if the value has been set.

func (*Provider) GetUpdatedAt

func (o *Provider) GetUpdatedAt() time.Time

GetUpdatedAt returns the UpdatedAt field value.

func (*Provider) GetUpdatedAtOk

func (o *Provider) GetUpdatedAtOk() (*time.Time, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value and a boolean to check if the value has been set.

func (*Provider) GetZoneCount

func (o *Provider) GetZoneCount() int32

GetZoneCount returns the ZoneCount field value.

func (*Provider) GetZoneCountOk

func (o *Provider) GetZoneCountOk() (*int32, bool)

GetZoneCountOk returns a tuple with the ZoneCount field value and a boolean to check if the value has been set.

func (Provider) MarshalJSON

func (o Provider) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*Provider) SetCreatedAt

func (o *Provider) SetCreatedAt(v time.Time)

SetCreatedAt sets field value.

func (*Provider) SetEnabled

func (o *Provider) SetEnabled(v bool)

SetEnabled sets field value.

func (*Provider) SetEnvironmentCount

func (o *Provider) SetEnvironmentCount(v int32)

SetEnvironmentCount sets field value.

func (o *Provider) SetLogo(v string)

SetLogo sets field value.

func (*Provider) SetName

func (o *Provider) SetName(v string)

SetName sets field value.

func (*Provider) SetNameCn

func (o *Provider) SetNameCn(v string)

SetNameCn sets field value.

func (*Provider) SetNameEn

func (o *Provider) SetNameEn(v string)

SetNameEn sets field value.

func (*Provider) SetRegionCount

func (o *Provider) SetRegionCount(v int32)

SetRegionCount sets field value.

func (*Provider) SetSupportArn

func (o *Provider) SetSupportArn(v bool)

SetSupportArn sets field value.

func (*Provider) SetUpdatedAt

func (o *Provider) SetUpdatedAt(v time.Time)

SetUpdatedAt sets field value.

func (*Provider) SetZoneCount

func (o *Provider) SetZoneCount(v int32)

SetZoneCount sets field value.

func (*Provider) UnmarshalJSON

func (o *Provider) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ProviderApi

type ProviderApi common.Service

ProviderApi service type

func NewProviderApi

func NewProviderApi(client *common.APIClient) *ProviderApi

NewProviderApi Returns NewProviderApi.

func (*ProviderApi) GetCloudProvider

func (a *ProviderApi) GetCloudProvider(ctx _context.Context, providerName string) (Provider, *_nethttp.Response, error)

GetCloudProvider Get cloud provider. Get cloud provider

func (*ProviderApi) ListCloudProviders

func (a *ProviderApi) ListCloudProviders(ctx _context.Context) (ProviderList, *_nethttp.Response, error)

ListCloudProviders Get cloud provider list. Get cloud provider list

type ProviderList

type ProviderList struct {
	// The list of cloud providers.
	Items []Provider `json:"items,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ProviderList The list of cloud providers.

func NewProviderList

func NewProviderList() *ProviderList

NewProviderList instantiates a new ProviderList 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 NewProviderListWithDefaults

func NewProviderListWithDefaults() *ProviderList

NewProviderListWithDefaults instantiates a new ProviderList 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 (*ProviderList) GetItems

func (o *ProviderList) GetItems() []Provider

GetItems returns the Items field value if set, zero value otherwise.

func (*ProviderList) GetItemsOk

func (o *ProviderList) GetItemsOk() (*[]Provider, bool)

GetItemsOk returns a tuple with the Items field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ProviderList) HasItems

func (o *ProviderList) HasItems() bool

HasItems returns a boolean if a field has been set.

func (ProviderList) MarshalJSON

func (o ProviderList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ProviderList) SetItems

func (o *ProviderList) SetItems(v []Provider)

SetItems gets a reference to the given []Provider and assigns it to the Items field.

func (*ProviderList) UnmarshalJSON

func (o *ProviderList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type QueryAuditLogsOptionalParameters

type QueryAuditLogsOptionalParameters struct {
	Limit         *string
	ComponentName *string
	SortType      *SortType
}

QueryAuditLogsOptionalParameters holds optional parameters for QueryAuditLogs.

func NewQueryAuditLogsOptionalParameters

func NewQueryAuditLogsOptionalParameters() *QueryAuditLogsOptionalParameters

NewQueryAuditLogsOptionalParameters creates an empty struct for parameters.

func (*QueryAuditLogsOptionalParameters) WithComponentName

func (r *QueryAuditLogsOptionalParameters) WithComponentName(componentName string) *QueryAuditLogsOptionalParameters

WithComponentName sets the corresponding parameter name and returns the struct.

func (*QueryAuditLogsOptionalParameters) WithLimit

WithLimit sets the corresponding parameter name and returns the struct.

func (*QueryAuditLogsOptionalParameters) WithSortType

WithSortType sets the corresponding parameter name and returns the struct.

type QueryClusterEventsOptionalParameters

type QueryClusterEventsOptionalParameters struct {
	ResourceId   *int32
	ResourceType *string
	EventName    *string
	OperatorId   *int32
	Start        *int64
	End          *int64
}

QueryClusterEventsOptionalParameters holds optional parameters for QueryClusterEvents.

func NewQueryClusterEventsOptionalParameters

func NewQueryClusterEventsOptionalParameters() *QueryClusterEventsOptionalParameters

NewQueryClusterEventsOptionalParameters creates an empty struct for parameters.

func (*QueryClusterEventsOptionalParameters) WithEnd

WithEnd sets the corresponding parameter name and returns the struct.

func (*QueryClusterEventsOptionalParameters) WithEventName

WithEventName sets the corresponding parameter name and returns the struct.

func (*QueryClusterEventsOptionalParameters) WithOperatorId

WithOperatorId sets the corresponding parameter name and returns the struct.

func (*QueryClusterEventsOptionalParameters) WithResourceId

WithResourceId sets the corresponding parameter name and returns the struct.

func (*QueryClusterEventsOptionalParameters) WithResourceType

WithResourceType sets the corresponding parameter name and returns the struct.

func (*QueryClusterEventsOptionalParameters) WithStart

WithStart sets the corresponding parameter name and returns the struct.

type QueryClusterMetricsOptionalParameters

type QueryClusterMetricsOptionalParameters struct {
	Start *int64
	End   *int64
}

QueryClusterMetricsOptionalParameters holds optional parameters for QueryClusterMetrics.

func NewQueryClusterMetricsOptionalParameters

func NewQueryClusterMetricsOptionalParameters() *QueryClusterMetricsOptionalParameters

NewQueryClusterMetricsOptionalParameters creates an empty struct for parameters.

func (*QueryClusterMetricsOptionalParameters) WithEnd

WithEnd sets the corresponding parameter name and returns the struct.

func (*QueryClusterMetricsOptionalParameters) WithStart

WithStart sets the corresponding parameter name and returns the struct.

type QueryErrorLogsOptionalParameters

type QueryErrorLogsOptionalParameters struct {
	ComponentName *string
	InstanceName  *string
	Limit         *string
	SortType      *SortType
}

QueryErrorLogsOptionalParameters holds optional parameters for QueryErrorLogs.

func NewQueryErrorLogsOptionalParameters

func NewQueryErrorLogsOptionalParameters() *QueryErrorLogsOptionalParameters

NewQueryErrorLogsOptionalParameters creates an empty struct for parameters.

func (*QueryErrorLogsOptionalParameters) WithComponentName

func (r *QueryErrorLogsOptionalParameters) WithComponentName(componentName string) *QueryErrorLogsOptionalParameters

WithComponentName sets the corresponding parameter name and returns the struct.

func (*QueryErrorLogsOptionalParameters) WithInstanceName

WithInstanceName sets the corresponding parameter name and returns the struct.

func (*QueryErrorLogsOptionalParameters) WithLimit

WithLimit sets the corresponding parameter name and returns the struct.

func (*QueryErrorLogsOptionalParameters) WithSortType

WithSortType sets the corresponding parameter name and returns the struct.

type QueryHistory

type QueryHistory struct {
	// executed sql statements
	Sql *string `json:"sql,omitempty"`
	// sql executed massage
	ErrMassage *string `json:"errMassage,omitempty"`
	// sql executed time
	CreatedAt *time.Time `json:"createdAt,omitempty"`
	// sql executed duration
	Duration *int32 `json:"duration,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewQueryHistory

func NewQueryHistory() *QueryHistory

NewQueryHistory instantiates a new QueryHistory 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 NewQueryHistoryWithDefaults

func NewQueryHistoryWithDefaults() *QueryHistory

NewQueryHistoryWithDefaults instantiates a new QueryHistory 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 (*QueryHistory) GetCreatedAt

func (o *QueryHistory) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.

func (*QueryHistory) GetCreatedAtOk

func (o *QueryHistory) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*QueryHistory) GetDuration

func (o *QueryHistory) GetDuration() int32

GetDuration returns the Duration field value if set, zero value otherwise.

func (*QueryHistory) GetDurationOk

func (o *QueryHistory) GetDurationOk() (*int32, bool)

GetDurationOk returns a tuple with the Duration field value if set, nil otherwise and a boolean to check if the value has been set.

func (*QueryHistory) GetErrMassage

func (o *QueryHistory) GetErrMassage() string

GetErrMassage returns the ErrMassage field value if set, zero value otherwise.

func (*QueryHistory) GetErrMassageOk

func (o *QueryHistory) GetErrMassageOk() (*string, bool)

GetErrMassageOk returns a tuple with the ErrMassage field value if set, nil otherwise and a boolean to check if the value has been set.

func (*QueryHistory) GetSql

func (o *QueryHistory) GetSql() string

GetSql returns the Sql field value if set, zero value otherwise.

func (*QueryHistory) GetSqlOk

func (o *QueryHistory) GetSqlOk() (*string, bool)

GetSqlOk returns a tuple with the Sql field value if set, nil otherwise and a boolean to check if the value has been set.

func (*QueryHistory) HasCreatedAt

func (o *QueryHistory) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*QueryHistory) HasDuration

func (o *QueryHistory) HasDuration() bool

HasDuration returns a boolean if a field has been set.

func (*QueryHistory) HasErrMassage

func (o *QueryHistory) HasErrMassage() bool

HasErrMassage returns a boolean if a field has been set.

func (*QueryHistory) HasSql

func (o *QueryHistory) HasSql() bool

HasSql returns a boolean if a field has been set.

func (QueryHistory) MarshalJSON

func (o QueryHistory) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*QueryHistory) SetCreatedAt

func (o *QueryHistory) SetCreatedAt(v time.Time)

SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.

func (*QueryHistory) SetDuration

func (o *QueryHistory) SetDuration(v int32)

SetDuration gets a reference to the given int32 and assigns it to the Duration field.

func (*QueryHistory) SetErrMassage

func (o *QueryHistory) SetErrMassage(v string)

SetErrMassage gets a reference to the given string and assigns it to the ErrMassage field.

func (*QueryHistory) SetSql

func (o *QueryHistory) SetSql(v string)

SetSql gets a reference to the given string and assigns it to the Sql field.

func (*QueryHistory) UnmarshalJSON

func (o *QueryHistory) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type QueryPodLogsOptionalParameters

type QueryPodLogsOptionalParameters struct {
	ComponentName *string
	InstanceName  *string
	Limit         *string
	SortType      *SortType
}

QueryPodLogsOptionalParameters holds optional parameters for QueryPodLogs.

func NewQueryPodLogsOptionalParameters

func NewQueryPodLogsOptionalParameters() *QueryPodLogsOptionalParameters

NewQueryPodLogsOptionalParameters creates an empty struct for parameters.

func (*QueryPodLogsOptionalParameters) WithComponentName

func (r *QueryPodLogsOptionalParameters) WithComponentName(componentName string) *QueryPodLogsOptionalParameters

WithComponentName sets the corresponding parameter name and returns the struct.

func (*QueryPodLogsOptionalParameters) WithInstanceName

func (r *QueryPodLogsOptionalParameters) WithInstanceName(instanceName string) *QueryPodLogsOptionalParameters

WithInstanceName sets the corresponding parameter name and returns the struct.

func (*QueryPodLogsOptionalParameters) WithLimit

WithLimit sets the corresponding parameter name and returns the struct.

func (*QueryPodLogsOptionalParameters) WithSortType

WithSortType sets the corresponding parameter name and returns the struct.

type QueryResponse

type QueryResponse struct {
	// result set of query
	Data []Result `json:"data,omitempty"`
	// error message set of query
	ErrMessage common.NullableList[string] `json:"errMessage,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewQueryResponse

func NewQueryResponse() *QueryResponse

NewQueryResponse instantiates a new QueryResponse 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 NewQueryResponseWithDefaults

func NewQueryResponseWithDefaults() *QueryResponse

NewQueryResponseWithDefaults instantiates a new QueryResponse 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 (*QueryResponse) GetData

func (o *QueryResponse) GetData() []Result

GetData returns the Data field value if set, zero value otherwise.

func (*QueryResponse) GetDataOk

func (o *QueryResponse) GetDataOk() (*[]Result, bool)

GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.

func (*QueryResponse) GetErrMessage

func (o *QueryResponse) GetErrMessage() []string

GetErrMessage returns the ErrMessage field value if set, zero value otherwise (both if not set or set to explicit null).

func (*QueryResponse) GetErrMessageOk

func (o *QueryResponse) GetErrMessageOk() (*[]string, bool)

GetErrMessageOk returns a tuple with the ErrMessage field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned.

func (*QueryResponse) HasData

func (o *QueryResponse) HasData() bool

HasData returns a boolean if a field has been set.

func (*QueryResponse) HasErrMessage

func (o *QueryResponse) HasErrMessage() bool

HasErrMessage returns a boolean if a field has been set.

func (QueryResponse) MarshalJSON

func (o QueryResponse) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*QueryResponse) SetData

func (o *QueryResponse) SetData(v []Result)

SetData gets a reference to the given []Result and assigns it to the Data field.

func (*QueryResponse) SetErrMessage

func (o *QueryResponse) SetErrMessage(v []string)

SetErrMessage gets a reference to the given common.NullableList[string] and assigns it to the ErrMessage field.

func (*QueryResponse) SetErrMessageNil

func (o *QueryResponse) SetErrMessageNil()

SetErrMessageNil sets the value for ErrMessage to be an explicit nil.

func (*QueryResponse) UnmarshalJSON

func (o *QueryResponse) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

func (*QueryResponse) UnsetErrMessage

func (o *QueryResponse) UnsetErrMessage()

UnsetErrMessage ensures that no value is present for ErrMessage, not even an explicit nil.

type QueryRunningLogsOptionalParameters

type QueryRunningLogsOptionalParameters struct {
	ComponentName *string
	InstanceName  *string
	Limit         *string
	SortType      *SortType
}

QueryRunningLogsOptionalParameters holds optional parameters for QueryRunningLogs.

func NewQueryRunningLogsOptionalParameters

func NewQueryRunningLogsOptionalParameters() *QueryRunningLogsOptionalParameters

NewQueryRunningLogsOptionalParameters creates an empty struct for parameters.

func (*QueryRunningLogsOptionalParameters) WithComponentName

WithComponentName sets the corresponding parameter name and returns the struct.

func (*QueryRunningLogsOptionalParameters) WithInstanceName

WithInstanceName sets the corresponding parameter name and returns the struct.

func (*QueryRunningLogsOptionalParameters) WithLimit

WithLimit sets the corresponding parameter name and returns the struct.

func (*QueryRunningLogsOptionalParameters) WithSortType

WithSortType sets the corresponding parameter name and returns the struct.

type QuerySlowLogsOptionalParameters

type QuerySlowLogsOptionalParameters struct {
	ComponentName *string
	Limit         *string
	SortType      *SortType
}

QuerySlowLogsOptionalParameters holds optional parameters for QuerySlowLogs.

func NewQuerySlowLogsOptionalParameters

func NewQuerySlowLogsOptionalParameters() *QuerySlowLogsOptionalParameters

NewQuerySlowLogsOptionalParameters creates an empty struct for parameters.

func (*QuerySlowLogsOptionalParameters) WithComponentName

func (r *QuerySlowLogsOptionalParameters) WithComponentName(componentName string) *QuerySlowLogsOptionalParameters

WithComponentName sets the corresponding parameter name and returns the struct.

func (*QuerySlowLogsOptionalParameters) WithLimit

WithLimit sets the corresponding parameter name and returns the struct.

func (*QuerySlowLogsOptionalParameters) WithSortType

WithSortType sets the corresponding parameter name and returns the struct.

type ReadParamTplOptionalParameters

type ReadParamTplOptionalParameters struct {
	Partition *ParamTplPartition
}

ReadParamTplOptionalParameters holds optional parameters for ReadParamTpl.

func NewReadParamTplOptionalParameters

func NewReadParamTplOptionalParameters() *ReadParamTplOptionalParameters

NewReadParamTplOptionalParameters creates an empty struct for parameters.

func (*ReadParamTplOptionalParameters) WithPartition

WithPartition sets the corresponding parameter name and returns the struct.

type ReconfigureCreate

type ReconfigureCreate struct {
	// component type
	Component *string `json:"component,omitempty"`
	// config file name
	ConfigFileName *string `json:"configFileName,omitempty"`
	// Specify parameters list to be updated
	Parameters map[string]string `json:"parameters"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ReconfigureCreate ReconfigureCreate is the payload to reconfigure a KubeBlocks cluster

func NewReconfigureCreate

func NewReconfigureCreate(parameters map[string]string) *ReconfigureCreate

NewReconfigureCreate instantiates a new ReconfigureCreate 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 NewReconfigureCreateWithDefaults

func NewReconfigureCreateWithDefaults() *ReconfigureCreate

NewReconfigureCreateWithDefaults instantiates a new ReconfigureCreate 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 (*ReconfigureCreate) GetComponent

func (o *ReconfigureCreate) GetComponent() string

GetComponent returns the Component field value if set, zero value otherwise.

func (*ReconfigureCreate) GetComponentOk

func (o *ReconfigureCreate) GetComponentOk() (*string, bool)

GetComponentOk returns a tuple with the Component field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReconfigureCreate) GetConfigFileName

func (o *ReconfigureCreate) GetConfigFileName() string

GetConfigFileName returns the ConfigFileName field value if set, zero value otherwise.

func (*ReconfigureCreate) GetConfigFileNameOk

func (o *ReconfigureCreate) GetConfigFileNameOk() (*string, bool)

GetConfigFileNameOk returns a tuple with the ConfigFileName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ReconfigureCreate) GetParameters

func (o *ReconfigureCreate) GetParameters() map[string]string

GetParameters returns the Parameters field value.

func (*ReconfigureCreate) GetParametersOk

func (o *ReconfigureCreate) GetParametersOk() (*map[string]string, bool)

GetParametersOk returns a tuple with the Parameters field value and a boolean to check if the value has been set.

func (*ReconfigureCreate) HasComponent

func (o *ReconfigureCreate) HasComponent() bool

HasComponent returns a boolean if a field has been set.

func (*ReconfigureCreate) HasConfigFileName

func (o *ReconfigureCreate) HasConfigFileName() bool

HasConfigFileName returns a boolean if a field has been set.

func (ReconfigureCreate) MarshalJSON

func (o ReconfigureCreate) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ReconfigureCreate) SetComponent

func (o *ReconfigureCreate) SetComponent(v string)

SetComponent gets a reference to the given string and assigns it to the Component field.

func (*ReconfigureCreate) SetConfigFileName

func (o *ReconfigureCreate) SetConfigFileName(v string)

SetConfigFileName gets a reference to the given string and assigns it to the ConfigFileName field.

func (*ReconfigureCreate) SetParameters

func (o *ReconfigureCreate) SetParameters(v map[string]string)

SetParameters sets field value.

func (*ReconfigureCreate) UnmarshalJSON

func (o *ReconfigureCreate) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type RecycleBinCluster

type RecycleBinCluster struct {
	// Cluster Recycle Bin ID
	Id *string `json:"id,omitempty"`
	// Cluster ID
	ClusterId *string `json:"clusterId,omitempty"`
	// Org Name
	OrgName *string `json:"orgName,omitempty"`
	// Cloud Provider
	CloudProvider *string `json:"cloudProvider,omitempty"`
	// ID of the environment
	EnvironmentId *string `json:"environmentId,omitempty"`
	// Environment Name
	EnvironmentName string `json:"environmentName"`
	// Environment Types
	EnvironmentType *string `json:"environmentType,omitempty"`
	// Cloud Region
	CloudRegion *string `json:"cloudRegion,omitempty"`
	// Environment Namespace
	Namespace *string `json:"namespace,omitempty"`
	// Name of cluster. Name must be unique within an Org
	Name string `json:"name"`
	// Hash of cluster. Name must be unique within an Org
	Hash *string `json:"hash,omitempty"`
	// Cluster Application Engine
	Engine string `json:"engine"`
	// Values
	Values map[string]interface{} `json:"values,omitempty"`
	// Cluster Application Version
	Version *string `json:"version,omitempty"`
	// The number of replicas, for standalone mode, the replicas is 1, for raftGroup mode, the default replicas is 3.
	Replicas *int32 `json:"replicas,omitempty"`
	// CPU cores.
	Cpu *float64 `json:"cpu,omitempty"`
	// Memory, the unit is Gi.
	Memory *float64 `json:"memory,omitempty"`
	// Storage size, the unit is Gi.
	Storage *float64 `json:"storage,omitempty"`
	// status represents the actual status of the cluster in k8s,  it is different from the state of the cluster in recycle bin,  which means whether the cluster has been deleted by a stop opsRequest.
	Status *string `json:"status,omitempty"`
	// state represents whether the cluster has been deleted by a stop opsRequest,  and therefore, whether it is in the recycle bin. It is differnt from the Status of the cluster undeleted.
	State *string `json:"state,omitempty"`
	// Cluster topology mode
	Mode *string `json:"mode,omitempty"`
	// Items is the list of ComponentSpec in the list
	Components []ComponentsItem `json:"components,omitempty"`
	// Use single availability zones
	SingleZone *bool `json:"singleZone,omitempty"`
	// Availability Zones
	AvailabilityZones []string `json:"availabilityZones,omitempty"`
	// clusterBackup is the payload for cluster backup
	Backup *ClusterBackup `json:"backup,omitempty"`
	// StoppedAt is a timestamp representing the server time when this object was stopped and moved to the recycle bin.
	StoppedAt *time.Time `json:"stoppedAt,omitempty"`
	// CreatedAt is a timestamp representing the server time when this object was created.
	CreatedAt *time.Time `json:"createdAt,omitempty"`
	// ExpiredAt is a timestamp representing the server time when this object will be expired, and deleted automatically.
	ExpiredAt *time.Time `json:"expiredAt,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

RecycleBinCluster KubeBlocks cluster(in recycle bin) information

func NewRecycleBinCluster

func NewRecycleBinCluster(environmentName string, name string, engine string) *RecycleBinCluster

NewRecycleBinCluster instantiates a new RecycleBinCluster 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 NewRecycleBinClusterWithDefaults

func NewRecycleBinClusterWithDefaults() *RecycleBinCluster

NewRecycleBinClusterWithDefaults instantiates a new RecycleBinCluster 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 (*RecycleBinCluster) GetAvailabilityZones

func (o *RecycleBinCluster) GetAvailabilityZones() []string

GetAvailabilityZones returns the AvailabilityZones field value if set, zero value otherwise.

func (*RecycleBinCluster) GetAvailabilityZonesOk

func (o *RecycleBinCluster) GetAvailabilityZonesOk() (*[]string, bool)

GetAvailabilityZonesOk returns a tuple with the AvailabilityZones field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RecycleBinCluster) GetBackup

func (o *RecycleBinCluster) GetBackup() ClusterBackup

GetBackup returns the Backup field value if set, zero value otherwise.

func (*RecycleBinCluster) GetBackupOk

func (o *RecycleBinCluster) GetBackupOk() (*ClusterBackup, bool)

GetBackupOk returns a tuple with the Backup field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RecycleBinCluster) GetCloudProvider

func (o *RecycleBinCluster) GetCloudProvider() string

GetCloudProvider returns the CloudProvider field value if set, zero value otherwise.

func (*RecycleBinCluster) GetCloudProviderOk

func (o *RecycleBinCluster) GetCloudProviderOk() (*string, bool)

GetCloudProviderOk returns a tuple with the CloudProvider field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RecycleBinCluster) GetCloudRegion

func (o *RecycleBinCluster) GetCloudRegion() string

GetCloudRegion returns the CloudRegion field value if set, zero value otherwise.

func (*RecycleBinCluster) GetCloudRegionOk

func (o *RecycleBinCluster) GetCloudRegionOk() (*string, bool)

GetCloudRegionOk returns a tuple with the CloudRegion field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RecycleBinCluster) GetClusterId

func (o *RecycleBinCluster) GetClusterId() string

GetClusterId returns the ClusterId field value if set, zero value otherwise.

func (*RecycleBinCluster) GetClusterIdOk

func (o *RecycleBinCluster) GetClusterIdOk() (*string, bool)

GetClusterIdOk returns a tuple with the ClusterId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RecycleBinCluster) GetComponents

func (o *RecycleBinCluster) GetComponents() []ComponentsItem

GetComponents returns the Components field value if set, zero value otherwise.

func (*RecycleBinCluster) GetComponentsOk

func (o *RecycleBinCluster) GetComponentsOk() (*[]ComponentsItem, bool)

GetComponentsOk returns a tuple with the Components field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RecycleBinCluster) GetCpu

func (o *RecycleBinCluster) GetCpu() float64

GetCpu returns the Cpu field value if set, zero value otherwise.

func (*RecycleBinCluster) GetCpuOk

func (o *RecycleBinCluster) GetCpuOk() (*float64, bool)

GetCpuOk returns a tuple with the Cpu field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RecycleBinCluster) GetCreatedAt

func (o *RecycleBinCluster) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.

func (*RecycleBinCluster) GetCreatedAtOk

func (o *RecycleBinCluster) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RecycleBinCluster) GetEngine

func (o *RecycleBinCluster) GetEngine() string

GetEngine returns the Engine field value.

func (*RecycleBinCluster) GetEngineOk

func (o *RecycleBinCluster) GetEngineOk() (*string, bool)

GetEngineOk returns a tuple with the Engine field value and a boolean to check if the value has been set.

func (*RecycleBinCluster) GetEnvironmentId

func (o *RecycleBinCluster) GetEnvironmentId() string

GetEnvironmentId returns the EnvironmentId field value if set, zero value otherwise.

func (*RecycleBinCluster) GetEnvironmentIdOk

func (o *RecycleBinCluster) GetEnvironmentIdOk() (*string, bool)

GetEnvironmentIdOk returns a tuple with the EnvironmentId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RecycleBinCluster) GetEnvironmentName

func (o *RecycleBinCluster) GetEnvironmentName() string

GetEnvironmentName returns the EnvironmentName field value.

func (*RecycleBinCluster) GetEnvironmentNameOk

func (o *RecycleBinCluster) GetEnvironmentNameOk() (*string, bool)

GetEnvironmentNameOk returns a tuple with the EnvironmentName field value and a boolean to check if the value has been set.

func (*RecycleBinCluster) GetEnvironmentType

func (o *RecycleBinCluster) GetEnvironmentType() string

GetEnvironmentType returns the EnvironmentType field value if set, zero value otherwise.

func (*RecycleBinCluster) GetEnvironmentTypeOk

func (o *RecycleBinCluster) GetEnvironmentTypeOk() (*string, bool)

GetEnvironmentTypeOk returns a tuple with the EnvironmentType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RecycleBinCluster) GetExpiredAt

func (o *RecycleBinCluster) GetExpiredAt() time.Time

GetExpiredAt returns the ExpiredAt field value if set, zero value otherwise.

func (*RecycleBinCluster) GetExpiredAtOk

func (o *RecycleBinCluster) GetExpiredAtOk() (*time.Time, bool)

GetExpiredAtOk returns a tuple with the ExpiredAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RecycleBinCluster) GetHash

func (o *RecycleBinCluster) GetHash() string

GetHash returns the Hash field value if set, zero value otherwise.

func (*RecycleBinCluster) GetHashOk

func (o *RecycleBinCluster) GetHashOk() (*string, bool)

GetHashOk returns a tuple with the Hash field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RecycleBinCluster) GetId

func (o *RecycleBinCluster) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*RecycleBinCluster) GetIdOk

func (o *RecycleBinCluster) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RecycleBinCluster) GetMemory

func (o *RecycleBinCluster) GetMemory() float64

GetMemory returns the Memory field value if set, zero value otherwise.

func (*RecycleBinCluster) GetMemoryOk

func (o *RecycleBinCluster) GetMemoryOk() (*float64, bool)

GetMemoryOk returns a tuple with the Memory field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RecycleBinCluster) GetMode

func (o *RecycleBinCluster) GetMode() string

GetMode returns the Mode field value if set, zero value otherwise.

func (*RecycleBinCluster) GetModeOk

func (o *RecycleBinCluster) GetModeOk() (*string, bool)

GetModeOk returns a tuple with the Mode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RecycleBinCluster) GetName

func (o *RecycleBinCluster) GetName() string

GetName returns the Name field value.

func (*RecycleBinCluster) GetNameOk

func (o *RecycleBinCluster) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*RecycleBinCluster) GetNamespace

func (o *RecycleBinCluster) GetNamespace() string

GetNamespace returns the Namespace field value if set, zero value otherwise.

func (*RecycleBinCluster) GetNamespaceOk

func (o *RecycleBinCluster) GetNamespaceOk() (*string, bool)

GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RecycleBinCluster) GetOrgName

func (o *RecycleBinCluster) GetOrgName() string

GetOrgName returns the OrgName field value if set, zero value otherwise.

func (*RecycleBinCluster) GetOrgNameOk

func (o *RecycleBinCluster) GetOrgNameOk() (*string, bool)

GetOrgNameOk returns a tuple with the OrgName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RecycleBinCluster) GetReplicas

func (o *RecycleBinCluster) GetReplicas() int32

GetReplicas returns the Replicas field value if set, zero value otherwise.

func (*RecycleBinCluster) GetReplicasOk

func (o *RecycleBinCluster) GetReplicasOk() (*int32, bool)

GetReplicasOk returns a tuple with the Replicas field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RecycleBinCluster) GetSingleZone

func (o *RecycleBinCluster) GetSingleZone() bool

GetSingleZone returns the SingleZone field value if set, zero value otherwise.

func (*RecycleBinCluster) GetSingleZoneOk

func (o *RecycleBinCluster) GetSingleZoneOk() (*bool, bool)

GetSingleZoneOk returns a tuple with the SingleZone field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RecycleBinCluster) GetState

func (o *RecycleBinCluster) GetState() string

GetState returns the State field value if set, zero value otherwise.

func (*RecycleBinCluster) GetStateOk

func (o *RecycleBinCluster) GetStateOk() (*string, bool)

GetStateOk returns a tuple with the State field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RecycleBinCluster) GetStatus

func (o *RecycleBinCluster) GetStatus() string

GetStatus returns the Status field value if set, zero value otherwise.

func (*RecycleBinCluster) GetStatusOk

func (o *RecycleBinCluster) GetStatusOk() (*string, bool)

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 (*RecycleBinCluster) GetStoppedAt

func (o *RecycleBinCluster) GetStoppedAt() time.Time

GetStoppedAt returns the StoppedAt field value if set, zero value otherwise.

func (*RecycleBinCluster) GetStoppedAtOk

func (o *RecycleBinCluster) GetStoppedAtOk() (*time.Time, bool)

GetStoppedAtOk returns a tuple with the StoppedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RecycleBinCluster) GetStorage

func (o *RecycleBinCluster) GetStorage() float64

GetStorage returns the Storage field value if set, zero value otherwise.

func (*RecycleBinCluster) GetStorageOk

func (o *RecycleBinCluster) GetStorageOk() (*float64, bool)

GetStorageOk returns a tuple with the Storage field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RecycleBinCluster) GetValues

func (o *RecycleBinCluster) GetValues() map[string]interface{}

GetValues returns the Values field value if set, zero value otherwise.

func (*RecycleBinCluster) GetValuesOk

func (o *RecycleBinCluster) GetValuesOk() (*map[string]interface{}, bool)

GetValuesOk returns a tuple with the Values field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RecycleBinCluster) GetVersion

func (o *RecycleBinCluster) GetVersion() string

GetVersion returns the Version field value if set, zero value otherwise.

func (*RecycleBinCluster) GetVersionOk

func (o *RecycleBinCluster) GetVersionOk() (*string, bool)

GetVersionOk returns a tuple with the Version field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RecycleBinCluster) HasAvailabilityZones

func (o *RecycleBinCluster) HasAvailabilityZones() bool

HasAvailabilityZones returns a boolean if a field has been set.

func (*RecycleBinCluster) HasBackup

func (o *RecycleBinCluster) HasBackup() bool

HasBackup returns a boolean if a field has been set.

func (*RecycleBinCluster) HasCloudProvider

func (o *RecycleBinCluster) HasCloudProvider() bool

HasCloudProvider returns a boolean if a field has been set.

func (*RecycleBinCluster) HasCloudRegion

func (o *RecycleBinCluster) HasCloudRegion() bool

HasCloudRegion returns a boolean if a field has been set.

func (*RecycleBinCluster) HasClusterId

func (o *RecycleBinCluster) HasClusterId() bool

HasClusterId returns a boolean if a field has been set.

func (*RecycleBinCluster) HasComponents

func (o *RecycleBinCluster) HasComponents() bool

HasComponents returns a boolean if a field has been set.

func (*RecycleBinCluster) HasCpu

func (o *RecycleBinCluster) HasCpu() bool

HasCpu returns a boolean if a field has been set.

func (*RecycleBinCluster) HasCreatedAt

func (o *RecycleBinCluster) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*RecycleBinCluster) HasEnvironmentId

func (o *RecycleBinCluster) HasEnvironmentId() bool

HasEnvironmentId returns a boolean if a field has been set.

func (*RecycleBinCluster) HasEnvironmentType

func (o *RecycleBinCluster) HasEnvironmentType() bool

HasEnvironmentType returns a boolean if a field has been set.

func (*RecycleBinCluster) HasExpiredAt

func (o *RecycleBinCluster) HasExpiredAt() bool

HasExpiredAt returns a boolean if a field has been set.

func (*RecycleBinCluster) HasHash

func (o *RecycleBinCluster) HasHash() bool

HasHash returns a boolean if a field has been set.

func (*RecycleBinCluster) HasId

func (o *RecycleBinCluster) HasId() bool

HasId returns a boolean if a field has been set.

func (*RecycleBinCluster) HasMemory

func (o *RecycleBinCluster) HasMemory() bool

HasMemory returns a boolean if a field has been set.

func (*RecycleBinCluster) HasMode

func (o *RecycleBinCluster) HasMode() bool

HasMode returns a boolean if a field has been set.

func (*RecycleBinCluster) HasNamespace

func (o *RecycleBinCluster) HasNamespace() bool

HasNamespace returns a boolean if a field has been set.

func (*RecycleBinCluster) HasOrgName

func (o *RecycleBinCluster) HasOrgName() bool

HasOrgName returns a boolean if a field has been set.

func (*RecycleBinCluster) HasReplicas

func (o *RecycleBinCluster) HasReplicas() bool

HasReplicas returns a boolean if a field has been set.

func (*RecycleBinCluster) HasSingleZone

func (o *RecycleBinCluster) HasSingleZone() bool

HasSingleZone returns a boolean if a field has been set.

func (*RecycleBinCluster) HasState

func (o *RecycleBinCluster) HasState() bool

HasState returns a boolean if a field has been set.

func (*RecycleBinCluster) HasStatus

func (o *RecycleBinCluster) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (*RecycleBinCluster) HasStoppedAt

func (o *RecycleBinCluster) HasStoppedAt() bool

HasStoppedAt returns a boolean if a field has been set.

func (*RecycleBinCluster) HasStorage

func (o *RecycleBinCluster) HasStorage() bool

HasStorage returns a boolean if a field has been set.

func (*RecycleBinCluster) HasValues

func (o *RecycleBinCluster) HasValues() bool

HasValues returns a boolean if a field has been set.

func (*RecycleBinCluster) HasVersion

func (o *RecycleBinCluster) HasVersion() bool

HasVersion returns a boolean if a field has been set.

func (RecycleBinCluster) MarshalJSON

func (o RecycleBinCluster) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*RecycleBinCluster) SetAvailabilityZones

func (o *RecycleBinCluster) SetAvailabilityZones(v []string)

SetAvailabilityZones gets a reference to the given []string and assigns it to the AvailabilityZones field.

func (*RecycleBinCluster) SetBackup

func (o *RecycleBinCluster) SetBackup(v ClusterBackup)

SetBackup gets a reference to the given ClusterBackup and assigns it to the Backup field.

func (*RecycleBinCluster) SetCloudProvider

func (o *RecycleBinCluster) SetCloudProvider(v string)

SetCloudProvider gets a reference to the given string and assigns it to the CloudProvider field.

func (*RecycleBinCluster) SetCloudRegion

func (o *RecycleBinCluster) SetCloudRegion(v string)

SetCloudRegion gets a reference to the given string and assigns it to the CloudRegion field.

func (*RecycleBinCluster) SetClusterId

func (o *RecycleBinCluster) SetClusterId(v string)

SetClusterId gets a reference to the given string and assigns it to the ClusterId field.

func (*RecycleBinCluster) SetComponents

func (o *RecycleBinCluster) SetComponents(v []ComponentsItem)

SetComponents gets a reference to the given []ComponentsItem and assigns it to the Components field.

func (*RecycleBinCluster) SetCpu

func (o *RecycleBinCluster) SetCpu(v float64)

SetCpu gets a reference to the given float64 and assigns it to the Cpu field.

func (*RecycleBinCluster) SetCreatedAt

func (o *RecycleBinCluster) SetCreatedAt(v time.Time)

SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.

func (*RecycleBinCluster) SetEngine

func (o *RecycleBinCluster) SetEngine(v string)

SetEngine sets field value.

func (*RecycleBinCluster) SetEnvironmentId

func (o *RecycleBinCluster) SetEnvironmentId(v string)

SetEnvironmentId gets a reference to the given string and assigns it to the EnvironmentId field.

func (*RecycleBinCluster) SetEnvironmentName

func (o *RecycleBinCluster) SetEnvironmentName(v string)

SetEnvironmentName sets field value.

func (*RecycleBinCluster) SetEnvironmentType

func (o *RecycleBinCluster) SetEnvironmentType(v string)

SetEnvironmentType gets a reference to the given string and assigns it to the EnvironmentType field.

func (*RecycleBinCluster) SetExpiredAt

func (o *RecycleBinCluster) SetExpiredAt(v time.Time)

SetExpiredAt gets a reference to the given time.Time and assigns it to the ExpiredAt field.

func (*RecycleBinCluster) SetHash

func (o *RecycleBinCluster) SetHash(v string)

SetHash gets a reference to the given string and assigns it to the Hash field.

func (*RecycleBinCluster) SetId

func (o *RecycleBinCluster) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*RecycleBinCluster) SetMemory

func (o *RecycleBinCluster) SetMemory(v float64)

SetMemory gets a reference to the given float64 and assigns it to the Memory field.

func (*RecycleBinCluster) SetMode

func (o *RecycleBinCluster) SetMode(v string)

SetMode gets a reference to the given string and assigns it to the Mode field.

func (*RecycleBinCluster) SetName

func (o *RecycleBinCluster) SetName(v string)

SetName sets field value.

func (*RecycleBinCluster) SetNamespace

func (o *RecycleBinCluster) SetNamespace(v string)

SetNamespace gets a reference to the given string and assigns it to the Namespace field.

func (*RecycleBinCluster) SetOrgName

func (o *RecycleBinCluster) SetOrgName(v string)

SetOrgName gets a reference to the given string and assigns it to the OrgName field.

func (*RecycleBinCluster) SetReplicas

func (o *RecycleBinCluster) SetReplicas(v int32)

SetReplicas gets a reference to the given int32 and assigns it to the Replicas field.

func (*RecycleBinCluster) SetSingleZone

func (o *RecycleBinCluster) SetSingleZone(v bool)

SetSingleZone gets a reference to the given bool and assigns it to the SingleZone field.

func (*RecycleBinCluster) SetState

func (o *RecycleBinCluster) SetState(v string)

SetState gets a reference to the given string and assigns it to the State field.

func (*RecycleBinCluster) SetStatus

func (o *RecycleBinCluster) SetStatus(v string)

SetStatus gets a reference to the given string and assigns it to the Status field.

func (*RecycleBinCluster) SetStoppedAt

func (o *RecycleBinCluster) SetStoppedAt(v time.Time)

SetStoppedAt gets a reference to the given time.Time and assigns it to the StoppedAt field.

func (*RecycleBinCluster) SetStorage

func (o *RecycleBinCluster) SetStorage(v float64)

SetStorage gets a reference to the given float64 and assigns it to the Storage field.

func (*RecycleBinCluster) SetValues

func (o *RecycleBinCluster) SetValues(v map[string]interface{})

SetValues gets a reference to the given map[string]interface{} and assigns it to the Values field.

func (*RecycleBinCluster) SetVersion

func (o *RecycleBinCluster) SetVersion(v string)

SetVersion gets a reference to the given string and assigns it to the Version field.

func (*RecycleBinCluster) UnmarshalJSON

func (o *RecycleBinCluster) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type RecycleBinClusterApi

type RecycleBinClusterApi common.Service

RecycleBinClusterApi service type

func NewRecycleBinClusterApi

func NewRecycleBinClusterApi(client *common.APIClient) *RecycleBinClusterApi

NewRecycleBinClusterApi Returns NewRecycleBinClusterApi.

func (*RecycleBinClusterApi) DeleteRecycleBinCluster

func (a *RecycleBinClusterApi) DeleteRecycleBinCluster(ctx _context.Context, orgName string, clusterName string, isDeleteBackup bool) (*_nethttp.Response, error)

DeleteRecycleBinCluster Delete cluster from the Recycle Bin of the Org.

func (*RecycleBinClusterApi) GetRecycleBinCluster

func (a *RecycleBinClusterApi) GetRecycleBinCluster(ctx _context.Context, orgName string, clusterName string) (RecycleBinCluster, *_nethttp.Response, error)

GetRecycleBinCluster Get cluster in the Recycle Bin of the Org.

func (*RecycleBinClusterApi) ListRecycleBinCluster

func (a *RecycleBinClusterApi) ListRecycleBinCluster(ctx _context.Context, orgName string) (RecycleBinClusterList, *_nethttp.Response, error)

ListRecycleBinCluster List clusters in the Recycle Bin of the Org.

func (*RecycleBinClusterApi) RestoreRecycleBinCluster

func (a *RecycleBinClusterApi) RestoreRecycleBinCluster(ctx _context.Context, orgName string, clusterName string) (RecycleBinCluster, *_nethttp.Response, error)

RestoreRecycleBinCluster Restore cluster from the Recycle Bin of the Org.

type RecycleBinClusterList

type RecycleBinClusterList struct {
	// Items is the KubeBlocks cluster objects in the recycleBinClusterList
	Items []RecycleBinClusterListItem `json:"items"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

RecycleBinClusterList recycleBinClusterList is a list of KubeBlocks clusters in the recycle bin

func NewRecycleBinClusterList

func NewRecycleBinClusterList(items []RecycleBinClusterListItem) *RecycleBinClusterList

NewRecycleBinClusterList instantiates a new RecycleBinClusterList 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 NewRecycleBinClusterListWithDefaults

func NewRecycleBinClusterListWithDefaults() *RecycleBinClusterList

NewRecycleBinClusterListWithDefaults instantiates a new RecycleBinClusterList 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 (*RecycleBinClusterList) GetItems

GetItems returns the Items field value.

func (*RecycleBinClusterList) GetItemsOk

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (RecycleBinClusterList) MarshalJSON

func (o RecycleBinClusterList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*RecycleBinClusterList) SetItems

SetItems sets field value.

func (*RecycleBinClusterList) UnmarshalJSON

func (o *RecycleBinClusterList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type RecycleBinClusterListItem

type RecycleBinClusterListItem struct {
	// Cloud Provider
	CloudProvider string `json:"cloudProvider"`
	// Cloud Provider
	CloudRegion *string `json:"cloudRegion,omitempty"`
	// Availability Zones
	AvailabilityZones []string `json:"availabilityZones,omitempty"`
	// Display name of cluster.
	DisplayName *string `json:"displayName,omitempty"`
	// Cluster Application Engine
	Engine string `json:"engine"`
	// Cluster topology mode
	Mode *string `json:"mode,omitempty"`
	// Environment Name
	EnvironmentName string `json:"environmentName"`
	// Cluster Recycle Bin ID
	Id string `json:"id"`
	// Cluster ID
	ClusterId *string `json:"clusterId,omitempty"`
	// Name of cluster. Name must be unique within an Org
	Name string `json:"name"`
	// Cluster Application Version
	Version string `json:"version"`
	// Cluster main component classCode
	ClassCode *string `json:"classCode,omitempty"`
	// Cluster main component storage
	Storage *string `json:"storage,omitempty"`
	// Name of the Org
	OrgName *string `json:"orgName,omitempty"`
	// state represents whether the cluster has been deleted by a stop opsRequest,  and therefore, whether it is in the recycle bin. It is differnt from the Status.Phase of the cluster in k8s.
	State string `json:"state"`
	// StoppedAt is a timestamp representing the server time when this object was stopped and moved to the recycle bin.
	StoppedAt time.Time `json:"stoppedAt"`
	// CreatedAt is a timestamp representing the server time when this object was created.
	CreatedAt *time.Time `json:"createdAt,omitempty"`
	// ExpiredAt is a timestamp representing the server time when this object will be expired, and deleted automatically.
	ExpiredAt *time.Time `json:"expiredAt,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

RecycleBinClusterListItem information of kubeblocks cluster in recycle bin

func NewRecycleBinClusterListItem

func NewRecycleBinClusterListItem(cloudProvider string, engine string, environmentName string, id string, name string, version string, state string, stoppedAt time.Time) *RecycleBinClusterListItem

NewRecycleBinClusterListItem instantiates a new RecycleBinClusterListItem 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 NewRecycleBinClusterListItemWithDefaults

func NewRecycleBinClusterListItemWithDefaults() *RecycleBinClusterListItem

NewRecycleBinClusterListItemWithDefaults instantiates a new RecycleBinClusterListItem 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 (*RecycleBinClusterListItem) GetAvailabilityZones

func (o *RecycleBinClusterListItem) GetAvailabilityZones() []string

GetAvailabilityZones returns the AvailabilityZones field value if set, zero value otherwise.

func (*RecycleBinClusterListItem) GetAvailabilityZonesOk

func (o *RecycleBinClusterListItem) GetAvailabilityZonesOk() (*[]string, bool)

GetAvailabilityZonesOk returns a tuple with the AvailabilityZones field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RecycleBinClusterListItem) GetClassCode

func (o *RecycleBinClusterListItem) GetClassCode() string

GetClassCode returns the ClassCode field value if set, zero value otherwise.

func (*RecycleBinClusterListItem) GetClassCodeOk

func (o *RecycleBinClusterListItem) GetClassCodeOk() (*string, bool)

GetClassCodeOk returns a tuple with the ClassCode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RecycleBinClusterListItem) GetCloudProvider

func (o *RecycleBinClusterListItem) GetCloudProvider() string

GetCloudProvider returns the CloudProvider field value.

func (*RecycleBinClusterListItem) GetCloudProviderOk

func (o *RecycleBinClusterListItem) GetCloudProviderOk() (*string, bool)

GetCloudProviderOk returns a tuple with the CloudProvider field value and a boolean to check if the value has been set.

func (*RecycleBinClusterListItem) GetCloudRegion

func (o *RecycleBinClusterListItem) GetCloudRegion() string

GetCloudRegion returns the CloudRegion field value if set, zero value otherwise.

func (*RecycleBinClusterListItem) GetCloudRegionOk

func (o *RecycleBinClusterListItem) GetCloudRegionOk() (*string, bool)

GetCloudRegionOk returns a tuple with the CloudRegion field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RecycleBinClusterListItem) GetClusterId

func (o *RecycleBinClusterListItem) GetClusterId() string

GetClusterId returns the ClusterId field value if set, zero value otherwise.

func (*RecycleBinClusterListItem) GetClusterIdOk

func (o *RecycleBinClusterListItem) GetClusterIdOk() (*string, bool)

GetClusterIdOk returns a tuple with the ClusterId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RecycleBinClusterListItem) GetCreatedAt

func (o *RecycleBinClusterListItem) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.

func (*RecycleBinClusterListItem) GetCreatedAtOk

func (o *RecycleBinClusterListItem) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RecycleBinClusterListItem) GetDisplayName

func (o *RecycleBinClusterListItem) GetDisplayName() string

GetDisplayName returns the DisplayName field value if set, zero value otherwise.

func (*RecycleBinClusterListItem) GetDisplayNameOk

func (o *RecycleBinClusterListItem) GetDisplayNameOk() (*string, bool)

GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RecycleBinClusterListItem) GetEngine

func (o *RecycleBinClusterListItem) GetEngine() string

GetEngine returns the Engine field value.

func (*RecycleBinClusterListItem) GetEngineOk

func (o *RecycleBinClusterListItem) GetEngineOk() (*string, bool)

GetEngineOk returns a tuple with the Engine field value and a boolean to check if the value has been set.

func (*RecycleBinClusterListItem) GetEnvironmentName

func (o *RecycleBinClusterListItem) GetEnvironmentName() string

GetEnvironmentName returns the EnvironmentName field value.

func (*RecycleBinClusterListItem) GetEnvironmentNameOk

func (o *RecycleBinClusterListItem) GetEnvironmentNameOk() (*string, bool)

GetEnvironmentNameOk returns a tuple with the EnvironmentName field value and a boolean to check if the value has been set.

func (*RecycleBinClusterListItem) GetExpiredAt

func (o *RecycleBinClusterListItem) GetExpiredAt() time.Time

GetExpiredAt returns the ExpiredAt field value if set, zero value otherwise.

func (*RecycleBinClusterListItem) GetExpiredAtOk

func (o *RecycleBinClusterListItem) GetExpiredAtOk() (*time.Time, bool)

GetExpiredAtOk returns a tuple with the ExpiredAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RecycleBinClusterListItem) GetId

func (o *RecycleBinClusterListItem) GetId() string

GetId returns the Id field value.

func (*RecycleBinClusterListItem) GetIdOk

func (o *RecycleBinClusterListItem) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*RecycleBinClusterListItem) GetMode

func (o *RecycleBinClusterListItem) GetMode() string

GetMode returns the Mode field value if set, zero value otherwise.

func (*RecycleBinClusterListItem) GetModeOk

func (o *RecycleBinClusterListItem) GetModeOk() (*string, bool)

GetModeOk returns a tuple with the Mode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RecycleBinClusterListItem) GetName

func (o *RecycleBinClusterListItem) GetName() string

GetName returns the Name field value.

func (*RecycleBinClusterListItem) GetNameOk

func (o *RecycleBinClusterListItem) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*RecycleBinClusterListItem) GetOrgName

func (o *RecycleBinClusterListItem) GetOrgName() string

GetOrgName returns the OrgName field value if set, zero value otherwise.

func (*RecycleBinClusterListItem) GetOrgNameOk

func (o *RecycleBinClusterListItem) GetOrgNameOk() (*string, bool)

GetOrgNameOk returns a tuple with the OrgName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RecycleBinClusterListItem) GetState

func (o *RecycleBinClusterListItem) GetState() string

GetState returns the State field value.

func (*RecycleBinClusterListItem) GetStateOk

func (o *RecycleBinClusterListItem) GetStateOk() (*string, bool)

GetStateOk returns a tuple with the State field value and a boolean to check if the value has been set.

func (*RecycleBinClusterListItem) GetStoppedAt

func (o *RecycleBinClusterListItem) GetStoppedAt() time.Time

GetStoppedAt returns the StoppedAt field value.

func (*RecycleBinClusterListItem) GetStoppedAtOk

func (o *RecycleBinClusterListItem) GetStoppedAtOk() (*time.Time, bool)

GetStoppedAtOk returns a tuple with the StoppedAt field value and a boolean to check if the value has been set.

func (*RecycleBinClusterListItem) GetStorage

func (o *RecycleBinClusterListItem) GetStorage() string

GetStorage returns the Storage field value if set, zero value otherwise.

func (*RecycleBinClusterListItem) GetStorageOk

func (o *RecycleBinClusterListItem) GetStorageOk() (*string, bool)

GetStorageOk returns a tuple with the Storage field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RecycleBinClusterListItem) GetVersion

func (o *RecycleBinClusterListItem) GetVersion() string

GetVersion returns the Version field value.

func (*RecycleBinClusterListItem) GetVersionOk

func (o *RecycleBinClusterListItem) GetVersionOk() (*string, bool)

GetVersionOk returns a tuple with the Version field value and a boolean to check if the value has been set.

func (*RecycleBinClusterListItem) HasAvailabilityZones

func (o *RecycleBinClusterListItem) HasAvailabilityZones() bool

HasAvailabilityZones returns a boolean if a field has been set.

func (*RecycleBinClusterListItem) HasClassCode

func (o *RecycleBinClusterListItem) HasClassCode() bool

HasClassCode returns a boolean if a field has been set.

func (*RecycleBinClusterListItem) HasCloudRegion

func (o *RecycleBinClusterListItem) HasCloudRegion() bool

HasCloudRegion returns a boolean if a field has been set.

func (*RecycleBinClusterListItem) HasClusterId

func (o *RecycleBinClusterListItem) HasClusterId() bool

HasClusterId returns a boolean if a field has been set.

func (*RecycleBinClusterListItem) HasCreatedAt

func (o *RecycleBinClusterListItem) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*RecycleBinClusterListItem) HasDisplayName

func (o *RecycleBinClusterListItem) HasDisplayName() bool

HasDisplayName returns a boolean if a field has been set.

func (*RecycleBinClusterListItem) HasExpiredAt

func (o *RecycleBinClusterListItem) HasExpiredAt() bool

HasExpiredAt returns a boolean if a field has been set.

func (*RecycleBinClusterListItem) HasMode

func (o *RecycleBinClusterListItem) HasMode() bool

HasMode returns a boolean if a field has been set.

func (*RecycleBinClusterListItem) HasOrgName

func (o *RecycleBinClusterListItem) HasOrgName() bool

HasOrgName returns a boolean if a field has been set.

func (*RecycleBinClusterListItem) HasStorage

func (o *RecycleBinClusterListItem) HasStorage() bool

HasStorage returns a boolean if a field has been set.

func (RecycleBinClusterListItem) MarshalJSON

func (o RecycleBinClusterListItem) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*RecycleBinClusterListItem) SetAvailabilityZones

func (o *RecycleBinClusterListItem) SetAvailabilityZones(v []string)

SetAvailabilityZones gets a reference to the given []string and assigns it to the AvailabilityZones field.

func (*RecycleBinClusterListItem) SetClassCode

func (o *RecycleBinClusterListItem) SetClassCode(v string)

SetClassCode gets a reference to the given string and assigns it to the ClassCode field.

func (*RecycleBinClusterListItem) SetCloudProvider

func (o *RecycleBinClusterListItem) SetCloudProvider(v string)

SetCloudProvider sets field value.

func (*RecycleBinClusterListItem) SetCloudRegion

func (o *RecycleBinClusterListItem) SetCloudRegion(v string)

SetCloudRegion gets a reference to the given string and assigns it to the CloudRegion field.

func (*RecycleBinClusterListItem) SetClusterId

func (o *RecycleBinClusterListItem) SetClusterId(v string)

SetClusterId gets a reference to the given string and assigns it to the ClusterId field.

func (*RecycleBinClusterListItem) SetCreatedAt

func (o *RecycleBinClusterListItem) SetCreatedAt(v time.Time)

SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.

func (*RecycleBinClusterListItem) SetDisplayName

func (o *RecycleBinClusterListItem) SetDisplayName(v string)

SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.

func (*RecycleBinClusterListItem) SetEngine

func (o *RecycleBinClusterListItem) SetEngine(v string)

SetEngine sets field value.

func (*RecycleBinClusterListItem) SetEnvironmentName

func (o *RecycleBinClusterListItem) SetEnvironmentName(v string)

SetEnvironmentName sets field value.

func (*RecycleBinClusterListItem) SetExpiredAt

func (o *RecycleBinClusterListItem) SetExpiredAt(v time.Time)

SetExpiredAt gets a reference to the given time.Time and assigns it to the ExpiredAt field.

func (*RecycleBinClusterListItem) SetId

func (o *RecycleBinClusterListItem) SetId(v string)

SetId sets field value.

func (*RecycleBinClusterListItem) SetMode

func (o *RecycleBinClusterListItem) SetMode(v string)

SetMode gets a reference to the given string and assigns it to the Mode field.

func (*RecycleBinClusterListItem) SetName

func (o *RecycleBinClusterListItem) SetName(v string)

SetName sets field value.

func (*RecycleBinClusterListItem) SetOrgName

func (o *RecycleBinClusterListItem) SetOrgName(v string)

SetOrgName gets a reference to the given string and assigns it to the OrgName field.

func (*RecycleBinClusterListItem) SetState

func (o *RecycleBinClusterListItem) SetState(v string)

SetState sets field value.

func (*RecycleBinClusterListItem) SetStoppedAt

func (o *RecycleBinClusterListItem) SetStoppedAt(v time.Time)

SetStoppedAt sets field value.

func (*RecycleBinClusterListItem) SetStorage

func (o *RecycleBinClusterListItem) SetStorage(v string)

SetStorage gets a reference to the given string and assigns it to the Storage field.

func (*RecycleBinClusterListItem) SetVersion

func (o *RecycleBinClusterListItem) SetVersion(v string)

SetVersion sets field value.

func (*RecycleBinClusterListItem) UnmarshalJSON

func (o *RecycleBinClusterListItem) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type Region

type Region struct {
	// The name of the region.
	Name string `json:"name"`
	// The Chinese name of the region.
	NameCn string `json:"nameCN"`
	// The English name of the region.
	NameEn string `json:"nameEN"`
	// The name of the cloud provider.
	Provider string `json:"provider"`
	// The group of the region.
	Group string `json:"group"`
	// Whether the region is enabled.
	Enabled bool `json:"enabled"`
	// The number of zones that the region has.
	ZoneCount int32 `json:"zoneCount"`
	// The time when the region was created.
	CreatedAt time.Time `json:"createdAt"`
	// The time when the region was last updated.
	UpdatedAt time.Time `json:"updatedAt"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

Region The region that the cloud provider has.

func NewRegion

func NewRegion(name string, nameCn string, nameEn string, provider string, group string, enabled bool, zoneCount int32, createdAt time.Time, updatedAt time.Time) *Region

NewRegion instantiates a new Region 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 NewRegionWithDefaults

func NewRegionWithDefaults() *Region

NewRegionWithDefaults instantiates a new Region 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 (*Region) GetCreatedAt

func (o *Region) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field value.

func (*Region) GetCreatedAtOk

func (o *Region) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value and a boolean to check if the value has been set.

func (*Region) GetEnabled

func (o *Region) GetEnabled() bool

GetEnabled returns the Enabled field value.

func (*Region) GetEnabledOk

func (o *Region) GetEnabledOk() (*bool, bool)

GetEnabledOk returns a tuple with the Enabled field value and a boolean to check if the value has been set.

func (*Region) GetGroup

func (o *Region) GetGroup() string

GetGroup returns the Group field value.

func (*Region) GetGroupOk

func (o *Region) GetGroupOk() (*string, bool)

GetGroupOk returns a tuple with the Group field value and a boolean to check if the value has been set.

func (*Region) GetName

func (o *Region) GetName() string

GetName returns the Name field value.

func (*Region) GetNameCn

func (o *Region) GetNameCn() string

GetNameCn returns the NameCn field value.

func (*Region) GetNameCnOk

func (o *Region) GetNameCnOk() (*string, bool)

GetNameCnOk returns a tuple with the NameCn field value and a boolean to check if the value has been set.

func (*Region) GetNameEn

func (o *Region) GetNameEn() string

GetNameEn returns the NameEn field value.

func (*Region) GetNameEnOk

func (o *Region) GetNameEnOk() (*string, bool)

GetNameEnOk returns a tuple with the NameEn field value and a boolean to check if the value has been set.

func (*Region) GetNameOk

func (o *Region) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*Region) GetProvider

func (o *Region) GetProvider() string

GetProvider returns the Provider field value.

func (*Region) GetProviderOk

func (o *Region) GetProviderOk() (*string, bool)

GetProviderOk returns a tuple with the Provider field value and a boolean to check if the value has been set.

func (*Region) GetUpdatedAt

func (o *Region) GetUpdatedAt() time.Time

GetUpdatedAt returns the UpdatedAt field value.

func (*Region) GetUpdatedAtOk

func (o *Region) GetUpdatedAtOk() (*time.Time, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value and a boolean to check if the value has been set.

func (*Region) GetZoneCount

func (o *Region) GetZoneCount() int32

GetZoneCount returns the ZoneCount field value.

func (*Region) GetZoneCountOk

func (o *Region) GetZoneCountOk() (*int32, bool)

GetZoneCountOk returns a tuple with the ZoneCount field value and a boolean to check if the value has been set.

func (Region) MarshalJSON

func (o Region) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*Region) SetCreatedAt

func (o *Region) SetCreatedAt(v time.Time)

SetCreatedAt sets field value.

func (*Region) SetEnabled

func (o *Region) SetEnabled(v bool)

SetEnabled sets field value.

func (*Region) SetGroup

func (o *Region) SetGroup(v string)

SetGroup sets field value.

func (*Region) SetName

func (o *Region) SetName(v string)

SetName sets field value.

func (*Region) SetNameCn

func (o *Region) SetNameCn(v string)

SetNameCn sets field value.

func (*Region) SetNameEn

func (o *Region) SetNameEn(v string)

SetNameEn sets field value.

func (*Region) SetProvider

func (o *Region) SetProvider(v string)

SetProvider sets field value.

func (*Region) SetUpdatedAt

func (o *Region) SetUpdatedAt(v time.Time)

SetUpdatedAt sets field value.

func (*Region) SetZoneCount

func (o *Region) SetZoneCount(v int32)

SetZoneCount sets field value.

func (*Region) UnmarshalJSON

func (o *Region) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type RegionApi

type RegionApi common.Service

RegionApi service type

func NewRegionApi

func NewRegionApi(client *common.APIClient) *RegionApi

NewRegionApi Returns NewRegionApi.

func (*RegionApi) GetRegion

func (a *RegionApi) GetRegion(ctx _context.Context, providerName string, regionName string) (Region, *_nethttp.Response, error)

GetRegion Get region. Get region

func (*RegionApi) ListRegions

func (a *RegionApi) ListRegions(ctx _context.Context, providerName string) (RegionList, *_nethttp.Response, error)

ListRegions Get region list. Get region list

type RegionList

type RegionList struct {
	// The list of regions.
	Items []Region `json:"items,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

RegionList The list of regions.

func NewRegionList

func NewRegionList() *RegionList

NewRegionList instantiates a new RegionList 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 NewRegionListWithDefaults

func NewRegionListWithDefaults() *RegionList

NewRegionListWithDefaults instantiates a new RegionList 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 (*RegionList) GetItems

func (o *RegionList) GetItems() []Region

GetItems returns the Items field value if set, zero value otherwise.

func (*RegionList) GetItemsOk

func (o *RegionList) GetItemsOk() (*[]Region, bool)

GetItemsOk returns a tuple with the Items field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RegionList) HasItems

func (o *RegionList) HasItems() bool

HasItems returns a boolean if a field has been set.

func (RegionList) MarshalJSON

func (o RegionList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*RegionList) SetItems

func (o *RegionList) SetItems(v []Region)

SetItems gets a reference to the given []Region and assigns it to the Items field.

func (*RegionList) UnmarshalJSON

func (o *RegionList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type Restore

type Restore struct {
	// organization name
	OrgName *string `json:"orgName,omitempty"`
	// backup name
	BackupName string `json:"backupName"`
	// kubeBlocks cluster name
	ClusterName string `json:"clusterName"`
	// component name of cluster
	ComponentName string `json:"componentName"`
	// target pod name
	TargetPodName *string    `json:"targetPodName,omitempty"`
	CreatedAt     *time.Time `json:"createdAt,omitempty"`
	// kubeBlocks restore name
	Name *string `json:"name,omitempty"`
	// restore parameters to inject env of the restore CR.
	Parameters *RestoreParameters `json:"parameters,omitempty"`
	// restore time
	RestoreTime *string `json:"restoreTime,omitempty"`
	// restore status
	Status *RestoreStatus `json:"status,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

Restore create a KubeBlocks restore API

func NewRestore

func NewRestore(backupName string, clusterName string, componentName string) *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 NewRestoreWithDefaults

func NewRestoreWithDefaults() *Restore

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 (*Restore) GetBackupName

func (o *Restore) GetBackupName() string

GetBackupName returns the BackupName field value.

func (*Restore) GetBackupNameOk

func (o *Restore) GetBackupNameOk() (*string, bool)

GetBackupNameOk returns a tuple with the BackupName field value and a boolean to check if the value has been set.

func (*Restore) GetClusterName

func (o *Restore) GetClusterName() string

GetClusterName returns the ClusterName field value.

func (*Restore) GetClusterNameOk

func (o *Restore) GetClusterNameOk() (*string, bool)

GetClusterNameOk returns a tuple with the ClusterName field value and a boolean to check if the value has been set.

func (*Restore) GetComponentName

func (o *Restore) GetComponentName() string

GetComponentName returns the ComponentName field value.

func (*Restore) GetComponentNameOk

func (o *Restore) GetComponentNameOk() (*string, bool)

GetComponentNameOk returns a tuple with the ComponentName field value and a boolean to check if the value has been set.

func (*Restore) GetCreatedAt

func (o *Restore) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.

func (*Restore) GetCreatedAtOk

func (o *Restore) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Restore) GetName

func (o *Restore) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*Restore) GetNameOk

func (o *Restore) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Restore) GetOrgName

func (o *Restore) GetOrgName() string

GetOrgName returns the OrgName field value if set, zero value otherwise.

func (*Restore) GetOrgNameOk

func (o *Restore) GetOrgNameOk() (*string, bool)

GetOrgNameOk returns a tuple with the OrgName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Restore) GetParameters

func (o *Restore) GetParameters() RestoreParameters

GetParameters returns the Parameters field value if set, zero value otherwise.

func (*Restore) GetParametersOk

func (o *Restore) GetParametersOk() (*RestoreParameters, bool)

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 (*Restore) GetRestoreTime

func (o *Restore) GetRestoreTime() string

GetRestoreTime returns the RestoreTime field value if set, zero value otherwise.

func (*Restore) GetRestoreTimeOk

func (o *Restore) GetRestoreTimeOk() (*string, bool)

GetRestoreTimeOk returns a tuple with the RestoreTime field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Restore) GetStatus

func (o *Restore) GetStatus() RestoreStatus

GetStatus returns the Status field value if set, zero value otherwise.

func (*Restore) GetStatusOk

func (o *Restore) GetStatusOk() (*RestoreStatus, bool)

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 (*Restore) GetTargetPodName

func (o *Restore) GetTargetPodName() string

GetTargetPodName returns the TargetPodName field value if set, zero value otherwise.

func (*Restore) GetTargetPodNameOk

func (o *Restore) GetTargetPodNameOk() (*string, bool)

GetTargetPodNameOk returns a tuple with the TargetPodName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Restore) HasCreatedAt

func (o *Restore) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*Restore) HasName

func (o *Restore) HasName() bool

HasName returns a boolean if a field has been set.

func (*Restore) HasOrgName

func (o *Restore) HasOrgName() bool

HasOrgName returns a boolean if a field has been set.

func (*Restore) HasParameters

func (o *Restore) HasParameters() bool

HasParameters returns a boolean if a field has been set.

func (*Restore) HasRestoreTime

func (o *Restore) HasRestoreTime() bool

HasRestoreTime returns a boolean if a field has been set.

func (*Restore) HasStatus

func (o *Restore) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (*Restore) HasTargetPodName

func (o *Restore) HasTargetPodName() bool

HasTargetPodName returns a boolean if a field has been set.

func (Restore) MarshalJSON

func (o Restore) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*Restore) SetBackupName

func (o *Restore) SetBackupName(v string)

SetBackupName sets field value.

func (*Restore) SetClusterName

func (o *Restore) SetClusterName(v string)

SetClusterName sets field value.

func (*Restore) SetComponentName

func (o *Restore) SetComponentName(v string)

SetComponentName sets field value.

func (*Restore) SetCreatedAt

func (o *Restore) SetCreatedAt(v time.Time)

SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.

func (*Restore) SetName

func (o *Restore) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*Restore) SetOrgName

func (o *Restore) SetOrgName(v string)

SetOrgName gets a reference to the given string and assigns it to the OrgName field.

func (*Restore) SetParameters

func (o *Restore) SetParameters(v RestoreParameters)

SetParameters gets a reference to the given RestoreParameters and assigns it to the Parameters field.

func (*Restore) SetRestoreTime

func (o *Restore) SetRestoreTime(v string)

SetRestoreTime gets a reference to the given string and assigns it to the RestoreTime field.

func (*Restore) SetStatus

func (o *Restore) SetStatus(v RestoreStatus)

SetStatus gets a reference to the given RestoreStatus and assigns it to the Status field.

func (*Restore) SetTargetPodName

func (o *Restore) SetTargetPodName(v string)

SetTargetPodName gets a reference to the given string and assigns it to the TargetPodName field.

func (*Restore) UnmarshalJSON

func (o *Restore) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type RestoreApi

type RestoreApi common.Service

RestoreApi service type

func NewRestoreApi

func NewRestoreApi(client *common.APIClient) *RestoreApi

NewRestoreApi Returns NewRestoreApi.

func (*RestoreApi) DeleteRestoreObject

func (a *RestoreApi) DeleteRestoreObject(ctx _context.Context, orgName string, clusterName string, restoreName string) (*_nethttp.Response, error)

DeleteRestoreObject Delete restore task.

func (*RestoreApi) DoRestore

func (a *RestoreApi) DoRestore(ctx _context.Context, orgName string, clusterName string, body Restore) (Restore, *_nethttp.Response, error)

DoRestore Restore current cluster or instance.

func (*RestoreApi) GetRestoreLog

func (a *RestoreApi) GetRestoreLog(ctx _context.Context, orgName string, clusterName string, restoreId string) (RestoreLog, *_nethttp.Response, error)

GetRestoreLog get restore workload logs of the cluster.

func (*RestoreApi) GetRestoreTimeRange

func (a *RestoreApi) GetRestoreTimeRange(ctx _context.Context, orgName string, clusterId string) (Backup, *_nethttp.Response, error)

GetRestoreTimeRange Get cluster restore time ragne.

func (*RestoreApi) ListClusterRestore

func (a *RestoreApi) ListClusterRestore(ctx _context.Context, orgName string, clusterName string) (RestoreList, *_nethttp.Response, error)

ListClusterRestore List restore tasks.

func (*RestoreApi) ListRestores

func (a *RestoreApi) ListRestores(ctx _context.Context, orgName string) (RestoreList, *_nethttp.Response, error)

ListRestores List restore tasks.

func (*RestoreApi) RestoreCluster

func (a *RestoreApi) RestoreCluster(ctx _context.Context, orgName string, body RestoreCreate) (Cluster, *_nethttp.Response, error)

RestoreCluster Restore new cluster.

type RestoreCreate

type RestoreCreate struct {
	// the env name of the target environment to restore
	EnvironmentName string `json:"environmentName"`
	// the id of backup to restore
	BackupId string `json:"backupId"`
	// KubeBlocks cluster information
	Cluster Cluster `json:"cluster"`
	// restoreTime point to restore
	RestoreTimeStr *string `json:"restoreTimeStr,omitempty"`
	// the recovery process in the PostReady phase will be performed after the cluster is running successfully.
	DoReadyRestoreAfterClusterRunning *bool `json:"doReadyRestoreAfterClusterRunning,omitempty"`
	// the volume claim restore policy, support values: [Serial, Parallel]
	VolumeRestorePolicy *VolumeRestorePolicy `json:"volumeRestorePolicy,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

RestoreCreate RestoreCreate is the payload to restore a KubeBlocks cluster

func NewRestoreCreate

func NewRestoreCreate(environmentName string, backupId string, cluster Cluster) *RestoreCreate

NewRestoreCreate instantiates a new RestoreCreate 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 NewRestoreCreateWithDefaults

func NewRestoreCreateWithDefaults() *RestoreCreate

NewRestoreCreateWithDefaults instantiates a new RestoreCreate 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 (*RestoreCreate) GetBackupId

func (o *RestoreCreate) GetBackupId() string

GetBackupId returns the BackupId field value.

func (*RestoreCreate) GetBackupIdOk

func (o *RestoreCreate) GetBackupIdOk() (*string, bool)

GetBackupIdOk returns a tuple with the BackupId field value and a boolean to check if the value has been set.

func (*RestoreCreate) GetCluster

func (o *RestoreCreate) GetCluster() Cluster

GetCluster returns the Cluster field value.

func (*RestoreCreate) GetClusterOk

func (o *RestoreCreate) GetClusterOk() (*Cluster, bool)

GetClusterOk returns a tuple with the Cluster field value and a boolean to check if the value has been set.

func (*RestoreCreate) GetDoReadyRestoreAfterClusterRunning

func (o *RestoreCreate) GetDoReadyRestoreAfterClusterRunning() bool

GetDoReadyRestoreAfterClusterRunning returns the DoReadyRestoreAfterClusterRunning field value if set, zero value otherwise.

func (*RestoreCreate) GetDoReadyRestoreAfterClusterRunningOk

func (o *RestoreCreate) GetDoReadyRestoreAfterClusterRunningOk() (*bool, bool)

GetDoReadyRestoreAfterClusterRunningOk returns a tuple with the DoReadyRestoreAfterClusterRunning field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RestoreCreate) GetEnvironmentName

func (o *RestoreCreate) GetEnvironmentName() string

GetEnvironmentName returns the EnvironmentName field value.

func (*RestoreCreate) GetEnvironmentNameOk

func (o *RestoreCreate) GetEnvironmentNameOk() (*string, bool)

GetEnvironmentNameOk returns a tuple with the EnvironmentName field value and a boolean to check if the value has been set.

func (*RestoreCreate) GetRestoreTimeStr

func (o *RestoreCreate) GetRestoreTimeStr() string

GetRestoreTimeStr returns the RestoreTimeStr field value if set, zero value otherwise.

func (*RestoreCreate) GetRestoreTimeStrOk

func (o *RestoreCreate) GetRestoreTimeStrOk() (*string, bool)

GetRestoreTimeStrOk returns a tuple with the RestoreTimeStr field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RestoreCreate) GetVolumeRestorePolicy

func (o *RestoreCreate) GetVolumeRestorePolicy() VolumeRestorePolicy

GetVolumeRestorePolicy returns the VolumeRestorePolicy field value if set, zero value otherwise.

func (*RestoreCreate) GetVolumeRestorePolicyOk

func (o *RestoreCreate) GetVolumeRestorePolicyOk() (*VolumeRestorePolicy, bool)

GetVolumeRestorePolicyOk returns a tuple with the VolumeRestorePolicy field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RestoreCreate) HasDoReadyRestoreAfterClusterRunning

func (o *RestoreCreate) HasDoReadyRestoreAfterClusterRunning() bool

HasDoReadyRestoreAfterClusterRunning returns a boolean if a field has been set.

func (*RestoreCreate) HasRestoreTimeStr

func (o *RestoreCreate) HasRestoreTimeStr() bool

HasRestoreTimeStr returns a boolean if a field has been set.

func (*RestoreCreate) HasVolumeRestorePolicy

func (o *RestoreCreate) HasVolumeRestorePolicy() bool

HasVolumeRestorePolicy returns a boolean if a field has been set.

func (RestoreCreate) MarshalJSON

func (o RestoreCreate) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*RestoreCreate) SetBackupId

func (o *RestoreCreate) SetBackupId(v string)

SetBackupId sets field value.

func (*RestoreCreate) SetCluster

func (o *RestoreCreate) SetCluster(v Cluster)

SetCluster sets field value.

func (*RestoreCreate) SetDoReadyRestoreAfterClusterRunning

func (o *RestoreCreate) SetDoReadyRestoreAfterClusterRunning(v bool)

SetDoReadyRestoreAfterClusterRunning gets a reference to the given bool and assigns it to the DoReadyRestoreAfterClusterRunning field.

func (*RestoreCreate) SetEnvironmentName

func (o *RestoreCreate) SetEnvironmentName(v string)

SetEnvironmentName sets field value.

func (*RestoreCreate) SetRestoreTimeStr

func (o *RestoreCreate) SetRestoreTimeStr(v string)

SetRestoreTimeStr gets a reference to the given string and assigns it to the RestoreTimeStr field.

func (*RestoreCreate) SetVolumeRestorePolicy

func (o *RestoreCreate) SetVolumeRestorePolicy(v VolumeRestorePolicy)

SetVolumeRestorePolicy gets a reference to the given VolumeRestorePolicy and assigns it to the VolumeRestorePolicy field.

func (*RestoreCreate) UnmarshalJSON

func (o *RestoreCreate) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type RestoreList

type RestoreList struct {
	// Items is the list of restore objects in the list
	Items []Restore `json:"items"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

RestoreList restoreList is a list of restore object

func NewRestoreList

func NewRestoreList(items []Restore) *RestoreList

NewRestoreList instantiates a new RestoreList 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 NewRestoreListWithDefaults

func NewRestoreListWithDefaults() *RestoreList

NewRestoreListWithDefaults instantiates a new RestoreList 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 (*RestoreList) GetItems

func (o *RestoreList) GetItems() []Restore

GetItems returns the Items field value.

func (*RestoreList) GetItemsOk

func (o *RestoreList) GetItemsOk() (*[]Restore, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (RestoreList) MarshalJSON

func (o RestoreList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*RestoreList) SetItems

func (o *RestoreList) SetItems(v []Restore)

SetItems sets field value.

func (*RestoreList) UnmarshalJSON

func (o *RestoreList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type RestoreLog

type RestoreLog struct {
	// items is the list of restoreLogByPod objects
	Items []RestoreLogByPod `json:"items,omitempty"`
	// restore id
	RestoreId *string `json:"restoreId,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

RestoreLog restore workload logs

func NewRestoreLog

func NewRestoreLog() *RestoreLog

NewRestoreLog instantiates a new RestoreLog 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 NewRestoreLogWithDefaults

func NewRestoreLogWithDefaults() *RestoreLog

NewRestoreLogWithDefaults instantiates a new RestoreLog 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 (*RestoreLog) GetItems

func (o *RestoreLog) GetItems() []RestoreLogByPod

GetItems returns the Items field value if set, zero value otherwise.

func (*RestoreLog) GetItemsOk

func (o *RestoreLog) GetItemsOk() (*[]RestoreLogByPod, bool)

GetItemsOk returns a tuple with the Items field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RestoreLog) GetRestoreId

func (o *RestoreLog) GetRestoreId() string

GetRestoreId returns the RestoreId field value if set, zero value otherwise.

func (*RestoreLog) GetRestoreIdOk

func (o *RestoreLog) GetRestoreIdOk() (*string, bool)

GetRestoreIdOk returns a tuple with the RestoreId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RestoreLog) HasItems

func (o *RestoreLog) HasItems() bool

HasItems returns a boolean if a field has been set.

func (*RestoreLog) HasRestoreId

func (o *RestoreLog) HasRestoreId() bool

HasRestoreId returns a boolean if a field has been set.

func (RestoreLog) MarshalJSON

func (o RestoreLog) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*RestoreLog) SetItems

func (o *RestoreLog) SetItems(v []RestoreLogByPod)

SetItems gets a reference to the given []RestoreLogByPod and assigns it to the Items field.

func (*RestoreLog) SetRestoreId

func (o *RestoreLog) SetRestoreId(v string)

SetRestoreId gets a reference to the given string and assigns it to the RestoreId field.

func (*RestoreLog) UnmarshalJSON

func (o *RestoreLog) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type RestoreLogByPod

type RestoreLogByPod struct {
	// restore pod log
	Log *string `json:"log,omitempty"`
	// pod ownerReference objectkey
	OwnerObjectKey *string `json:"ownerObjectKey,omitempty"`
	// pod name
	PodName *string `json:"podName,omitempty"`
	// Date/time when the restore pod was created.
	CreationTimestamp *time.Time `json:"creationTimestamp,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

RestoreLogByPod info of restore workload log

func NewRestoreLogByPod

func NewRestoreLogByPod() *RestoreLogByPod

NewRestoreLogByPod instantiates a new RestoreLogByPod 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 NewRestoreLogByPodWithDefaults

func NewRestoreLogByPodWithDefaults() *RestoreLogByPod

NewRestoreLogByPodWithDefaults instantiates a new RestoreLogByPod 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 (*RestoreLogByPod) GetCreationTimestamp

func (o *RestoreLogByPod) GetCreationTimestamp() time.Time

GetCreationTimestamp returns the CreationTimestamp field value if set, zero value otherwise.

func (*RestoreLogByPod) GetCreationTimestampOk

func (o *RestoreLogByPod) GetCreationTimestampOk() (*time.Time, bool)

GetCreationTimestampOk returns a tuple with the CreationTimestamp field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RestoreLogByPod) GetLog

func (o *RestoreLogByPod) GetLog() string

GetLog returns the Log field value if set, zero value otherwise.

func (*RestoreLogByPod) GetLogOk

func (o *RestoreLogByPod) GetLogOk() (*string, bool)

GetLogOk returns a tuple with the Log field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RestoreLogByPod) GetOwnerObjectKey

func (o *RestoreLogByPod) GetOwnerObjectKey() string

GetOwnerObjectKey returns the OwnerObjectKey field value if set, zero value otherwise.

func (*RestoreLogByPod) GetOwnerObjectKeyOk

func (o *RestoreLogByPod) GetOwnerObjectKeyOk() (*string, bool)

GetOwnerObjectKeyOk returns a tuple with the OwnerObjectKey field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RestoreLogByPod) GetPodName

func (o *RestoreLogByPod) GetPodName() string

GetPodName returns the PodName field value if set, zero value otherwise.

func (*RestoreLogByPod) GetPodNameOk

func (o *RestoreLogByPod) GetPodNameOk() (*string, bool)

GetPodNameOk returns a tuple with the PodName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RestoreLogByPod) HasCreationTimestamp

func (o *RestoreLogByPod) HasCreationTimestamp() bool

HasCreationTimestamp returns a boolean if a field has been set.

func (*RestoreLogByPod) HasLog

func (o *RestoreLogByPod) HasLog() bool

HasLog returns a boolean if a field has been set.

func (*RestoreLogByPod) HasOwnerObjectKey

func (o *RestoreLogByPod) HasOwnerObjectKey() bool

HasOwnerObjectKey returns a boolean if a field has been set.

func (*RestoreLogByPod) HasPodName

func (o *RestoreLogByPod) HasPodName() bool

HasPodName returns a boolean if a field has been set.

func (RestoreLogByPod) MarshalJSON

func (o RestoreLogByPod) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*RestoreLogByPod) SetCreationTimestamp

func (o *RestoreLogByPod) SetCreationTimestamp(v time.Time)

SetCreationTimestamp gets a reference to the given time.Time and assigns it to the CreationTimestamp field.

func (*RestoreLogByPod) SetLog

func (o *RestoreLogByPod) SetLog(v string)

SetLog gets a reference to the given string and assigns it to the Log field.

func (*RestoreLogByPod) SetOwnerObjectKey

func (o *RestoreLogByPod) SetOwnerObjectKey(v string)

SetOwnerObjectKey gets a reference to the given string and assigns it to the OwnerObjectKey field.

func (*RestoreLogByPod) SetPodName

func (o *RestoreLogByPod) SetPodName(v string)

SetPodName gets a reference to the given string and assigns it to the PodName field.

func (*RestoreLogByPod) UnmarshalJSON

func (o *RestoreLogByPod) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type RestoreParameters

type RestoreParameters struct {
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

RestoreParameters restore parameters to inject env of the restore CR.

func NewRestoreParameters

func NewRestoreParameters() *RestoreParameters

NewRestoreParameters instantiates a new RestoreParameters 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 NewRestoreParametersWithDefaults

func NewRestoreParametersWithDefaults() *RestoreParameters

NewRestoreParametersWithDefaults instantiates a new RestoreParameters 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 (RestoreParameters) MarshalJSON

func (o RestoreParameters) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*RestoreParameters) UnmarshalJSON

func (o *RestoreParameters) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type RestoreStatus

type RestoreStatus struct {
	Actions []RestoreStatusActionsItem `json:"actions,omitempty"`
	// completion time
	CompletionTimestamp *string                       `json:"completionTimestamp,omitempty"`
	Conditions          []RestoreStatusConditionsItem `json:"conditions,omitempty"`
	// restore phase
	Phase *string `json:"phase,omitempty"`
	// start time
	StartTimestamp *string `json:"startTimestamp,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

RestoreStatus restore status

func NewRestoreStatus

func NewRestoreStatus() *RestoreStatus

NewRestoreStatus instantiates a new RestoreStatus 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 NewRestoreStatusWithDefaults

func NewRestoreStatusWithDefaults() *RestoreStatus

NewRestoreStatusWithDefaults instantiates a new RestoreStatus 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 (*RestoreStatus) GetActions

func (o *RestoreStatus) GetActions() []RestoreStatusActionsItem

GetActions returns the Actions field value if set, zero value otherwise.

func (*RestoreStatus) GetActionsOk

func (o *RestoreStatus) GetActionsOk() (*[]RestoreStatusActionsItem, bool)

GetActionsOk returns a tuple with the Actions field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RestoreStatus) GetCompletionTimestamp

func (o *RestoreStatus) GetCompletionTimestamp() string

GetCompletionTimestamp returns the CompletionTimestamp field value if set, zero value otherwise.

func (*RestoreStatus) GetCompletionTimestampOk

func (o *RestoreStatus) GetCompletionTimestampOk() (*string, bool)

GetCompletionTimestampOk returns a tuple with the CompletionTimestamp field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RestoreStatus) GetConditions

func (o *RestoreStatus) GetConditions() []RestoreStatusConditionsItem

GetConditions returns the Conditions field value if set, zero value otherwise.

func (*RestoreStatus) GetConditionsOk

func (o *RestoreStatus) GetConditionsOk() (*[]RestoreStatusConditionsItem, bool)

GetConditionsOk returns a tuple with the Conditions field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RestoreStatus) GetPhase

func (o *RestoreStatus) GetPhase() string

GetPhase returns the Phase field value if set, zero value otherwise.

func (*RestoreStatus) GetPhaseOk

func (o *RestoreStatus) GetPhaseOk() (*string, bool)

GetPhaseOk returns a tuple with the Phase field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RestoreStatus) GetStartTimestamp

func (o *RestoreStatus) GetStartTimestamp() string

GetStartTimestamp returns the StartTimestamp field value if set, zero value otherwise.

func (*RestoreStatus) GetStartTimestampOk

func (o *RestoreStatus) GetStartTimestampOk() (*string, bool)

GetStartTimestampOk returns a tuple with the StartTimestamp field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RestoreStatus) HasActions

func (o *RestoreStatus) HasActions() bool

HasActions returns a boolean if a field has been set.

func (*RestoreStatus) HasCompletionTimestamp

func (o *RestoreStatus) HasCompletionTimestamp() bool

HasCompletionTimestamp returns a boolean if a field has been set.

func (*RestoreStatus) HasConditions

func (o *RestoreStatus) HasConditions() bool

HasConditions returns a boolean if a field has been set.

func (*RestoreStatus) HasPhase

func (o *RestoreStatus) HasPhase() bool

HasPhase returns a boolean if a field has been set.

func (*RestoreStatus) HasStartTimestamp

func (o *RestoreStatus) HasStartTimestamp() bool

HasStartTimestamp returns a boolean if a field has been set.

func (RestoreStatus) MarshalJSON

func (o RestoreStatus) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*RestoreStatus) SetActions

func (o *RestoreStatus) SetActions(v []RestoreStatusActionsItem)

SetActions gets a reference to the given []RestoreStatusActionsItem and assigns it to the Actions field.

func (*RestoreStatus) SetCompletionTimestamp

func (o *RestoreStatus) SetCompletionTimestamp(v string)

SetCompletionTimestamp gets a reference to the given string and assigns it to the CompletionTimestamp field.

func (*RestoreStatus) SetConditions

func (o *RestoreStatus) SetConditions(v []RestoreStatusConditionsItem)

SetConditions gets a reference to the given []RestoreStatusConditionsItem and assigns it to the Conditions field.

func (*RestoreStatus) SetPhase

func (o *RestoreStatus) SetPhase(v string)

SetPhase gets a reference to the given string and assigns it to the Phase field.

func (*RestoreStatus) SetStartTimestamp

func (o *RestoreStatus) SetStartTimestamp(v string)

SetStartTimestamp gets a reference to the given string and assigns it to the StartTimestamp field.

func (*RestoreStatus) UnmarshalJSON

func (o *RestoreStatus) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type RestoreStatusActionsItem

type RestoreStatusActionsItem struct {
	Message *string `json:"message,omitempty"`
	// action name
	Name *string `json:"name,omitempty"`
	// action status, enum values: [Processing, Completed, Failed]
	Status *string `json:"status,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewRestoreStatusActionsItem

func NewRestoreStatusActionsItem() *RestoreStatusActionsItem

NewRestoreStatusActionsItem instantiates a new RestoreStatusActionsItem 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 NewRestoreStatusActionsItemWithDefaults

func NewRestoreStatusActionsItemWithDefaults() *RestoreStatusActionsItem

NewRestoreStatusActionsItemWithDefaults instantiates a new RestoreStatusActionsItem 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 (*RestoreStatusActionsItem) GetMessage

func (o *RestoreStatusActionsItem) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*RestoreStatusActionsItem) GetMessageOk

func (o *RestoreStatusActionsItem) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RestoreStatusActionsItem) GetName

func (o *RestoreStatusActionsItem) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*RestoreStatusActionsItem) GetNameOk

func (o *RestoreStatusActionsItem) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RestoreStatusActionsItem) GetStatus

func (o *RestoreStatusActionsItem) GetStatus() string

GetStatus returns the Status field value if set, zero value otherwise.

func (*RestoreStatusActionsItem) GetStatusOk

func (o *RestoreStatusActionsItem) GetStatusOk() (*string, bool)

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 (*RestoreStatusActionsItem) HasMessage

func (o *RestoreStatusActionsItem) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*RestoreStatusActionsItem) HasName

func (o *RestoreStatusActionsItem) HasName() bool

HasName returns a boolean if a field has been set.

func (*RestoreStatusActionsItem) HasStatus

func (o *RestoreStatusActionsItem) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (RestoreStatusActionsItem) MarshalJSON

func (o RestoreStatusActionsItem) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*RestoreStatusActionsItem) SetMessage

func (o *RestoreStatusActionsItem) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (*RestoreStatusActionsItem) SetName

func (o *RestoreStatusActionsItem) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*RestoreStatusActionsItem) SetStatus

func (o *RestoreStatusActionsItem) SetStatus(v string)

SetStatus gets a reference to the given string and assigns it to the Status field.

func (*RestoreStatusActionsItem) UnmarshalJSON

func (o *RestoreStatusActionsItem) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type RestoreStatusConditionsItem

type RestoreStatusConditionsItem struct {
	Message *string `json:"message,omitempty"`
	Reason  *string `json:"reason,omitempty"`
	// conditionType
	Type *string `json:"type,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewRestoreStatusConditionsItem

func NewRestoreStatusConditionsItem() *RestoreStatusConditionsItem

NewRestoreStatusConditionsItem instantiates a new RestoreStatusConditionsItem 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 NewRestoreStatusConditionsItemWithDefaults

func NewRestoreStatusConditionsItemWithDefaults() *RestoreStatusConditionsItem

NewRestoreStatusConditionsItemWithDefaults instantiates a new RestoreStatusConditionsItem 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 (*RestoreStatusConditionsItem) GetMessage

func (o *RestoreStatusConditionsItem) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*RestoreStatusConditionsItem) GetMessageOk

func (o *RestoreStatusConditionsItem) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RestoreStatusConditionsItem) GetReason

func (o *RestoreStatusConditionsItem) GetReason() string

GetReason returns the Reason field value if set, zero value otherwise.

func (*RestoreStatusConditionsItem) GetReasonOk

func (o *RestoreStatusConditionsItem) GetReasonOk() (*string, bool)

GetReasonOk returns a tuple with the Reason field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RestoreStatusConditionsItem) GetType

func (o *RestoreStatusConditionsItem) GetType() string

GetType returns the Type field value if set, zero value otherwise.

func (*RestoreStatusConditionsItem) GetTypeOk

func (o *RestoreStatusConditionsItem) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RestoreStatusConditionsItem) HasMessage

func (o *RestoreStatusConditionsItem) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*RestoreStatusConditionsItem) HasReason

func (o *RestoreStatusConditionsItem) HasReason() bool

HasReason returns a boolean if a field has been set.

func (*RestoreStatusConditionsItem) HasType

func (o *RestoreStatusConditionsItem) HasType() bool

HasType returns a boolean if a field has been set.

func (RestoreStatusConditionsItem) MarshalJSON

func (o RestoreStatusConditionsItem) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*RestoreStatusConditionsItem) SetMessage

func (o *RestoreStatusConditionsItem) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (*RestoreStatusConditionsItem) SetReason

func (o *RestoreStatusConditionsItem) SetReason(v string)

SetReason gets a reference to the given string and assigns it to the Reason field.

func (*RestoreStatusConditionsItem) SetType

func (o *RestoreStatusConditionsItem) SetType(v string)

SetType gets a reference to the given string and assigns it to the Type field.

func (*RestoreStatusConditionsItem) UnmarshalJSON

func (o *RestoreStatusConditionsItem) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type Result

type Result struct {
	Pagination *Pagination     `json:"pagination,omitempty"`
	Columns    []string        `json:"columns,omitempty"`
	Rows       [][]interface{} `json:"rows,omitempty"`
	Stats      *ResultStats    `json:"stats,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewResult

func NewResult() *Result

NewResult instantiates a new Result 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 NewResultWithDefaults

func NewResultWithDefaults() *Result

NewResultWithDefaults instantiates a new Result 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 (*Result) GetColumns

func (o *Result) GetColumns() []string

GetColumns returns the Columns field value if set, zero value otherwise.

func (*Result) GetColumnsOk

func (o *Result) GetColumnsOk() (*[]string, bool)

GetColumnsOk returns a tuple with the Columns field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Result) GetPagination

func (o *Result) GetPagination() Pagination

GetPagination returns the Pagination field value if set, zero value otherwise.

func (*Result) GetPaginationOk

func (o *Result) GetPaginationOk() (*Pagination, bool)

GetPaginationOk returns a tuple with the Pagination field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Result) GetRows

func (o *Result) GetRows() [][]interface{}

GetRows returns the Rows field value if set, zero value otherwise.

func (*Result) GetRowsOk

func (o *Result) GetRowsOk() (*[][]interface{}, bool)

GetRowsOk returns a tuple with the Rows field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Result) GetStats

func (o *Result) GetStats() ResultStats

GetStats returns the Stats field value if set, zero value otherwise.

func (*Result) GetStatsOk

func (o *Result) GetStatsOk() (*ResultStats, bool)

GetStatsOk returns a tuple with the Stats field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Result) HasColumns

func (o *Result) HasColumns() bool

HasColumns returns a boolean if a field has been set.

func (*Result) HasPagination

func (o *Result) HasPagination() bool

HasPagination returns a boolean if a field has been set.

func (*Result) HasRows

func (o *Result) HasRows() bool

HasRows returns a boolean if a field has been set.

func (*Result) HasStats

func (o *Result) HasStats() bool

HasStats returns a boolean if a field has been set.

func (Result) MarshalJSON

func (o Result) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*Result) SetColumns

func (o *Result) SetColumns(v []string)

SetColumns gets a reference to the given []string and assigns it to the Columns field.

func (*Result) SetPagination

func (o *Result) SetPagination(v Pagination)

SetPagination gets a reference to the given Pagination and assigns it to the Pagination field.

func (*Result) SetRows

func (o *Result) SetRows(v [][]interface{})

SetRows gets a reference to the given [][]interface{} and assigns it to the Rows field.

func (*Result) SetStats

func (o *Result) SetStats(v ResultStats)

SetStats gets a reference to the given ResultStats and assigns it to the Stats field.

func (*Result) UnmarshalJSON

func (o *Result) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ResultStats

type ResultStats struct {
	ColumnsCount    *int32     `json:"columns_count,omitempty"`
	RowsCount       *int32     `json:"rows_count,omitempty"`
	RowsAffected    *int32     `json:"rows_affected,omitempty"`
	QueryStartTime  *time.Time `json:"query_start_time,omitempty"`
	QueryFinishTime *time.Time `json:"query_finish_time,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewResultStats

func NewResultStats() *ResultStats

NewResultStats instantiates a new ResultStats 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 NewResultStatsWithDefaults

func NewResultStatsWithDefaults() *ResultStats

NewResultStatsWithDefaults instantiates a new ResultStats 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 (*ResultStats) GetColumnsCount

func (o *ResultStats) GetColumnsCount() int32

GetColumnsCount returns the ColumnsCount field value if set, zero value otherwise.

func (*ResultStats) GetColumnsCountOk

func (o *ResultStats) GetColumnsCountOk() (*int32, bool)

GetColumnsCountOk returns a tuple with the ColumnsCount field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ResultStats) GetQueryFinishTime

func (o *ResultStats) GetQueryFinishTime() time.Time

GetQueryFinishTime returns the QueryFinishTime field value if set, zero value otherwise.

func (*ResultStats) GetQueryFinishTimeOk

func (o *ResultStats) GetQueryFinishTimeOk() (*time.Time, bool)

GetQueryFinishTimeOk returns a tuple with the QueryFinishTime field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ResultStats) GetQueryStartTime

func (o *ResultStats) GetQueryStartTime() time.Time

GetQueryStartTime returns the QueryStartTime field value if set, zero value otherwise.

func (*ResultStats) GetQueryStartTimeOk

func (o *ResultStats) GetQueryStartTimeOk() (*time.Time, bool)

GetQueryStartTimeOk returns a tuple with the QueryStartTime field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ResultStats) GetRowsAffected

func (o *ResultStats) GetRowsAffected() int32

GetRowsAffected returns the RowsAffected field value if set, zero value otherwise.

func (*ResultStats) GetRowsAffectedOk

func (o *ResultStats) GetRowsAffectedOk() (*int32, bool)

GetRowsAffectedOk returns a tuple with the RowsAffected field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ResultStats) GetRowsCount

func (o *ResultStats) GetRowsCount() int32

GetRowsCount returns the RowsCount field value if set, zero value otherwise.

func (*ResultStats) GetRowsCountOk

func (o *ResultStats) GetRowsCountOk() (*int32, bool)

GetRowsCountOk returns a tuple with the RowsCount field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ResultStats) HasColumnsCount

func (o *ResultStats) HasColumnsCount() bool

HasColumnsCount returns a boolean if a field has been set.

func (*ResultStats) HasQueryFinishTime

func (o *ResultStats) HasQueryFinishTime() bool

HasQueryFinishTime returns a boolean if a field has been set.

func (*ResultStats) HasQueryStartTime

func (o *ResultStats) HasQueryStartTime() bool

HasQueryStartTime returns a boolean if a field has been set.

func (*ResultStats) HasRowsAffected

func (o *ResultStats) HasRowsAffected() bool

HasRowsAffected returns a boolean if a field has been set.

func (*ResultStats) HasRowsCount

func (o *ResultStats) HasRowsCount() bool

HasRowsCount returns a boolean if a field has been set.

func (ResultStats) MarshalJSON

func (o ResultStats) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ResultStats) SetColumnsCount

func (o *ResultStats) SetColumnsCount(v int32)

SetColumnsCount gets a reference to the given int32 and assigns it to the ColumnsCount field.

func (*ResultStats) SetQueryFinishTime

func (o *ResultStats) SetQueryFinishTime(v time.Time)

SetQueryFinishTime gets a reference to the given time.Time and assigns it to the QueryFinishTime field.

func (*ResultStats) SetQueryStartTime

func (o *ResultStats) SetQueryStartTime(v time.Time)

SetQueryStartTime gets a reference to the given time.Time and assigns it to the QueryStartTime field.

func (*ResultStats) SetRowsAffected

func (o *ResultStats) SetRowsAffected(v int32)

SetRowsAffected gets a reference to the given int32 and assigns it to the RowsAffected field.

func (*ResultStats) SetRowsCount

func (o *ResultStats) SetRowsCount(v int32)

SetRowsCount gets a reference to the given int32 and assigns it to the RowsCount field.

func (*ResultStats) UnmarshalJSON

func (o *ResultStats) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type Role

type Role struct {
	// The name of the role
	Name *string `json:"name,omitempty"`
	// The type of the role
	Type *string `json:"type,omitempty"`
	// The description of the role
	Description *string `json:"description,omitempty"`
	// The time when the role was created. Read-Only
	CreatedAt *time.Time `json:"createdAt,omitempty"`
	// The time when the role was updated. Read-Only
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

Role Role information

func NewRole

func NewRole() *Role

NewRole instantiates a new Role 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 NewRoleWithDefaults

func NewRoleWithDefaults() *Role

NewRoleWithDefaults instantiates a new Role 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 (*Role) GetCreatedAt

func (o *Role) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.

func (*Role) GetCreatedAtOk

func (o *Role) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Role) GetDescription

func (o *Role) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*Role) GetDescriptionOk

func (o *Role) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Role) GetName

func (o *Role) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*Role) GetNameOk

func (o *Role) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Role) GetType

func (o *Role) GetType() string

GetType returns the Type field value if set, zero value otherwise.

func (*Role) GetTypeOk

func (o *Role) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Role) GetUpdatedAt

func (o *Role) GetUpdatedAt() time.Time

GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.

func (*Role) GetUpdatedAtOk

func (o *Role) GetUpdatedAtOk() (*time.Time, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Role) HasCreatedAt

func (o *Role) HasCreatedAt() bool

HasCreatedAt returns a boolean if a field has been set.

func (*Role) HasDescription

func (o *Role) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*Role) HasName

func (o *Role) HasName() bool

HasName returns a boolean if a field has been set.

func (*Role) HasType

func (o *Role) HasType() bool

HasType returns a boolean if a field has been set.

func (*Role) HasUpdatedAt

func (o *Role) HasUpdatedAt() bool

HasUpdatedAt returns a boolean if a field has been set.

func (Role) MarshalJSON

func (o Role) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*Role) SetCreatedAt

func (o *Role) SetCreatedAt(v time.Time)

SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.

func (*Role) SetDescription

func (o *Role) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*Role) SetName

func (o *Role) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*Role) SetType

func (o *Role) SetType(v string)

SetType gets a reference to the given string and assigns it to the Type field.

func (*Role) SetUpdatedAt

func (o *Role) SetUpdatedAt(v time.Time)

SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field.

func (*Role) UnmarshalJSON

func (o *Role) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type RoleApi

type RoleApi common.Service

RoleApi service type

func NewRoleApi

func NewRoleApi(client *common.APIClient) *RoleApi

NewRoleApi Returns NewRoleApi.

func (*RoleApi) BatchAddRolePermissions

func (a *RoleApi) BatchAddRolePermissions(ctx _context.Context, orgName string, roleName string, body []string) (*_nethttp.Response, error)

BatchAddRolePermissions Batch add permissions to a role. Batch add permissions to a role

func (*RoleApi) BatchRemoveRolePermissions

func (a *RoleApi) BatchRemoveRolePermissions(ctx _context.Context, orgName string, roleName string, body []string) (*_nethttp.Response, error)

BatchRemoveRolePermissions Batch remove permissions from a role. Batch remove permissions from a role

func (*RoleApi) CreateRole

func (a *RoleApi) CreateRole(ctx _context.Context, orgName string, body RoleCreate) (Role, *_nethttp.Response, error)

CreateRole Create role. Create role

func (*RoleApi) DeleteRoleByName

func (a *RoleApi) DeleteRoleByName(ctx _context.Context, orgName string, roleName string) (*_nethttp.Response, error)

DeleteRoleByName Delete role by name. Delete role by name

func (*RoleApi) GetRoleByName

func (a *RoleApi) GetRoleByName(ctx _context.Context, orgName string, roleName string) (Role, *_nethttp.Response, error)

GetRoleByName Get role by name. Get role by name

func (*RoleApi) ListPermissions

func (a *RoleApi) ListPermissions(ctx _context.Context) (PermissionList, *_nethttp.Response, error)

ListPermissions List all permissions. List all permissions

func (*RoleApi) ListRolePermissions

func (a *RoleApi) ListRolePermissions(ctx _context.Context, orgName string, roleName string) (PermissionList, *_nethttp.Response, error)

ListRolePermissions List permissions of a role. List permissions of a role

func (*RoleApi) ListRoles

func (a *RoleApi) ListRoles(ctx _context.Context, orgName string) (RoleList, *_nethttp.Response, error)

ListRoles List roles of a organization. List roles of a organization

func (*RoleApi) UpdateRoleByName

func (a *RoleApi) UpdateRoleByName(ctx _context.Context, orgName string, roleName string, body RoleUpdate) (Role, *_nethttp.Response, error)

UpdateRoleByName Update role by name. Update role by name

type RoleCreate

type RoleCreate struct {
	// The name of the role
	Name *string `json:"name,omitempty"`
	// The description of the role
	Description *string `json:"description,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

RoleCreate Role create

func NewRoleCreate

func NewRoleCreate() *RoleCreate

NewRoleCreate instantiates a new RoleCreate 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 NewRoleCreateWithDefaults

func NewRoleCreateWithDefaults() *RoleCreate

NewRoleCreateWithDefaults instantiates a new RoleCreate 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 (*RoleCreate) GetDescription

func (o *RoleCreate) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*RoleCreate) GetDescriptionOk

func (o *RoleCreate) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RoleCreate) GetName

func (o *RoleCreate) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*RoleCreate) GetNameOk

func (o *RoleCreate) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RoleCreate) HasDescription

func (o *RoleCreate) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*RoleCreate) HasName

func (o *RoleCreate) HasName() bool

HasName returns a boolean if a field has been set.

func (RoleCreate) MarshalJSON

func (o RoleCreate) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*RoleCreate) SetDescription

func (o *RoleCreate) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*RoleCreate) SetName

func (o *RoleCreate) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*RoleCreate) UnmarshalJSON

func (o *RoleCreate) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type RoleList

type RoleList struct {
	// Items is the list of Role objects in the list
	Items []Role `json:"items"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

RoleList RoleList is a list of Roles

func NewRoleList

func NewRoleList(items []Role) *RoleList

NewRoleList instantiates a new RoleList 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 NewRoleListWithDefaults

func NewRoleListWithDefaults() *RoleList

NewRoleListWithDefaults instantiates a new RoleList 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 (*RoleList) GetItems

func (o *RoleList) GetItems() []Role

GetItems returns the Items field value.

func (*RoleList) GetItemsOk

func (o *RoleList) GetItemsOk() (*[]Role, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (RoleList) MarshalJSON

func (o RoleList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*RoleList) SetItems

func (o *RoleList) SetItems(v []Role)

SetItems sets field value.

func (*RoleList) UnmarshalJSON

func (o *RoleList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type RoleUpdate

type RoleUpdate struct {
	// The description of the role
	Description *string `json:"description,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

RoleUpdate Role update

func NewRoleUpdate

func NewRoleUpdate() *RoleUpdate

NewRoleUpdate instantiates a new RoleUpdate 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 NewRoleUpdateWithDefaults

func NewRoleUpdateWithDefaults() *RoleUpdate

NewRoleUpdateWithDefaults instantiates a new RoleUpdate 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 (*RoleUpdate) GetDescription

func (o *RoleUpdate) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*RoleUpdate) GetDescriptionOk

func (o *RoleUpdate) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RoleUpdate) HasDescription

func (o *RoleUpdate) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (RoleUpdate) MarshalJSON

func (o RoleUpdate) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*RoleUpdate) SetDescription

func (o *RoleUpdate) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*RoleUpdate) UnmarshalJSON

func (o *RoleUpdate) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ServiceVersionApi

type ServiceVersionApi common.Service

ServiceVersionApi service type

func NewServiceVersionApi

func NewServiceVersionApi(client *common.APIClient) *ServiceVersionApi

NewServiceVersionApi Returns NewServiceVersionApi.

func (*ServiceVersionApi) ListServiceVersion

func (a *ServiceVersionApi) ListServiceVersion(ctx _context.Context, environmentName string, engineName string, engineMode string, o ...ListServiceVersionOptionalParameters) (EngineServiceVersions, *_nethttp.Response, error)

ListServiceVersion list the service version of the engine. list the service version of the engine

type SetAlertConfigOptionalParameters

type SetAlertConfigOptionalParameters struct {
	Body *AlertConfig
}

SetAlertConfigOptionalParameters holds optional parameters for SetAlertConfig.

func NewSetAlertConfigOptionalParameters

func NewSetAlertConfigOptionalParameters() *SetAlertConfigOptionalParameters

NewSetAlertConfigOptionalParameters creates an empty struct for parameters.

func (*SetAlertConfigOptionalParameters) WithBody

WithBody sets the corresponding parameter name and returns the struct.

type SetAlertObjectsStatusOptionalParameters

type SetAlertObjectsStatusOptionalParameters struct {
	Body *[]AlertObject
}

SetAlertObjectsStatusOptionalParameters holds optional parameters for SetAlertObjectsStatus.

func NewSetAlertObjectsStatusOptionalParameters

func NewSetAlertObjectsStatusOptionalParameters() *SetAlertObjectsStatusOptionalParameters

NewSetAlertObjectsStatusOptionalParameters creates an empty struct for parameters.

func (*SetAlertObjectsStatusOptionalParameters) WithBody

WithBody sets the corresponding parameter name and returns the struct.

type SetClusterAlertDisabledOptionalParameters

type SetClusterAlertDisabledOptionalParameters struct {
	Body *AlertCluster
}

SetClusterAlertDisabledOptionalParameters holds optional parameters for SetClusterAlertDisabled.

func NewSetClusterAlertDisabledOptionalParameters

func NewSetClusterAlertDisabledOptionalParameters() *SetClusterAlertDisabledOptionalParameters

NewSetClusterAlertDisabledOptionalParameters creates an empty struct for parameters.

func (*SetClusterAlertDisabledOptionalParameters) WithBody

WithBody sets the corresponding parameter name and returns the struct.

type SortType

type SortType string

SortType Represents the type of sorting.

const (
	SortTypeAsc  SortType = "asc"
	SortTypeDesc SortType = "desc"
)

List of SortType.

func NewSortTypeFromValue

func NewSortTypeFromValue(v string) (*SortType, error)

NewSortTypeFromValue returns a pointer to a valid SortType for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*SortType) GetAllowedValues

func (v *SortType) GetAllowedValues() []SortType

GetAllowedValues returns the list of possible values.

func (SortType) IsValid

func (v SortType) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (SortType) Ptr

func (v SortType) Ptr() *SortType

Ptr returns reference to SortType value.

func (*SortType) UnmarshalJSON

func (v *SortType) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type SqlEditorApi

type SqlEditorApi common.Service

SqlEditorApi service type

func NewSqlEditorApi

func NewSqlEditorApi(client *common.APIClient) *SqlEditorApi

NewSqlEditorApi Returns NewSqlEditorApi.

func (*SqlEditorApi) RunSQLOnCluster

func (a *SqlEditorApi) RunSQLOnCluster(ctx _context.Context, orgName string, clusterName string, body SqlReqRes) (SqlReqRes, *_nethttp.Response, error)

RunSQLOnCluster Connect and run command on cluster.

type SqlReqRes

type SqlReqRes struct {
	// SQL request or response body
	Body *string `json:"body,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewSqlReqRes

func NewSqlReqRes() *SqlReqRes

NewSqlReqRes instantiates a new SqlReqRes 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 NewSqlReqResWithDefaults

func NewSqlReqResWithDefaults() *SqlReqRes

NewSqlReqResWithDefaults instantiates a new SqlReqRes 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 (*SqlReqRes) GetBody

func (o *SqlReqRes) GetBody() string

GetBody returns the Body field value if set, zero value otherwise.

func (*SqlReqRes) GetBodyOk

func (o *SqlReqRes) GetBodyOk() (*string, bool)

GetBodyOk returns a tuple with the Body field value if set, nil otherwise and a boolean to check if the value has been set.

func (*SqlReqRes) HasBody

func (o *SqlReqRes) HasBody() bool

HasBody returns a boolean if a field has been set.

func (SqlReqRes) MarshalJSON

func (o SqlReqRes) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*SqlReqRes) SetBody

func (o *SqlReqRes) SetBody(v string)

SetBody gets a reference to the given string and assigns it to the Body field.

func (*SqlReqRes) UnmarshalJSON

func (o *SqlReqRes) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type StorageClassApi

type StorageClassApi common.Service

StorageClassApi service type

func NewStorageClassApi

func NewStorageClassApi(client *common.APIClient) *StorageClassApi

NewStorageClassApi Returns NewStorageClassApi.

func (*StorageClassApi) GetStorageClassStats

func (a *StorageClassApi) GetStorageClassStats(ctx _context.Context, orgName string, environmentName string) (StorageClassList, *_nethttp.Response, error)

GetStorageClassStats Get storage class stats. Provides a summary of storage class statistics, aggregated and organized by namespace.

type StorageClassInfo

type StorageClassInfo struct {
	// the name of the storage class
	Name string `json:"name"`
	// the creation time of the storage class
	CreationTimestamp string `json:"creationTimestamp"`
	// the provisioner of the storage class
	Provisioner string `json:"provisioner"`
	// the parameters of the storage class
	Parameters map[string]string `json:"parameters"`
	// the labels of the storage class
	Labels map[string]string `json:"labels"`
	// the annotations of the storage class
	Annotations map[string]string `json:"annotations"`
	// the reclaim policy of the storage class
	ReclaimPolicy string `json:"reclaimPolicy"`
	// whether allow volume expansion
	AllowVolumeExpansion bool `json:"allowVolumeExpansion"`
	// the volume binding mode of the storage class
	VolumeBindingMode string `json:"volumeBindingMode"`
	// the number of PVCs
	PvcCount string `json:"pvcCount"`
	// whether allow clone
	AllowClone bool `json:"allowClone"`
	// whether allow snapshot
	AllowSnapshot bool `json:"allowSnapshot"`
	// whether is default class
	IsDefaultClass bool `json:"isDefaultClass"`
	// the type of the storage class
	Type string `json:"type"`
	// the host path when using local storage provisioner
	HostPath *string `json:"hostPath,omitempty"`
	// the mount options of the storage class
	MountOptions []string `json:"mountOptions"`
	// the creation time of the storage class
	CreatedAt time.Time `json:"createdAt"`
	// the description of the storage class
	Description string `json:"description"`
	// the display name of the storage class
	DisplayName string `json:"displayName"`
	// whether the storage class is enabled
	Enabled bool `json:"enabled"`
	// the id of the storage class
	Id string `json:"id"`
	// the update time of the storage class
	UpdatedAt time.Time `json:"updatedAt"`
	// the List stands for stats for the storage volumes of nodes.
	StatsByNodeList StorageClassInfoStatsByNodeList `json:"statsByNodeList"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

StorageClassInfo StorageClassInfo provides detailed information about a specific storage class.

func NewStorageClassInfo

func NewStorageClassInfo(name string, creationTimestamp string, provisioner string, parameters map[string]string, labels map[string]string, annotations map[string]string, reclaimPolicy string, allowVolumeExpansion bool, volumeBindingMode string, pvcCount string, allowClone bool, allowSnapshot bool, isDefaultClass bool, typeVar string, mountOptions []string, createdAt time.Time, description string, displayName string, enabled bool, id string, updatedAt time.Time, statsByNodeList StorageClassInfoStatsByNodeList) *StorageClassInfo

NewStorageClassInfo instantiates a new StorageClassInfo 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 NewStorageClassInfoWithDefaults

func NewStorageClassInfoWithDefaults() *StorageClassInfo

NewStorageClassInfoWithDefaults instantiates a new StorageClassInfo 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 (*StorageClassInfo) GetAllowClone

func (o *StorageClassInfo) GetAllowClone() bool

GetAllowClone returns the AllowClone field value.

func (*StorageClassInfo) GetAllowCloneOk

func (o *StorageClassInfo) GetAllowCloneOk() (*bool, bool)

GetAllowCloneOk returns a tuple with the AllowClone field value and a boolean to check if the value has been set.

func (*StorageClassInfo) GetAllowSnapshot

func (o *StorageClassInfo) GetAllowSnapshot() bool

GetAllowSnapshot returns the AllowSnapshot field value.

func (*StorageClassInfo) GetAllowSnapshotOk

func (o *StorageClassInfo) GetAllowSnapshotOk() (*bool, bool)

GetAllowSnapshotOk returns a tuple with the AllowSnapshot field value and a boolean to check if the value has been set.

func (*StorageClassInfo) GetAllowVolumeExpansion

func (o *StorageClassInfo) GetAllowVolumeExpansion() bool

GetAllowVolumeExpansion returns the AllowVolumeExpansion field value.

func (*StorageClassInfo) GetAllowVolumeExpansionOk

func (o *StorageClassInfo) GetAllowVolumeExpansionOk() (*bool, bool)

GetAllowVolumeExpansionOk returns a tuple with the AllowVolumeExpansion field value and a boolean to check if the value has been set.

func (*StorageClassInfo) GetAnnotations

func (o *StorageClassInfo) GetAnnotations() map[string]string

GetAnnotations returns the Annotations field value.

func (*StorageClassInfo) GetAnnotationsOk

func (o *StorageClassInfo) GetAnnotationsOk() (*map[string]string, bool)

GetAnnotationsOk returns a tuple with the Annotations field value and a boolean to check if the value has been set.

func (*StorageClassInfo) GetCreatedAt

func (o *StorageClassInfo) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field value.

func (*StorageClassInfo) GetCreatedAtOk

func (o *StorageClassInfo) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value and a boolean to check if the value has been set.

func (*StorageClassInfo) GetCreationTimestamp

func (o *StorageClassInfo) GetCreationTimestamp() string

GetCreationTimestamp returns the CreationTimestamp field value.

func (*StorageClassInfo) GetCreationTimestampOk

func (o *StorageClassInfo) GetCreationTimestampOk() (*string, bool)

GetCreationTimestampOk returns a tuple with the CreationTimestamp field value and a boolean to check if the value has been set.

func (*StorageClassInfo) GetDescription

func (o *StorageClassInfo) GetDescription() string

GetDescription returns the Description field value.

func (*StorageClassInfo) GetDescriptionOk

func (o *StorageClassInfo) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.

func (*StorageClassInfo) GetDisplayName

func (o *StorageClassInfo) GetDisplayName() string

GetDisplayName returns the DisplayName field value.

func (*StorageClassInfo) GetDisplayNameOk

func (o *StorageClassInfo) GetDisplayNameOk() (*string, bool)

GetDisplayNameOk returns a tuple with the DisplayName field value and a boolean to check if the value has been set.

func (*StorageClassInfo) GetEnabled

func (o *StorageClassInfo) GetEnabled() bool

GetEnabled returns the Enabled field value.

func (*StorageClassInfo) GetEnabledOk

func (o *StorageClassInfo) GetEnabledOk() (*bool, bool)

GetEnabledOk returns a tuple with the Enabled field value and a boolean to check if the value has been set.

func (*StorageClassInfo) GetHostPath

func (o *StorageClassInfo) GetHostPath() string

GetHostPath returns the HostPath field value if set, zero value otherwise.

func (*StorageClassInfo) GetHostPathOk

func (o *StorageClassInfo) GetHostPathOk() (*string, bool)

GetHostPathOk returns a tuple with the HostPath field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StorageClassInfo) GetId

func (o *StorageClassInfo) GetId() string

GetId returns the Id field value.

func (*StorageClassInfo) GetIdOk

func (o *StorageClassInfo) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*StorageClassInfo) GetIsDefaultClass

func (o *StorageClassInfo) GetIsDefaultClass() bool

GetIsDefaultClass returns the IsDefaultClass field value.

func (*StorageClassInfo) GetIsDefaultClassOk

func (o *StorageClassInfo) GetIsDefaultClassOk() (*bool, bool)

GetIsDefaultClassOk returns a tuple with the IsDefaultClass field value and a boolean to check if the value has been set.

func (*StorageClassInfo) GetLabels

func (o *StorageClassInfo) GetLabels() map[string]string

GetLabels returns the Labels field value.

func (*StorageClassInfo) GetLabelsOk

func (o *StorageClassInfo) GetLabelsOk() (*map[string]string, bool)

GetLabelsOk returns a tuple with the Labels field value and a boolean to check if the value has been set.

func (*StorageClassInfo) GetMountOptions

func (o *StorageClassInfo) GetMountOptions() []string

GetMountOptions returns the MountOptions field value.

func (*StorageClassInfo) GetMountOptionsOk

func (o *StorageClassInfo) GetMountOptionsOk() (*[]string, bool)

GetMountOptionsOk returns a tuple with the MountOptions field value and a boolean to check if the value has been set.

func (*StorageClassInfo) GetName

func (o *StorageClassInfo) GetName() string

GetName returns the Name field value.

func (*StorageClassInfo) GetNameOk

func (o *StorageClassInfo) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*StorageClassInfo) GetParameters

func (o *StorageClassInfo) GetParameters() map[string]string

GetParameters returns the Parameters field value.

func (*StorageClassInfo) GetParametersOk

func (o *StorageClassInfo) GetParametersOk() (*map[string]string, bool)

GetParametersOk returns a tuple with the Parameters field value and a boolean to check if the value has been set.

func (*StorageClassInfo) GetProvisioner

func (o *StorageClassInfo) GetProvisioner() string

GetProvisioner returns the Provisioner field value.

func (*StorageClassInfo) GetProvisionerOk

func (o *StorageClassInfo) GetProvisionerOk() (*string, bool)

GetProvisionerOk returns a tuple with the Provisioner field value and a boolean to check if the value has been set.

func (*StorageClassInfo) GetPvcCount

func (o *StorageClassInfo) GetPvcCount() string

GetPvcCount returns the PvcCount field value.

func (*StorageClassInfo) GetPvcCountOk

func (o *StorageClassInfo) GetPvcCountOk() (*string, bool)

GetPvcCountOk returns a tuple with the PvcCount field value and a boolean to check if the value has been set.

func (*StorageClassInfo) GetReclaimPolicy

func (o *StorageClassInfo) GetReclaimPolicy() string

GetReclaimPolicy returns the ReclaimPolicy field value.

func (*StorageClassInfo) GetReclaimPolicyOk

func (o *StorageClassInfo) GetReclaimPolicyOk() (*string, bool)

GetReclaimPolicyOk returns a tuple with the ReclaimPolicy field value and a boolean to check if the value has been set.

func (*StorageClassInfo) GetStatsByNodeList

func (o *StorageClassInfo) GetStatsByNodeList() StorageClassInfoStatsByNodeList

GetStatsByNodeList returns the StatsByNodeList field value.

func (*StorageClassInfo) GetStatsByNodeListOk

func (o *StorageClassInfo) GetStatsByNodeListOk() (*StorageClassInfoStatsByNodeList, bool)

GetStatsByNodeListOk returns a tuple with the StatsByNodeList field value and a boolean to check if the value has been set.

func (*StorageClassInfo) GetType

func (o *StorageClassInfo) GetType() string

GetType returns the Type field value.

func (*StorageClassInfo) GetTypeOk

func (o *StorageClassInfo) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (*StorageClassInfo) GetUpdatedAt

func (o *StorageClassInfo) GetUpdatedAt() time.Time

GetUpdatedAt returns the UpdatedAt field value.

func (*StorageClassInfo) GetUpdatedAtOk

func (o *StorageClassInfo) GetUpdatedAtOk() (*time.Time, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value and a boolean to check if the value has been set.

func (*StorageClassInfo) GetVolumeBindingMode

func (o *StorageClassInfo) GetVolumeBindingMode() string

GetVolumeBindingMode returns the VolumeBindingMode field value.

func (*StorageClassInfo) GetVolumeBindingModeOk

func (o *StorageClassInfo) GetVolumeBindingModeOk() (*string, bool)

GetVolumeBindingModeOk returns a tuple with the VolumeBindingMode field value and a boolean to check if the value has been set.

func (*StorageClassInfo) HasHostPath

func (o *StorageClassInfo) HasHostPath() bool

HasHostPath returns a boolean if a field has been set.

func (StorageClassInfo) MarshalJSON

func (o StorageClassInfo) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*StorageClassInfo) SetAllowClone

func (o *StorageClassInfo) SetAllowClone(v bool)

SetAllowClone sets field value.

func (*StorageClassInfo) SetAllowSnapshot

func (o *StorageClassInfo) SetAllowSnapshot(v bool)

SetAllowSnapshot sets field value.

func (*StorageClassInfo) SetAllowVolumeExpansion

func (o *StorageClassInfo) SetAllowVolumeExpansion(v bool)

SetAllowVolumeExpansion sets field value.

func (*StorageClassInfo) SetAnnotations

func (o *StorageClassInfo) SetAnnotations(v map[string]string)

SetAnnotations sets field value.

func (*StorageClassInfo) SetCreatedAt

func (o *StorageClassInfo) SetCreatedAt(v time.Time)

SetCreatedAt sets field value.

func (*StorageClassInfo) SetCreationTimestamp

func (o *StorageClassInfo) SetCreationTimestamp(v string)

SetCreationTimestamp sets field value.

func (*StorageClassInfo) SetDescription

func (o *StorageClassInfo) SetDescription(v string)

SetDescription sets field value.

func (*StorageClassInfo) SetDisplayName

func (o *StorageClassInfo) SetDisplayName(v string)

SetDisplayName sets field value.

func (*StorageClassInfo) SetEnabled

func (o *StorageClassInfo) SetEnabled(v bool)

SetEnabled sets field value.

func (*StorageClassInfo) SetHostPath

func (o *StorageClassInfo) SetHostPath(v string)

SetHostPath gets a reference to the given string and assigns it to the HostPath field.

func (*StorageClassInfo) SetId

func (o *StorageClassInfo) SetId(v string)

SetId sets field value.

func (*StorageClassInfo) SetIsDefaultClass

func (o *StorageClassInfo) SetIsDefaultClass(v bool)

SetIsDefaultClass sets field value.

func (*StorageClassInfo) SetLabels

func (o *StorageClassInfo) SetLabels(v map[string]string)

SetLabels sets field value.

func (*StorageClassInfo) SetMountOptions

func (o *StorageClassInfo) SetMountOptions(v []string)

SetMountOptions sets field value.

func (*StorageClassInfo) SetName

func (o *StorageClassInfo) SetName(v string)

SetName sets field value.

func (*StorageClassInfo) SetParameters

func (o *StorageClassInfo) SetParameters(v map[string]string)

SetParameters sets field value.

func (*StorageClassInfo) SetProvisioner

func (o *StorageClassInfo) SetProvisioner(v string)

SetProvisioner sets field value.

func (*StorageClassInfo) SetPvcCount

func (o *StorageClassInfo) SetPvcCount(v string)

SetPvcCount sets field value.

func (*StorageClassInfo) SetReclaimPolicy

func (o *StorageClassInfo) SetReclaimPolicy(v string)

SetReclaimPolicy sets field value.

func (*StorageClassInfo) SetStatsByNodeList

func (o *StorageClassInfo) SetStatsByNodeList(v StorageClassInfoStatsByNodeList)

SetStatsByNodeList sets field value.

func (*StorageClassInfo) SetType

func (o *StorageClassInfo) SetType(v string)

SetType sets field value.

func (*StorageClassInfo) SetUpdatedAt

func (o *StorageClassInfo) SetUpdatedAt(v time.Time)

SetUpdatedAt sets field value.

func (*StorageClassInfo) SetVolumeBindingMode

func (o *StorageClassInfo) SetVolumeBindingMode(v string)

SetVolumeBindingMode sets field value.

func (*StorageClassInfo) UnmarshalJSON

func (o *StorageClassInfo) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type StorageClassInfoStatsByNodeList

type StorageClassInfoStatsByNodeList struct {
	// the list of storage volumes stats by node
	Items []StorageVolumeStatsByNode `json:"items"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

StorageClassInfoStatsByNodeList the List stands for stats for the storage volumes of nodes.

func NewStorageClassInfoStatsByNodeList

func NewStorageClassInfoStatsByNodeList(items []StorageVolumeStatsByNode) *StorageClassInfoStatsByNodeList

NewStorageClassInfoStatsByNodeList instantiates a new StorageClassInfoStatsByNodeList 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 NewStorageClassInfoStatsByNodeListWithDefaults

func NewStorageClassInfoStatsByNodeListWithDefaults() *StorageClassInfoStatsByNodeList

NewStorageClassInfoStatsByNodeListWithDefaults instantiates a new StorageClassInfoStatsByNodeList 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 (*StorageClassInfoStatsByNodeList) GetItems

GetItems returns the Items field value.

func (*StorageClassInfoStatsByNodeList) GetItemsOk

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (StorageClassInfoStatsByNodeList) MarshalJSON

func (o StorageClassInfoStatsByNodeList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*StorageClassInfoStatsByNodeList) SetItems

SetItems sets field value.

func (*StorageClassInfoStatsByNodeList) UnmarshalJSON

func (o *StorageClassInfoStatsByNodeList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type StorageClassList

type StorageClassList struct {
	// the list of storage classes
	Items []StorageClassInfo `json:"items"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

StorageClassList StorageClassList stands for stats for storage classes.

func NewStorageClassList

func NewStorageClassList(items []StorageClassInfo) *StorageClassList

NewStorageClassList instantiates a new StorageClassList 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 NewStorageClassListWithDefaults

func NewStorageClassListWithDefaults() *StorageClassList

NewStorageClassListWithDefaults instantiates a new StorageClassList 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 (*StorageClassList) GetItems

func (o *StorageClassList) GetItems() []StorageClassInfo

GetItems returns the Items field value.

func (*StorageClassList) GetItemsOk

func (o *StorageClassList) GetItemsOk() (*[]StorageClassInfo, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (StorageClassList) MarshalJSON

func (o StorageClassList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*StorageClassList) SetItems

func (o *StorageClassList) SetItems(v []StorageClassInfo)

SetItems sets field value.

func (*StorageClassList) UnmarshalJSON

func (o *StorageClassList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type StorageOption

type StorageOption struct {
	Title   LocalizedDescription `json:"title"`
	Name    string               `json:"name"`
	Min     int32                `json:"min"`
	Max     int32                `json:"max"`
	Default int32                `json:"default"`
	Step    int32                `json:"step"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewStorageOption

func NewStorageOption(title LocalizedDescription, name string, min int32, max int32, defaultVar int32, step int32) *StorageOption

NewStorageOption instantiates a new StorageOption 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 NewStorageOptionWithDefaults

func NewStorageOptionWithDefaults() *StorageOption

NewStorageOptionWithDefaults instantiates a new StorageOption 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 (*StorageOption) GetDefault

func (o *StorageOption) GetDefault() int32

GetDefault returns the Default field value.

func (*StorageOption) GetDefaultOk

func (o *StorageOption) GetDefaultOk() (*int32, bool)

GetDefaultOk returns a tuple with the Default field value and a boolean to check if the value has been set.

func (*StorageOption) GetMax

func (o *StorageOption) GetMax() int32

GetMax returns the Max field value.

func (*StorageOption) GetMaxOk

func (o *StorageOption) GetMaxOk() (*int32, bool)

GetMaxOk returns a tuple with the Max field value and a boolean to check if the value has been set.

func (*StorageOption) GetMin

func (o *StorageOption) GetMin() int32

GetMin returns the Min field value.

func (*StorageOption) GetMinOk

func (o *StorageOption) GetMinOk() (*int32, bool)

GetMinOk returns a tuple with the Min field value and a boolean to check if the value has been set.

func (*StorageOption) GetName

func (o *StorageOption) GetName() string

GetName returns the Name field value.

func (*StorageOption) GetNameOk

func (o *StorageOption) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*StorageOption) GetStep

func (o *StorageOption) GetStep() int32

GetStep returns the Step field value.

func (*StorageOption) GetStepOk

func (o *StorageOption) GetStepOk() (*int32, bool)

GetStepOk returns a tuple with the Step field value and a boolean to check if the value has been set.

func (*StorageOption) GetTitle

func (o *StorageOption) GetTitle() LocalizedDescription

GetTitle returns the Title field value.

func (*StorageOption) GetTitleOk

func (o *StorageOption) GetTitleOk() (*LocalizedDescription, bool)

GetTitleOk returns a tuple with the Title field value and a boolean to check if the value has been set.

func (StorageOption) MarshalJSON

func (o StorageOption) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*StorageOption) SetDefault

func (o *StorageOption) SetDefault(v int32)

SetDefault sets field value.

func (*StorageOption) SetMax

func (o *StorageOption) SetMax(v int32)

SetMax sets field value.

func (*StorageOption) SetMin

func (o *StorageOption) SetMin(v int32)

SetMin sets field value.

func (*StorageOption) SetName

func (o *StorageOption) SetName(v string)

SetName sets field value.

func (*StorageOption) SetStep

func (o *StorageOption) SetStep(v int32)

SetStep sets field value.

func (*StorageOption) SetTitle

func (o *StorageOption) SetTitle(v LocalizedDescription)

SetTitle sets field value.

func (*StorageOption) UnmarshalJSON

func (o *StorageOption) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type StorageVolumeStatsByNode

type StorageVolumeStatsByNode struct {
	// the name of the node
	NodeName *string `json:"nodeName,omitempty"`
	// the status of the node
	NodeStatus *string `json:"nodeStatus,omitempty"`
	// the number of PVCs on the node
	VolumeNum *string `json:"VolumeNum,omitempty"`
	// the sum of capacity of PVC on the node
	Capacity *string `json:"capacity,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

StorageVolumeStatsByNode storageVolumeStatsByNode provides detailed information about storage volumes of nodes.

func NewStorageVolumeStatsByNode

func NewStorageVolumeStatsByNode() *StorageVolumeStatsByNode

NewStorageVolumeStatsByNode instantiates a new StorageVolumeStatsByNode 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 NewStorageVolumeStatsByNodeWithDefaults

func NewStorageVolumeStatsByNodeWithDefaults() *StorageVolumeStatsByNode

NewStorageVolumeStatsByNodeWithDefaults instantiates a new StorageVolumeStatsByNode 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 (*StorageVolumeStatsByNode) GetCapacity

func (o *StorageVolumeStatsByNode) GetCapacity() string

GetCapacity returns the Capacity field value if set, zero value otherwise.

func (*StorageVolumeStatsByNode) GetCapacityOk

func (o *StorageVolumeStatsByNode) GetCapacityOk() (*string, bool)

GetCapacityOk returns a tuple with the Capacity field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StorageVolumeStatsByNode) GetNodeName

func (o *StorageVolumeStatsByNode) GetNodeName() string

GetNodeName returns the NodeName field value if set, zero value otherwise.

func (*StorageVolumeStatsByNode) GetNodeNameOk

func (o *StorageVolumeStatsByNode) GetNodeNameOk() (*string, bool)

GetNodeNameOk returns a tuple with the NodeName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StorageVolumeStatsByNode) GetNodeStatus

func (o *StorageVolumeStatsByNode) GetNodeStatus() string

GetNodeStatus returns the NodeStatus field value if set, zero value otherwise.

func (*StorageVolumeStatsByNode) GetNodeStatusOk

func (o *StorageVolumeStatsByNode) GetNodeStatusOk() (*string, bool)

GetNodeStatusOk returns a tuple with the NodeStatus field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StorageVolumeStatsByNode) GetVolumeNum

func (o *StorageVolumeStatsByNode) GetVolumeNum() string

GetVolumeNum returns the VolumeNum field value if set, zero value otherwise.

func (*StorageVolumeStatsByNode) GetVolumeNumOk

func (o *StorageVolumeStatsByNode) GetVolumeNumOk() (*string, bool)

GetVolumeNumOk returns a tuple with the VolumeNum field value if set, nil otherwise and a boolean to check if the value has been set.

func (*StorageVolumeStatsByNode) HasCapacity

func (o *StorageVolumeStatsByNode) HasCapacity() bool

HasCapacity returns a boolean if a field has been set.

func (*StorageVolumeStatsByNode) HasNodeName

func (o *StorageVolumeStatsByNode) HasNodeName() bool

HasNodeName returns a boolean if a field has been set.

func (*StorageVolumeStatsByNode) HasNodeStatus

func (o *StorageVolumeStatsByNode) HasNodeStatus() bool

HasNodeStatus returns a boolean if a field has been set.

func (*StorageVolumeStatsByNode) HasVolumeNum

func (o *StorageVolumeStatsByNode) HasVolumeNum() bool

HasVolumeNum returns a boolean if a field has been set.

func (StorageVolumeStatsByNode) MarshalJSON

func (o StorageVolumeStatsByNode) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*StorageVolumeStatsByNode) SetCapacity

func (o *StorageVolumeStatsByNode) SetCapacity(v string)

SetCapacity gets a reference to the given string and assigns it to the Capacity field.

func (*StorageVolumeStatsByNode) SetNodeName

func (o *StorageVolumeStatsByNode) SetNodeName(v string)

SetNodeName gets a reference to the given string and assigns it to the NodeName field.

func (*StorageVolumeStatsByNode) SetNodeStatus

func (o *StorageVolumeStatsByNode) SetNodeStatus(v string)

SetNodeStatus gets a reference to the given string and assigns it to the NodeStatus field.

func (*StorageVolumeStatsByNode) SetVolumeNum

func (o *StorageVolumeStatsByNode) SetVolumeNum(v string)

SetVolumeNum gets a reference to the given string and assigns it to the VolumeNum field.

func (*StorageVolumeStatsByNode) UnmarshalJSON

func (o *StorageVolumeStatsByNode) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type Sysbench

type Sysbench struct {
	// Step of sysbench
	Step *SysbenchStep `json:"step,omitempty"`
	// the cpu limit for test container
	LimitCpu *string `json:"limitCpu,omitempty"`
	// the memory limit for test container
	LimitMemory *string `json:"limitMemory,omitempty"`
	// the cpu request for test container
	RequestCpu *string `json:"requestCpu,omitempty"`
	// the memory request for test container
	RequestMemory *string `json:"requestMemory,omitempty"`
	// the name of benchmark
	Name *string `json:"name,omitempty"`
	// the cluster name
	Cluster string `json:"cluster"`
	// the database name
	Database string `json:"database"`
	// Number of threads to use
	Threads *int32 `json:"threads,omitempty"`
	// the seconds of test duration
	Duration *int32 `json:"duration,omitempty"`
	// Number of rows per table
	TableSize *int32 `json:"tableSize,omitempty"`
	// Number of tables
	TableNum *int32 `json:"tableNum,omitempty"`
	// Test type for sysbench
	TestType *SysbenchTestType `json:"testType,omitempty"`
	// Percentage of reads, only used for oltp_read_write_pct
	ReadPercent *int32 `json:"readPercent,omitempty"`
	// Percentage of writes, only used for oltp_read_write_pct
	WritePercent *int32 `json:"writePercent,omitempty"`
	// Username for database
	Username string `json:"username"`
	// Password for database
	Password string `json:"password"`
	// Address for database
	Address string `json:"address"`
	// Extra arguments for sysbench
	ExtraArgs *string `json:"extraArgs,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

Sysbench sysbench is the sysbench benchmark object

func NewSysbench

func NewSysbench(cluster string, database string, username string, password string, address string) *Sysbench

NewSysbench instantiates a new Sysbench 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 NewSysbenchWithDefaults

func NewSysbenchWithDefaults() *Sysbench

NewSysbenchWithDefaults instantiates a new Sysbench 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 (*Sysbench) GetAddress

func (o *Sysbench) GetAddress() string

GetAddress returns the Address field value.

func (*Sysbench) GetAddressOk

func (o *Sysbench) GetAddressOk() (*string, bool)

GetAddressOk returns a tuple with the Address field value and a boolean to check if the value has been set.

func (*Sysbench) GetCluster

func (o *Sysbench) GetCluster() string

GetCluster returns the Cluster field value.

func (*Sysbench) GetClusterOk

func (o *Sysbench) GetClusterOk() (*string, bool)

GetClusterOk returns a tuple with the Cluster field value and a boolean to check if the value has been set.

func (*Sysbench) GetDatabase

func (o *Sysbench) GetDatabase() string

GetDatabase returns the Database field value.

func (*Sysbench) GetDatabaseOk

func (o *Sysbench) GetDatabaseOk() (*string, bool)

GetDatabaseOk returns a tuple with the Database field value and a boolean to check if the value has been set.

func (*Sysbench) GetDuration

func (o *Sysbench) GetDuration() int32

GetDuration returns the Duration field value if set, zero value otherwise.

func (*Sysbench) GetDurationOk

func (o *Sysbench) GetDurationOk() (*int32, bool)

GetDurationOk returns a tuple with the Duration field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Sysbench) GetExtraArgs

func (o *Sysbench) GetExtraArgs() string

GetExtraArgs returns the ExtraArgs field value if set, zero value otherwise.

func (*Sysbench) GetExtraArgsOk

func (o *Sysbench) GetExtraArgsOk() (*string, bool)

GetExtraArgsOk returns a tuple with the ExtraArgs field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Sysbench) GetLimitCpu

func (o *Sysbench) GetLimitCpu() string

GetLimitCpu returns the LimitCpu field value if set, zero value otherwise.

func (*Sysbench) GetLimitCpuOk

func (o *Sysbench) GetLimitCpuOk() (*string, bool)

GetLimitCpuOk returns a tuple with the LimitCpu field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Sysbench) GetLimitMemory

func (o *Sysbench) GetLimitMemory() string

GetLimitMemory returns the LimitMemory field value if set, zero value otherwise.

func (*Sysbench) GetLimitMemoryOk

func (o *Sysbench) GetLimitMemoryOk() (*string, bool)

GetLimitMemoryOk returns a tuple with the LimitMemory field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Sysbench) GetName

func (o *Sysbench) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*Sysbench) GetNameOk

func (o *Sysbench) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Sysbench) GetPassword

func (o *Sysbench) GetPassword() string

GetPassword returns the Password field value.

func (*Sysbench) GetPasswordOk

func (o *Sysbench) GetPasswordOk() (*string, bool)

GetPasswordOk returns a tuple with the Password field value and a boolean to check if the value has been set.

func (*Sysbench) GetReadPercent

func (o *Sysbench) GetReadPercent() int32

GetReadPercent returns the ReadPercent field value if set, zero value otherwise.

func (*Sysbench) GetReadPercentOk

func (o *Sysbench) GetReadPercentOk() (*int32, bool)

GetReadPercentOk returns a tuple with the ReadPercent field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Sysbench) GetRequestCpu

func (o *Sysbench) GetRequestCpu() string

GetRequestCpu returns the RequestCpu field value if set, zero value otherwise.

func (*Sysbench) GetRequestCpuOk

func (o *Sysbench) GetRequestCpuOk() (*string, bool)

GetRequestCpuOk returns a tuple with the RequestCpu field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Sysbench) GetRequestMemory

func (o *Sysbench) GetRequestMemory() string

GetRequestMemory returns the RequestMemory field value if set, zero value otherwise.

func (*Sysbench) GetRequestMemoryOk

func (o *Sysbench) GetRequestMemoryOk() (*string, bool)

GetRequestMemoryOk returns a tuple with the RequestMemory field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Sysbench) GetStep

func (o *Sysbench) GetStep() SysbenchStep

GetStep returns the Step field value if set, zero value otherwise.

func (*Sysbench) GetStepOk

func (o *Sysbench) GetStepOk() (*SysbenchStep, bool)

GetStepOk returns a tuple with the Step field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Sysbench) GetTableNum

func (o *Sysbench) GetTableNum() int32

GetTableNum returns the TableNum field value if set, zero value otherwise.

func (*Sysbench) GetTableNumOk

func (o *Sysbench) GetTableNumOk() (*int32, bool)

GetTableNumOk returns a tuple with the TableNum field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Sysbench) GetTableSize

func (o *Sysbench) GetTableSize() int32

GetTableSize returns the TableSize field value if set, zero value otherwise.

func (*Sysbench) GetTableSizeOk

func (o *Sysbench) GetTableSizeOk() (*int32, bool)

GetTableSizeOk returns a tuple with the TableSize field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Sysbench) GetTestType

func (o *Sysbench) GetTestType() SysbenchTestType

GetTestType returns the TestType field value if set, zero value otherwise.

func (*Sysbench) GetTestTypeOk

func (o *Sysbench) GetTestTypeOk() (*SysbenchTestType, bool)

GetTestTypeOk returns a tuple with the TestType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Sysbench) GetThreads

func (o *Sysbench) GetThreads() int32

GetThreads returns the Threads field value if set, zero value otherwise.

func (*Sysbench) GetThreadsOk

func (o *Sysbench) GetThreadsOk() (*int32, bool)

GetThreadsOk returns a tuple with the Threads field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Sysbench) GetUsername

func (o *Sysbench) GetUsername() string

GetUsername returns the Username field value.

func (*Sysbench) GetUsernameOk

func (o *Sysbench) GetUsernameOk() (*string, bool)

GetUsernameOk returns a tuple with the Username field value and a boolean to check if the value has been set.

func (*Sysbench) GetWritePercent

func (o *Sysbench) GetWritePercent() int32

GetWritePercent returns the WritePercent field value if set, zero value otherwise.

func (*Sysbench) GetWritePercentOk

func (o *Sysbench) GetWritePercentOk() (*int32, bool)

GetWritePercentOk returns a tuple with the WritePercent field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Sysbench) HasDuration

func (o *Sysbench) HasDuration() bool

HasDuration returns a boolean if a field has been set.

func (*Sysbench) HasExtraArgs

func (o *Sysbench) HasExtraArgs() bool

HasExtraArgs returns a boolean if a field has been set.

func (*Sysbench) HasLimitCpu

func (o *Sysbench) HasLimitCpu() bool

HasLimitCpu returns a boolean if a field has been set.

func (*Sysbench) HasLimitMemory

func (o *Sysbench) HasLimitMemory() bool

HasLimitMemory returns a boolean if a field has been set.

func (*Sysbench) HasName

func (o *Sysbench) HasName() bool

HasName returns a boolean if a field has been set.

func (*Sysbench) HasReadPercent

func (o *Sysbench) HasReadPercent() bool

HasReadPercent returns a boolean if a field has been set.

func (*Sysbench) HasRequestCpu

func (o *Sysbench) HasRequestCpu() bool

HasRequestCpu returns a boolean if a field has been set.

func (*Sysbench) HasRequestMemory

func (o *Sysbench) HasRequestMemory() bool

HasRequestMemory returns a boolean if a field has been set.

func (*Sysbench) HasStep

func (o *Sysbench) HasStep() bool

HasStep returns a boolean if a field has been set.

func (*Sysbench) HasTableNum

func (o *Sysbench) HasTableNum() bool

HasTableNum returns a boolean if a field has been set.

func (*Sysbench) HasTableSize

func (o *Sysbench) HasTableSize() bool

HasTableSize returns a boolean if a field has been set.

func (*Sysbench) HasTestType

func (o *Sysbench) HasTestType() bool

HasTestType returns a boolean if a field has been set.

func (*Sysbench) HasThreads

func (o *Sysbench) HasThreads() bool

HasThreads returns a boolean if a field has been set.

func (*Sysbench) HasWritePercent

func (o *Sysbench) HasWritePercent() bool

HasWritePercent returns a boolean if a field has been set.

func (Sysbench) MarshalJSON

func (o Sysbench) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*Sysbench) SetAddress

func (o *Sysbench) SetAddress(v string)

SetAddress sets field value.

func (*Sysbench) SetCluster

func (o *Sysbench) SetCluster(v string)

SetCluster sets field value.

func (*Sysbench) SetDatabase

func (o *Sysbench) SetDatabase(v string)

SetDatabase sets field value.

func (*Sysbench) SetDuration

func (o *Sysbench) SetDuration(v int32)

SetDuration gets a reference to the given int32 and assigns it to the Duration field.

func (*Sysbench) SetExtraArgs

func (o *Sysbench) SetExtraArgs(v string)

SetExtraArgs gets a reference to the given string and assigns it to the ExtraArgs field.

func (*Sysbench) SetLimitCpu

func (o *Sysbench) SetLimitCpu(v string)

SetLimitCpu gets a reference to the given string and assigns it to the LimitCpu field.

func (*Sysbench) SetLimitMemory

func (o *Sysbench) SetLimitMemory(v string)

SetLimitMemory gets a reference to the given string and assigns it to the LimitMemory field.

func (*Sysbench) SetName

func (o *Sysbench) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*Sysbench) SetPassword

func (o *Sysbench) SetPassword(v string)

SetPassword sets field value.

func (*Sysbench) SetReadPercent

func (o *Sysbench) SetReadPercent(v int32)

SetReadPercent gets a reference to the given int32 and assigns it to the ReadPercent field.

func (*Sysbench) SetRequestCpu

func (o *Sysbench) SetRequestCpu(v string)

SetRequestCpu gets a reference to the given string and assigns it to the RequestCpu field.

func (*Sysbench) SetRequestMemory

func (o *Sysbench) SetRequestMemory(v string)

SetRequestMemory gets a reference to the given string and assigns it to the RequestMemory field.

func (*Sysbench) SetStep

func (o *Sysbench) SetStep(v SysbenchStep)

SetStep gets a reference to the given SysbenchStep and assigns it to the Step field.

func (*Sysbench) SetTableNum

func (o *Sysbench) SetTableNum(v int32)

SetTableNum gets a reference to the given int32 and assigns it to the TableNum field.

func (*Sysbench) SetTableSize

func (o *Sysbench) SetTableSize(v int32)

SetTableSize gets a reference to the given int32 and assigns it to the TableSize field.

func (*Sysbench) SetTestType

func (o *Sysbench) SetTestType(v SysbenchTestType)

SetTestType gets a reference to the given SysbenchTestType and assigns it to the TestType field.

func (*Sysbench) SetThreads

func (o *Sysbench) SetThreads(v int32)

SetThreads gets a reference to the given int32 and assigns it to the Threads field.

func (*Sysbench) SetUsername

func (o *Sysbench) SetUsername(v string)

SetUsername sets field value.

func (*Sysbench) SetWritePercent

func (o *Sysbench) SetWritePercent(v int32)

SetWritePercent gets a reference to the given int32 and assigns it to the WritePercent field.

func (*Sysbench) UnmarshalJSON

func (o *Sysbench) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type SysbenchStep

type SysbenchStep string

SysbenchStep Step of sysbench

const (
	SysbenchStepPrepare SysbenchStep = "prepare"
	SysbenchStepRun     SysbenchStep = "run"
	SysbenchStepCleanup SysbenchStep = "cleanup"
	SysbenchStepAll     SysbenchStep = "all"
)

List of SysbenchStep.

func NewSysbenchStepFromValue

func NewSysbenchStepFromValue(v string) (*SysbenchStep, error)

NewSysbenchStepFromValue returns a pointer to a valid SysbenchStep for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*SysbenchStep) GetAllowedValues

func (v *SysbenchStep) GetAllowedValues() []SysbenchStep

GetAllowedValues returns the list of possible values.

func (SysbenchStep) IsValid

func (v SysbenchStep) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (SysbenchStep) Ptr

func (v SysbenchStep) Ptr() *SysbenchStep

Ptr returns reference to SysbenchStep value.

func (*SysbenchStep) UnmarshalJSON

func (v *SysbenchStep) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type SysbenchTestType

type SysbenchTestType string

SysbenchTestType Test type for sysbench

const (
	SysbenchTestTypeOltpDelete         SysbenchTestType = "oltp_delete"
	SysbenchTestTypeOltpInsert         SysbenchTestType = "oltp_insert"
	SysbenchTestTypeOltpPointSelect    SysbenchTestType = "oltp_point_select"
	SysbenchTestTypeOltpReadOnly       SysbenchTestType = "oltp_read_only"
	SysbenchTestTypeOltpReadWrite      SysbenchTestType = "oltp_read_write"
	SysbenchTestTypeOltpUpdateIndex    SysbenchTestType = "oltp_update_index"
	SysbenchTestTypeOltpUpdateNonIndex SysbenchTestType = "oltp_update_non_index"
	SysbenchTestTypeOltpWriteOnly      SysbenchTestType = "oltp_write_only"
	SysbenchTestTypeSelectRandomPoints SysbenchTestType = "select_random_points"
	SysbenchTestTypeSelectRandomRanges SysbenchTestType = "select_random_ranges"
	SysbenchTestTypeBulkInsert         SysbenchTestType = "bulk_insert"
	SysbenchTestTypeOltpReadWritePct   SysbenchTestType = "oltp_read_write_pct"
)

List of SysbenchTestType.

func NewSysbenchTestTypeFromValue

func NewSysbenchTestTypeFromValue(v string) (*SysbenchTestType, error)

NewSysbenchTestTypeFromValue returns a pointer to a valid SysbenchTestType for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*SysbenchTestType) GetAllowedValues

func (v *SysbenchTestType) GetAllowedValues() []SysbenchTestType

GetAllowedValues returns the list of possible values.

func (SysbenchTestType) IsValid

func (v SysbenchTestType) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (SysbenchTestType) Ptr

Ptr returns reference to SysbenchTestType value.

func (*SysbenchTestType) UnmarshalJSON

func (v *SysbenchTestType) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type Tag

type Tag struct {
	// The id of the tag
	Id string `json:"id"`
	// the key of the tag
	Key *string `json:"key,omitempty"`
	// The value corresponding to the key
	Value *string `json:"value,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

Tag tag info

func NewTag

func NewTag(id string) *Tag

NewTag instantiates a new Tag 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 NewTagWithDefaults

func NewTagWithDefaults() *Tag

NewTagWithDefaults instantiates a new Tag 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 (*Tag) GetId

func (o *Tag) GetId() string

GetId returns the Id field value.

func (*Tag) GetIdOk

func (o *Tag) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*Tag) GetKey

func (o *Tag) GetKey() string

GetKey returns the Key field value if set, zero value otherwise.

func (*Tag) GetKeyOk

func (o *Tag) GetKeyOk() (*string, bool)

GetKeyOk returns a tuple with the Key field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Tag) GetValue

func (o *Tag) GetValue() string

GetValue returns the Value field value if set, zero value otherwise.

func (*Tag) GetValueOk

func (o *Tag) GetValueOk() (*string, bool)

GetValueOk returns a tuple with the Value field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Tag) HasKey

func (o *Tag) HasKey() bool

HasKey returns a boolean if a field has been set.

func (*Tag) HasValue

func (o *Tag) HasValue() bool

HasValue returns a boolean if a field has been set.

func (Tag) MarshalJSON

func (o Tag) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*Tag) SetId

func (o *Tag) SetId(v string)

SetId sets field value.

func (*Tag) SetKey

func (o *Tag) SetKey(v string)

SetKey gets a reference to the given string and assigns it to the Key field.

func (*Tag) SetValue

func (o *Tag) SetValue(v string)

SetValue gets a reference to the given string and assigns it to the Value field.

func (*Tag) UnmarshalJSON

func (o *Tag) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type TagApi

type TagApi common.Service

TagApi service type

func NewTagApi

func NewTagApi(client *common.APIClient) *TagApi

NewTagApi Returns NewTagApi.

func (*TagApi) CreateTag

func (a *TagApi) CreateTag(ctx _context.Context, orgName string, body interface{}) (TagCreate, *_nethttp.Response, error)

CreateTag Create cluster tags. create tag

func (*TagApi) DeleteTags

func (a *TagApi) DeleteTags(ctx _context.Context, orgName string, tagId string) (*_nethttp.Response, error)

DeleteTags Delete tag. delete tag

func (*TagApi) GetTags

func (a *TagApi) GetTags(ctx _context.Context, orgName string, clusterIds string) ([]TagCluster, *_nethttp.Response, error)

GetTags Get cluster tags.

func (*TagApi) ListOrgTags

func (a *TagApi) ListOrgTags(ctx _context.Context, orgName string) (OrgTagsList, *_nethttp.Response, error)

ListOrgTags List tags by organization name. List tags by organization name.

func (*TagApi) UpdateTag

func (a *TagApi) UpdateTag(ctx _context.Context, orgName string, tagId string, tagUpdate TagUpdate) (Tag, *_nethttp.Response, error)

UpdateTag . Update tags

type TagCluster

type TagCluster struct {
	// The cluster id corresponding to the tag
	ClusterId *string `json:"clusterId,omitempty"`
	Tags      []Tag   `json:"tags,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewTagCluster

func NewTagCluster() *TagCluster

NewTagCluster instantiates a new TagCluster 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 NewTagClusterWithDefaults

func NewTagClusterWithDefaults() *TagCluster

NewTagClusterWithDefaults instantiates a new TagCluster 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 (*TagCluster) GetClusterId

func (o *TagCluster) GetClusterId() string

GetClusterId returns the ClusterId field value if set, zero value otherwise.

func (*TagCluster) GetClusterIdOk

func (o *TagCluster) GetClusterIdOk() (*string, bool)

GetClusterIdOk returns a tuple with the ClusterId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TagCluster) GetTags

func (o *TagCluster) GetTags() []Tag

GetTags returns the Tags field value if set, zero value otherwise.

func (*TagCluster) GetTagsOk

func (o *TagCluster) GetTagsOk() (*[]Tag, bool)

GetTagsOk returns a tuple with the Tags field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TagCluster) HasClusterId

func (o *TagCluster) HasClusterId() bool

HasClusterId returns a boolean if a field has been set.

func (*TagCluster) HasTags

func (o *TagCluster) HasTags() bool

HasTags returns a boolean if a field has been set.

func (TagCluster) MarshalJSON

func (o TagCluster) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*TagCluster) SetClusterId

func (o *TagCluster) SetClusterId(v string)

SetClusterId gets a reference to the given string and assigns it to the ClusterId field.

func (*TagCluster) SetTags

func (o *TagCluster) SetTags(v []Tag)

SetTags gets a reference to the given []Tag and assigns it to the Tags field.

func (*TagCluster) UnmarshalJSON

func (o *TagCluster) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type TagCreate

type TagCreate struct {
	// The cluster id corresponding to the tag
	ClusterId string `json:"clusterId"`
	// The key value pair of the tag needed to create
	Items []TagCreateItemsItem `json:"items"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

TagCreate Tag create

func NewTagCreate

func NewTagCreate(clusterId string, items []TagCreateItemsItem) *TagCreate

NewTagCreate instantiates a new TagCreate 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 NewTagCreateWithDefaults

func NewTagCreateWithDefaults() *TagCreate

NewTagCreateWithDefaults instantiates a new TagCreate 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 (*TagCreate) GetClusterId

func (o *TagCreate) GetClusterId() string

GetClusterId returns the ClusterId field value.

func (*TagCreate) GetClusterIdOk

func (o *TagCreate) GetClusterIdOk() (*string, bool)

GetClusterIdOk returns a tuple with the ClusterId field value and a boolean to check if the value has been set.

func (*TagCreate) GetItems

func (o *TagCreate) GetItems() []TagCreateItemsItem

GetItems returns the Items field value.

func (*TagCreate) GetItemsOk

func (o *TagCreate) GetItemsOk() (*[]TagCreateItemsItem, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set.

func (TagCreate) MarshalJSON

func (o TagCreate) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*TagCreate) SetClusterId

func (o *TagCreate) SetClusterId(v string)

SetClusterId sets field value.

func (*TagCreate) SetItems

func (o *TagCreate) SetItems(v []TagCreateItemsItem)

SetItems sets field value.

func (*TagCreate) UnmarshalJSON

func (o *TagCreate) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type TagCreateItemsItem

type TagCreateItemsItem struct {
	Id    *string `json:"id,omitempty"`
	Key   string  `json:"key"`
	Value string  `json:"value"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewTagCreateItemsItem

func NewTagCreateItemsItem(key string, value string) *TagCreateItemsItem

NewTagCreateItemsItem instantiates a new TagCreateItemsItem 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 NewTagCreateItemsItemWithDefaults

func NewTagCreateItemsItemWithDefaults() *TagCreateItemsItem

NewTagCreateItemsItemWithDefaults instantiates a new TagCreateItemsItem 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 (*TagCreateItemsItem) GetId

func (o *TagCreateItemsItem) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*TagCreateItemsItem) GetIdOk

func (o *TagCreateItemsItem) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TagCreateItemsItem) GetKey

func (o *TagCreateItemsItem) GetKey() string

GetKey returns the Key field value.

func (*TagCreateItemsItem) GetKeyOk

func (o *TagCreateItemsItem) GetKeyOk() (*string, bool)

GetKeyOk returns a tuple with the Key field value and a boolean to check if the value has been set.

func (*TagCreateItemsItem) GetValue

func (o *TagCreateItemsItem) GetValue() string

GetValue returns the Value field value.

func (*TagCreateItemsItem) GetValueOk

func (o *TagCreateItemsItem) GetValueOk() (*string, bool)

GetValueOk returns a tuple with the Value field value and a boolean to check if the value has been set.

func (*TagCreateItemsItem) HasId

func (o *TagCreateItemsItem) HasId() bool

HasId returns a boolean if a field has been set.

func (TagCreateItemsItem) MarshalJSON

func (o TagCreateItemsItem) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*TagCreateItemsItem) SetId

func (o *TagCreateItemsItem) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*TagCreateItemsItem) SetKey

func (o *TagCreateItemsItem) SetKey(v string)

SetKey sets field value.

func (*TagCreateItemsItem) SetValue

func (o *TagCreateItemsItem) SetValue(v string)

SetValue sets field value.

func (*TagCreateItemsItem) UnmarshalJSON

func (o *TagCreateItemsItem) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type TagUpdate

type TagUpdate struct {
	// The key of the tag
	Key string `json:"key"`
	// the value corresponding th the key
	Value string `json:"value"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

TagUpdate Tag update

func NewTagUpdate

func NewTagUpdate(key string, value string) *TagUpdate

NewTagUpdate instantiates a new TagUpdate 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 NewTagUpdateWithDefaults

func NewTagUpdateWithDefaults() *TagUpdate

NewTagUpdateWithDefaults instantiates a new TagUpdate 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 (*TagUpdate) GetKey

func (o *TagUpdate) GetKey() string

GetKey returns the Key field value.

func (*TagUpdate) GetKeyOk

func (o *TagUpdate) GetKeyOk() (*string, bool)

GetKeyOk returns a tuple with the Key field value and a boolean to check if the value has been set.

func (*TagUpdate) GetValue

func (o *TagUpdate) GetValue() string

GetValue returns the Value field value.

func (*TagUpdate) GetValueOk

func (o *TagUpdate) GetValueOk() (*string, bool)

GetValueOk returns a tuple with the Value field value and a boolean to check if the value has been set.

func (TagUpdate) MarshalJSON

func (o TagUpdate) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*TagUpdate) SetKey

func (o *TagUpdate) SetKey(v string)

SetKey sets field value.

func (*TagUpdate) SetValue

func (o *TagUpdate) SetValue(v string)

SetValue sets field value.

func (*TagUpdate) UnmarshalJSON

func (o *TagUpdate) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type Tenant

type Tenant struct {
	Id               *string   `json:"id,omitempty"`
	Name             *string   `json:"name,omitempty"`
	Mode             *string   `json:"mode,omitempty"`
	CreateAt         *string   `json:"create_at,omitempty"`
	Role             *string   `json:"role,omitempty"`
	PrimaryZone      *string   `json:"primary_zone,omitempty"`
	Status           *string   `json:"status,omitempty"`
	PrimaryZoneProxy *string   `json:"primary_zone_proxy,omitempty"`
	ChartSet         *string   `json:"chart_set,omitempty"`
	Resource         *string   `json:"resource,omitempty"`
	Cpu              *CPU      `json:"cpu,omitempty"`
	Memory           *Memory   `json:"memory,omitempty"`
	LogDisk          *LogDisk  `json:"log_disk,omitempty"`
	DataDisk         *DataDisk `json:"data_disk,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewTenant

func NewTenant() *Tenant

NewTenant instantiates a new Tenant 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 NewTenantWithDefaults

func NewTenantWithDefaults() *Tenant

NewTenantWithDefaults instantiates a new Tenant 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 (*Tenant) GetChartSet

func (o *Tenant) GetChartSet() string

GetChartSet returns the ChartSet field value if set, zero value otherwise.

func (*Tenant) GetChartSetOk

func (o *Tenant) GetChartSetOk() (*string, bool)

GetChartSetOk returns a tuple with the ChartSet field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Tenant) GetCpu

func (o *Tenant) GetCpu() CPU

GetCpu returns the Cpu field value if set, zero value otherwise.

func (*Tenant) GetCpuOk

func (o *Tenant) GetCpuOk() (*CPU, bool)

GetCpuOk returns a tuple with the Cpu field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Tenant) GetCreateAt

func (o *Tenant) GetCreateAt() string

GetCreateAt returns the CreateAt field value if set, zero value otherwise.

func (*Tenant) GetCreateAtOk

func (o *Tenant) GetCreateAtOk() (*string, bool)

GetCreateAtOk returns a tuple with the CreateAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Tenant) GetDataDisk

func (o *Tenant) GetDataDisk() DataDisk

GetDataDisk returns the DataDisk field value if set, zero value otherwise.

func (*Tenant) GetDataDiskOk

func (o *Tenant) GetDataDiskOk() (*DataDisk, bool)

GetDataDiskOk returns a tuple with the DataDisk field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Tenant) GetId

func (o *Tenant) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*Tenant) GetIdOk

func (o *Tenant) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Tenant) GetLogDisk

func (o *Tenant) GetLogDisk() LogDisk

GetLogDisk returns the LogDisk field value if set, zero value otherwise.

func (*Tenant) GetLogDiskOk

func (o *Tenant) GetLogDiskOk() (*LogDisk, bool)

GetLogDiskOk returns a tuple with the LogDisk field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Tenant) GetMemory

func (o *Tenant) GetMemory() Memory

GetMemory returns the Memory field value if set, zero value otherwise.

func (*Tenant) GetMemoryOk

func (o *Tenant) GetMemoryOk() (*Memory, bool)

GetMemoryOk returns a tuple with the Memory field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Tenant) GetMode

func (o *Tenant) GetMode() string

GetMode returns the Mode field value if set, zero value otherwise.

func (*Tenant) GetModeOk

func (o *Tenant) GetModeOk() (*string, bool)

GetModeOk returns a tuple with the Mode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Tenant) GetName

func (o *Tenant) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*Tenant) GetNameOk

func (o *Tenant) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Tenant) GetPrimaryZone

func (o *Tenant) GetPrimaryZone() string

GetPrimaryZone returns the PrimaryZone field value if set, zero value otherwise.

func (*Tenant) GetPrimaryZoneOk

func (o *Tenant) GetPrimaryZoneOk() (*string, bool)

GetPrimaryZoneOk returns a tuple with the PrimaryZone field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Tenant) GetPrimaryZoneProxy

func (o *Tenant) GetPrimaryZoneProxy() string

GetPrimaryZoneProxy returns the PrimaryZoneProxy field value if set, zero value otherwise.

func (*Tenant) GetPrimaryZoneProxyOk

func (o *Tenant) GetPrimaryZoneProxyOk() (*string, bool)

GetPrimaryZoneProxyOk returns a tuple with the PrimaryZoneProxy field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Tenant) GetResource

func (o *Tenant) GetResource() string

GetResource returns the Resource field value if set, zero value otherwise.

func (*Tenant) GetResourceOk

func (o *Tenant) GetResourceOk() (*string, bool)

GetResourceOk returns a tuple with the Resource field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Tenant) GetRole

func (o *Tenant) GetRole() string

GetRole returns the Role field value if set, zero value otherwise.

func (*Tenant) GetRoleOk

func (o *Tenant) GetRoleOk() (*string, bool)

GetRoleOk returns a tuple with the Role field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Tenant) GetStatus

func (o *Tenant) GetStatus() string

GetStatus returns the Status field value if set, zero value otherwise.

func (*Tenant) GetStatusOk

func (o *Tenant) GetStatusOk() (*string, bool)

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 (*Tenant) HasChartSet

func (o *Tenant) HasChartSet() bool

HasChartSet returns a boolean if a field has been set.

func (*Tenant) HasCpu

func (o *Tenant) HasCpu() bool

HasCpu returns a boolean if a field has been set.

func (*Tenant) HasCreateAt

func (o *Tenant) HasCreateAt() bool

HasCreateAt returns a boolean if a field has been set.

func (*Tenant) HasDataDisk

func (o *Tenant) HasDataDisk() bool

HasDataDisk returns a boolean if a field has been set.

func (*Tenant) HasId

func (o *Tenant) HasId() bool

HasId returns a boolean if a field has been set.

func (*Tenant) HasLogDisk

func (o *Tenant) HasLogDisk() bool

HasLogDisk returns a boolean if a field has been set.

func (*Tenant) HasMemory

func (o *Tenant) HasMemory() bool

HasMemory returns a boolean if a field has been set.

func (*Tenant) HasMode

func (o *Tenant) HasMode() bool

HasMode returns a boolean if a field has been set.

func (*Tenant) HasName

func (o *Tenant) HasName() bool

HasName returns a boolean if a field has been set.

func (*Tenant) HasPrimaryZone

func (o *Tenant) HasPrimaryZone() bool

HasPrimaryZone returns a boolean if a field has been set.

func (*Tenant) HasPrimaryZoneProxy

func (o *Tenant) HasPrimaryZoneProxy() bool

HasPrimaryZoneProxy returns a boolean if a field has been set.

func (*Tenant) HasResource

func (o *Tenant) HasResource() bool

HasResource returns a boolean if a field has been set.

func (*Tenant) HasRole

func (o *Tenant) HasRole() bool

HasRole returns a boolean if a field has been set.

func (*Tenant) HasStatus

func (o *Tenant) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (Tenant) MarshalJSON

func (o Tenant) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*Tenant) SetChartSet

func (o *Tenant) SetChartSet(v string)

SetChartSet gets a reference to the given string and assigns it to the ChartSet field.

func (*Tenant) SetCpu

func (o *Tenant) SetCpu(v CPU)

SetCpu gets a reference to the given CPU and assigns it to the Cpu field.

func (*Tenant) SetCreateAt

func (o *Tenant) SetCreateAt(v string)

SetCreateAt gets a reference to the given string and assigns it to the CreateAt field.

func (*Tenant) SetDataDisk

func (o *Tenant) SetDataDisk(v DataDisk)

SetDataDisk gets a reference to the given DataDisk and assigns it to the DataDisk field.

func (*Tenant) SetId

func (o *Tenant) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*Tenant) SetLogDisk

func (o *Tenant) SetLogDisk(v LogDisk)

SetLogDisk gets a reference to the given LogDisk and assigns it to the LogDisk field.

func (*Tenant) SetMemory

func (o *Tenant) SetMemory(v Memory)

SetMemory gets a reference to the given Memory and assigns it to the Memory field.

func (*Tenant) SetMode

func (o *Tenant) SetMode(v string)

SetMode gets a reference to the given string and assigns it to the Mode field.

func (*Tenant) SetName

func (o *Tenant) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*Tenant) SetPrimaryZone

func (o *Tenant) SetPrimaryZone(v string)

SetPrimaryZone gets a reference to the given string and assigns it to the PrimaryZone field.

func (*Tenant) SetPrimaryZoneProxy

func (o *Tenant) SetPrimaryZoneProxy(v string)

SetPrimaryZoneProxy gets a reference to the given string and assigns it to the PrimaryZoneProxy field.

func (*Tenant) SetResource

func (o *Tenant) SetResource(v string)

SetResource gets a reference to the given string and assigns it to the Resource field.

func (*Tenant) SetRole

func (o *Tenant) SetRole(v string)

SetRole gets a reference to the given string and assigns it to the Role field.

func (*Tenant) SetStatus

func (o *Tenant) SetStatus(v string)

SetStatus gets a reference to the given string and assigns it to the Status field.

func (*Tenant) UnmarshalJSON

func (o *Tenant) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type TenantParameterHistoryOptionalParameters

type TenantParameterHistoryOptionalParameters struct {
	ParameterName *string
}

TenantParameterHistoryOptionalParameters holds optional parameters for TenantParameterHistory.

func NewTenantParameterHistoryOptionalParameters

func NewTenantParameterHistoryOptionalParameters() *TenantParameterHistoryOptionalParameters

NewTenantParameterHistoryOptionalParameters creates an empty struct for parameters.

func (*TenantParameterHistoryOptionalParameters) WithParameterName

WithParameterName sets the corresponding parameter name and returns the struct.

type TlsApi

type TlsApi common.Service

TlsApi service type

func NewTlsApi

func NewTlsApi(client *common.APIClient) *TlsApi

NewTlsApi Returns NewTlsApi.

func (*TlsApi) GetTLSCertificate

func (a *TlsApi) GetTLSCertificate(ctx _context.Context, orgName string, clusterName string) ([]TlsCert, *_nethttp.Response, error)

GetTLSCertificate Get cluster TLS certificate.

func (*TlsApi) TlsSwitcher

func (a *TlsApi) TlsSwitcher(ctx _context.Context, orgName string, clusterName string, body TlsRequest) (*_nethttp.Response, error)

TlsSwitcher Enable or disable cluster TLS.

type TlsCert

type TlsCert struct {
	// Configuration for TLS including all certificates and keys
	TlsConfig *TlsConfig `json:"tlsConfig,omitempty"`
	// Component these certs belong to
	ComponentName *string `json:"componentName,omitempty"`
	// Expiration days of CA certificate
	ExpirationDaysCa *int32 `json:"expirationDaysCA,omitempty"`
	// Expiration days of client certificate
	ExpirationDaysClient *int32 `json:"expirationDaysClient,omitempty"`
	// Expiration days of Keystore certificate
	ExpirationDaysKeystore *int32 `json:"expirationDaysKeystore,omitempty"`
	// Expiration days of Truststore certificate
	ExpirationDaysTruststore *int32 `json:"expirationDaysTruststore,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewTlsCert

func NewTlsCert() *TlsCert

NewTlsCert instantiates a new TlsCert 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 NewTlsCertWithDefaults

func NewTlsCertWithDefaults() *TlsCert

NewTlsCertWithDefaults instantiates a new TlsCert 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 (*TlsCert) GetComponentName

func (o *TlsCert) GetComponentName() string

GetComponentName returns the ComponentName field value if set, zero value otherwise.

func (*TlsCert) GetComponentNameOk

func (o *TlsCert) GetComponentNameOk() (*string, bool)

GetComponentNameOk returns a tuple with the ComponentName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TlsCert) GetExpirationDaysCa

func (o *TlsCert) GetExpirationDaysCa() int32

GetExpirationDaysCa returns the ExpirationDaysCa field value if set, zero value otherwise.

func (*TlsCert) GetExpirationDaysCaOk

func (o *TlsCert) GetExpirationDaysCaOk() (*int32, bool)

GetExpirationDaysCaOk returns a tuple with the ExpirationDaysCa field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TlsCert) GetExpirationDaysClient

func (o *TlsCert) GetExpirationDaysClient() int32

GetExpirationDaysClient returns the ExpirationDaysClient field value if set, zero value otherwise.

func (*TlsCert) GetExpirationDaysClientOk

func (o *TlsCert) GetExpirationDaysClientOk() (*int32, bool)

GetExpirationDaysClientOk returns a tuple with the ExpirationDaysClient field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TlsCert) GetExpirationDaysKeystore

func (o *TlsCert) GetExpirationDaysKeystore() int32

GetExpirationDaysKeystore returns the ExpirationDaysKeystore field value if set, zero value otherwise.

func (*TlsCert) GetExpirationDaysKeystoreOk

func (o *TlsCert) GetExpirationDaysKeystoreOk() (*int32, bool)

GetExpirationDaysKeystoreOk returns a tuple with the ExpirationDaysKeystore field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TlsCert) GetExpirationDaysTruststore

func (o *TlsCert) GetExpirationDaysTruststore() int32

GetExpirationDaysTruststore returns the ExpirationDaysTruststore field value if set, zero value otherwise.

func (*TlsCert) GetExpirationDaysTruststoreOk

func (o *TlsCert) GetExpirationDaysTruststoreOk() (*int32, bool)

GetExpirationDaysTruststoreOk returns a tuple with the ExpirationDaysTruststore field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TlsCert) GetTlsConfig

func (o *TlsCert) GetTlsConfig() TlsConfig

GetTlsConfig returns the TlsConfig field value if set, zero value otherwise.

func (*TlsCert) GetTlsConfigOk

func (o *TlsCert) GetTlsConfigOk() (*TlsConfig, bool)

GetTlsConfigOk returns a tuple with the TlsConfig field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TlsCert) HasComponentName

func (o *TlsCert) HasComponentName() bool

HasComponentName returns a boolean if a field has been set.

func (*TlsCert) HasExpirationDaysCa

func (o *TlsCert) HasExpirationDaysCa() bool

HasExpirationDaysCa returns a boolean if a field has been set.

func (*TlsCert) HasExpirationDaysClient

func (o *TlsCert) HasExpirationDaysClient() bool

HasExpirationDaysClient returns a boolean if a field has been set.

func (*TlsCert) HasExpirationDaysKeystore

func (o *TlsCert) HasExpirationDaysKeystore() bool

HasExpirationDaysKeystore returns a boolean if a field has been set.

func (*TlsCert) HasExpirationDaysTruststore

func (o *TlsCert) HasExpirationDaysTruststore() bool

HasExpirationDaysTruststore returns a boolean if a field has been set.

func (*TlsCert) HasTlsConfig

func (o *TlsCert) HasTlsConfig() bool

HasTlsConfig returns a boolean if a field has been set.

func (TlsCert) MarshalJSON

func (o TlsCert) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*TlsCert) SetComponentName

func (o *TlsCert) SetComponentName(v string)

SetComponentName gets a reference to the given string and assigns it to the ComponentName field.

func (*TlsCert) SetExpirationDaysCa

func (o *TlsCert) SetExpirationDaysCa(v int32)

SetExpirationDaysCa gets a reference to the given int32 and assigns it to the ExpirationDaysCa field.

func (*TlsCert) SetExpirationDaysClient

func (o *TlsCert) SetExpirationDaysClient(v int32)

SetExpirationDaysClient gets a reference to the given int32 and assigns it to the ExpirationDaysClient field.

func (*TlsCert) SetExpirationDaysKeystore

func (o *TlsCert) SetExpirationDaysKeystore(v int32)

SetExpirationDaysKeystore gets a reference to the given int32 and assigns it to the ExpirationDaysKeystore field.

func (*TlsCert) SetExpirationDaysTruststore

func (o *TlsCert) SetExpirationDaysTruststore(v int32)

SetExpirationDaysTruststore gets a reference to the given int32 and assigns it to the ExpirationDaysTruststore field.

func (*TlsCert) SetTlsConfig

func (o *TlsCert) SetTlsConfig(v TlsConfig)

SetTlsConfig gets a reference to the given TlsConfig and assigns it to the TlsConfig field.

func (*TlsCert) UnmarshalJSON

func (o *TlsCert) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type TlsConfig

type TlsConfig struct {
	// CA Certificate
	CaCert *string `json:"caCert,omitempty"`
	// Client Side Certificate
	ClientCert *string `json:"clientCert,omitempty"`
	// Client Side key
	ClientKey *string `json:"clientKey,omitempty"`
	// Keystore in PEM format
	Keystore *string `json:"keystore,omitempty"`
	// Truststore in PEM format
	Truststore *string `json:"truststore,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

TlsConfig Configuration for TLS including all certificates and keys

func NewTlsConfig

func NewTlsConfig() *TlsConfig

NewTlsConfig instantiates a new TlsConfig 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 NewTlsConfigWithDefaults

func NewTlsConfigWithDefaults() *TlsConfig

NewTlsConfigWithDefaults instantiates a new TlsConfig 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 (*TlsConfig) GetCaCert

func (o *TlsConfig) GetCaCert() string

GetCaCert returns the CaCert field value if set, zero value otherwise.

func (*TlsConfig) GetCaCertOk

func (o *TlsConfig) GetCaCertOk() (*string, bool)

GetCaCertOk returns a tuple with the CaCert field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TlsConfig) GetClientCert

func (o *TlsConfig) GetClientCert() string

GetClientCert returns the ClientCert field value if set, zero value otherwise.

func (*TlsConfig) GetClientCertOk

func (o *TlsConfig) GetClientCertOk() (*string, bool)

GetClientCertOk returns a tuple with the ClientCert field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TlsConfig) GetClientKey

func (o *TlsConfig) GetClientKey() string

GetClientKey returns the ClientKey field value if set, zero value otherwise.

func (*TlsConfig) GetClientKeyOk

func (o *TlsConfig) GetClientKeyOk() (*string, bool)

GetClientKeyOk returns a tuple with the ClientKey field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TlsConfig) GetKeystore

func (o *TlsConfig) GetKeystore() string

GetKeystore returns the Keystore field value if set, zero value otherwise.

func (*TlsConfig) GetKeystoreOk

func (o *TlsConfig) GetKeystoreOk() (*string, bool)

GetKeystoreOk returns a tuple with the Keystore field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TlsConfig) GetTruststore

func (o *TlsConfig) GetTruststore() string

GetTruststore returns the Truststore field value if set, zero value otherwise.

func (*TlsConfig) GetTruststoreOk

func (o *TlsConfig) GetTruststoreOk() (*string, bool)

GetTruststoreOk returns a tuple with the Truststore field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TlsConfig) HasCaCert

func (o *TlsConfig) HasCaCert() bool

HasCaCert returns a boolean if a field has been set.

func (*TlsConfig) HasClientCert

func (o *TlsConfig) HasClientCert() bool

HasClientCert returns a boolean if a field has been set.

func (*TlsConfig) HasClientKey

func (o *TlsConfig) HasClientKey() bool

HasClientKey returns a boolean if a field has been set.

func (*TlsConfig) HasKeystore

func (o *TlsConfig) HasKeystore() bool

HasKeystore returns a boolean if a field has been set.

func (*TlsConfig) HasTruststore

func (o *TlsConfig) HasTruststore() bool

HasTruststore returns a boolean if a field has been set.

func (TlsConfig) MarshalJSON

func (o TlsConfig) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*TlsConfig) SetCaCert

func (o *TlsConfig) SetCaCert(v string)

SetCaCert gets a reference to the given string and assigns it to the CaCert field.

func (*TlsConfig) SetClientCert

func (o *TlsConfig) SetClientCert(v string)

SetClientCert gets a reference to the given string and assigns it to the ClientCert field.

func (*TlsConfig) SetClientKey

func (o *TlsConfig) SetClientKey(v string)

SetClientKey gets a reference to the given string and assigns it to the ClientKey field.

func (*TlsConfig) SetKeystore

func (o *TlsConfig) SetKeystore(v string)

SetKeystore gets a reference to the given string and assigns it to the Keystore field.

func (*TlsConfig) SetTruststore

func (o *TlsConfig) SetTruststore(v string)

SetTruststore gets a reference to the given string and assigns it to the Truststore field.

func (*TlsConfig) UnmarshalJSON

func (o *TlsConfig) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type TlsRequest

type TlsRequest struct {
	// Enable TLS or not
	Enable *bool `json:"enable,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewTlsRequest

func NewTlsRequest() *TlsRequest

NewTlsRequest instantiates a new TlsRequest 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 NewTlsRequestWithDefaults

func NewTlsRequestWithDefaults() *TlsRequest

NewTlsRequestWithDefaults instantiates a new TlsRequest 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 (*TlsRequest) GetEnable

func (o *TlsRequest) GetEnable() bool

GetEnable returns the Enable field value if set, zero value otherwise.

func (*TlsRequest) GetEnableOk

func (o *TlsRequest) GetEnableOk() (*bool, bool)

GetEnableOk returns a tuple with the Enable field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TlsRequest) HasEnable

func (o *TlsRequest) HasEnable() bool

HasEnable returns a boolean if a field has been set.

func (TlsRequest) MarshalJSON

func (o TlsRequest) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*TlsRequest) SetEnable

func (o *TlsRequest) SetEnable(v bool)

SetEnable gets a reference to the given bool and assigns it to the Enable field.

func (*TlsRequest) UnmarshalJSON

func (o *TlsRequest) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type Tpcc

type Tpcc struct {
	// Step of sysbench
	Step *TpccStep `json:"step,omitempty"`
	// the cpu limit for test container
	LimitCpu *string `json:"limitCpu,omitempty"`
	// the memory limit for test container
	LimitMemory *string `json:"limitMemory,omitempty"`
	// the cpu request for test container
	RequestCpu *string `json:"requestCpu,omitempty"`
	// the memory request for test container
	RequestMemory *string `json:"requestMemory,omitempty"`
	// the name of benchmark
	Name *string `json:"name,omitempty"`
	// the cluster name
	Cluster string `json:"cluster"`
	// the database name
	Database string `json:"database"`
	// Username for database
	Username string `json:"username"`
	// Password for database
	Password string `json:"password"`
	// Address for database
	Address string `json:"address"`
	// Number of threads to use
	Threads *int32 `json:"threads,omitempty"`
	// Number of warehouses
	Warehouses *int32 `json:"warehouses,omitempty"`
	// the minutes of test duration
	Duration *int32 `json:"duration,omitempty"`
	// limit the number of transactions per minute, 0 means no limit
	LimitTxPerMin *int32 `json:"limitTxPerMin,omitempty"`
	// Percentage of new order transactions
	NewOrderWeight *int32 `json:"newOrderWeight,omitempty"`
	// Percentage of payment transactions
	PaymentWeight *int32 `json:"paymentWeight,omitempty"`
	// Percentage of order status transactions
	OrderStatusWeight *int32 `json:"orderStatusWeight,omitempty"`
	// Percentage of delivery transactions
	DeliveryWeight *int32 `json:"deliveryWeight,omitempty"`
	// Percentage of stock level transactions
	StockLevelWeight *int32 `json:"stockLevelWeight,omitempty"`
	// Extra arguments for tpcc
	ExtraArgs *string `json:"extraArgs,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

Tpcc tpcc is the tpcc benchmark object

func NewTpcc

func NewTpcc(cluster string, database string, username string, password string, address string) *Tpcc

NewTpcc instantiates a new Tpcc 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 NewTpccWithDefaults

func NewTpccWithDefaults() *Tpcc

NewTpccWithDefaults instantiates a new Tpcc 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 (*Tpcc) GetAddress

func (o *Tpcc) GetAddress() string

GetAddress returns the Address field value.

func (*Tpcc) GetAddressOk

func (o *Tpcc) GetAddressOk() (*string, bool)

GetAddressOk returns a tuple with the Address field value and a boolean to check if the value has been set.

func (*Tpcc) GetCluster

func (o *Tpcc) GetCluster() string

GetCluster returns the Cluster field value.

func (*Tpcc) GetClusterOk

func (o *Tpcc) GetClusterOk() (*string, bool)

GetClusterOk returns a tuple with the Cluster field value and a boolean to check if the value has been set.

func (*Tpcc) GetDatabase

func (o *Tpcc) GetDatabase() string

GetDatabase returns the Database field value.

func (*Tpcc) GetDatabaseOk

func (o *Tpcc) GetDatabaseOk() (*string, bool)

GetDatabaseOk returns a tuple with the Database field value and a boolean to check if the value has been set.

func (*Tpcc) GetDeliveryWeight

func (o *Tpcc) GetDeliveryWeight() int32

GetDeliveryWeight returns the DeliveryWeight field value if set, zero value otherwise.

func (*Tpcc) GetDeliveryWeightOk

func (o *Tpcc) GetDeliveryWeightOk() (*int32, bool)

GetDeliveryWeightOk returns a tuple with the DeliveryWeight field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Tpcc) GetDuration

func (o *Tpcc) GetDuration() int32

GetDuration returns the Duration field value if set, zero value otherwise.

func (*Tpcc) GetDurationOk

func (o *Tpcc) GetDurationOk() (*int32, bool)

GetDurationOk returns a tuple with the Duration field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Tpcc) GetExtraArgs

func (o *Tpcc) GetExtraArgs() string

GetExtraArgs returns the ExtraArgs field value if set, zero value otherwise.

func (*Tpcc) GetExtraArgsOk

func (o *Tpcc) GetExtraArgsOk() (*string, bool)

GetExtraArgsOk returns a tuple with the ExtraArgs field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Tpcc) GetLimitCpu

func (o *Tpcc) GetLimitCpu() string

GetLimitCpu returns the LimitCpu field value if set, zero value otherwise.

func (*Tpcc) GetLimitCpuOk

func (o *Tpcc) GetLimitCpuOk() (*string, bool)

GetLimitCpuOk returns a tuple with the LimitCpu field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Tpcc) GetLimitMemory

func (o *Tpcc) GetLimitMemory() string

GetLimitMemory returns the LimitMemory field value if set, zero value otherwise.

func (*Tpcc) GetLimitMemoryOk

func (o *Tpcc) GetLimitMemoryOk() (*string, bool)

GetLimitMemoryOk returns a tuple with the LimitMemory field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Tpcc) GetLimitTxPerMin

func (o *Tpcc) GetLimitTxPerMin() int32

GetLimitTxPerMin returns the LimitTxPerMin field value if set, zero value otherwise.

func (*Tpcc) GetLimitTxPerMinOk

func (o *Tpcc) GetLimitTxPerMinOk() (*int32, bool)

GetLimitTxPerMinOk returns a tuple with the LimitTxPerMin field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Tpcc) GetName

func (o *Tpcc) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*Tpcc) GetNameOk

func (o *Tpcc) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Tpcc) GetNewOrderWeight

func (o *Tpcc) GetNewOrderWeight() int32

GetNewOrderWeight returns the NewOrderWeight field value if set, zero value otherwise.

func (*Tpcc) GetNewOrderWeightOk

func (o *Tpcc) GetNewOrderWeightOk() (*int32, bool)

GetNewOrderWeightOk returns a tuple with the NewOrderWeight field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Tpcc) GetOrderStatusWeight

func (o *Tpcc) GetOrderStatusWeight() int32

GetOrderStatusWeight returns the OrderStatusWeight field value if set, zero value otherwise.

func (*Tpcc) GetOrderStatusWeightOk

func (o *Tpcc) GetOrderStatusWeightOk() (*int32, bool)

GetOrderStatusWeightOk returns a tuple with the OrderStatusWeight field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Tpcc) GetPassword

func (o *Tpcc) GetPassword() string

GetPassword returns the Password field value.

func (*Tpcc) GetPasswordOk

func (o *Tpcc) GetPasswordOk() (*string, bool)

GetPasswordOk returns a tuple with the Password field value and a boolean to check if the value has been set.

func (*Tpcc) GetPaymentWeight

func (o *Tpcc) GetPaymentWeight() int32

GetPaymentWeight returns the PaymentWeight field value if set, zero value otherwise.

func (*Tpcc) GetPaymentWeightOk

func (o *Tpcc) GetPaymentWeightOk() (*int32, bool)

GetPaymentWeightOk returns a tuple with the PaymentWeight field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Tpcc) GetRequestCpu

func (o *Tpcc) GetRequestCpu() string

GetRequestCpu returns the RequestCpu field value if set, zero value otherwise.

func (*Tpcc) GetRequestCpuOk

func (o *Tpcc) GetRequestCpuOk() (*string, bool)

GetRequestCpuOk returns a tuple with the RequestCpu field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Tpcc) GetRequestMemory

func (o *Tpcc) GetRequestMemory() string

GetRequestMemory returns the RequestMemory field value if set, zero value otherwise.

func (*Tpcc) GetRequestMemoryOk

func (o *Tpcc) GetRequestMemoryOk() (*string, bool)

GetRequestMemoryOk returns a tuple with the RequestMemory field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Tpcc) GetStep

func (o *Tpcc) GetStep() TpccStep

GetStep returns the Step field value if set, zero value otherwise.

func (*Tpcc) GetStepOk

func (o *Tpcc) GetStepOk() (*TpccStep, bool)

GetStepOk returns a tuple with the Step field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Tpcc) GetStockLevelWeight

func (o *Tpcc) GetStockLevelWeight() int32

GetStockLevelWeight returns the StockLevelWeight field value if set, zero value otherwise.

func (*Tpcc) GetStockLevelWeightOk

func (o *Tpcc) GetStockLevelWeightOk() (*int32, bool)

GetStockLevelWeightOk returns a tuple with the StockLevelWeight field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Tpcc) GetThreads

func (o *Tpcc) GetThreads() int32

GetThreads returns the Threads field value if set, zero value otherwise.

func (*Tpcc) GetThreadsOk

func (o *Tpcc) GetThreadsOk() (*int32, bool)

GetThreadsOk returns a tuple with the Threads field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Tpcc) GetUsername

func (o *Tpcc) GetUsername() string

GetUsername returns the Username field value.

func (*Tpcc) GetUsernameOk

func (o *Tpcc) GetUsernameOk() (*string, bool)

GetUsernameOk returns a tuple with the Username field value and a boolean to check if the value has been set.

func (*Tpcc) GetWarehouses

func (o *Tpcc) GetWarehouses() int32

GetWarehouses returns the Warehouses field value if set, zero value otherwise.

func (*Tpcc) GetWarehousesOk

func (o *Tpcc) GetWarehousesOk() (*int32, bool)

GetWarehousesOk returns a tuple with the Warehouses field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Tpcc) HasDeliveryWeight

func (o *Tpcc) HasDeliveryWeight() bool

HasDeliveryWeight returns a boolean if a field has been set.

func (*Tpcc) HasDuration

func (o *Tpcc) HasDuration() bool

HasDuration returns a boolean if a field has been set.

func (*Tpcc) HasExtraArgs

func (o *Tpcc) HasExtraArgs() bool

HasExtraArgs returns a boolean if a field has been set.

func (*Tpcc) HasLimitCpu

func (o *Tpcc) HasLimitCpu() bool

HasLimitCpu returns a boolean if a field has been set.

func (*Tpcc) HasLimitMemory

func (o *Tpcc) HasLimitMemory() bool

HasLimitMemory returns a boolean if a field has been set.

func (*Tpcc) HasLimitTxPerMin

func (o *Tpcc) HasLimitTxPerMin() bool

HasLimitTxPerMin returns a boolean if a field has been set.

func (*Tpcc) HasName

func (o *Tpcc) HasName() bool

HasName returns a boolean if a field has been set.

func (*Tpcc) HasNewOrderWeight

func (o *Tpcc) HasNewOrderWeight() bool

HasNewOrderWeight returns a boolean if a field has been set.

func (*Tpcc) HasOrderStatusWeight

func (o *Tpcc) HasOrderStatusWeight() bool

HasOrderStatusWeight returns a boolean if a field has been set.

func (*Tpcc) HasPaymentWeight

func (o *Tpcc) HasPaymentWeight() bool

HasPaymentWeight returns a boolean if a field has been set.

func (*Tpcc) HasRequestCpu

func (o *Tpcc) HasRequestCpu() bool

HasRequestCpu returns a boolean if a field has been set.

func (*Tpcc) HasRequestMemory

func (o *Tpcc) HasRequestMemory() bool

HasRequestMemory returns a boolean if a field has been set.

func (*Tpcc) HasStep

func (o *Tpcc) HasStep() bool

HasStep returns a boolean if a field has been set.

func (*Tpcc) HasStockLevelWeight

func (o *Tpcc) HasStockLevelWeight() bool

HasStockLevelWeight returns a boolean if a field has been set.

func (*Tpcc) HasThreads

func (o *Tpcc) HasThreads() bool

HasThreads returns a boolean if a field has been set.

func (*Tpcc) HasWarehouses

func (o *Tpcc) HasWarehouses() bool

HasWarehouses returns a boolean if a field has been set.

func (Tpcc) MarshalJSON

func (o Tpcc) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*Tpcc) SetAddress

func (o *Tpcc) SetAddress(v string)

SetAddress sets field value.

func (*Tpcc) SetCluster

func (o *Tpcc) SetCluster(v string)

SetCluster sets field value.

func (*Tpcc) SetDatabase

func (o *Tpcc) SetDatabase(v string)

SetDatabase sets field value.

func (*Tpcc) SetDeliveryWeight

func (o *Tpcc) SetDeliveryWeight(v int32)

SetDeliveryWeight gets a reference to the given int32 and assigns it to the DeliveryWeight field.

func (*Tpcc) SetDuration

func (o *Tpcc) SetDuration(v int32)

SetDuration gets a reference to the given int32 and assigns it to the Duration field.

func (*Tpcc) SetExtraArgs

func (o *Tpcc) SetExtraArgs(v string)

SetExtraArgs gets a reference to the given string and assigns it to the ExtraArgs field.

func (*Tpcc) SetLimitCpu

func (o *Tpcc) SetLimitCpu(v string)

SetLimitCpu gets a reference to the given string and assigns it to the LimitCpu field.

func (*Tpcc) SetLimitMemory

func (o *Tpcc) SetLimitMemory(v string)

SetLimitMemory gets a reference to the given string and assigns it to the LimitMemory field.

func (*Tpcc) SetLimitTxPerMin

func (o *Tpcc) SetLimitTxPerMin(v int32)

SetLimitTxPerMin gets a reference to the given int32 and assigns it to the LimitTxPerMin field.

func (*Tpcc) SetName

func (o *Tpcc) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*Tpcc) SetNewOrderWeight

func (o *Tpcc) SetNewOrderWeight(v int32)

SetNewOrderWeight gets a reference to the given int32 and assigns it to the NewOrderWeight field.

func (*Tpcc) SetOrderStatusWeight

func (o *Tpcc) SetOrderStatusWeight(v int32)

SetOrderStatusWeight gets a reference to the given int32 and assigns it to the OrderStatusWeight field.

func (*Tpcc) SetPassword

func (o *Tpcc) SetPassword(v string)

SetPassword sets field value.

func (*Tpcc) SetPaymentWeight

func (o *Tpcc) SetPaymentWeight(v int32)

SetPaymentWeight gets a reference to the given int32 and assigns it to the PaymentWeight field.

func (*Tpcc) SetRequestCpu

func (o *Tpcc) SetRequestCpu(v string)

SetRequestCpu gets a reference to the given string and assigns it to the RequestCpu field.

func (*Tpcc) SetRequestMemory

func (o *Tpcc) SetRequestMemory(v string)

SetRequestMemory gets a reference to the given string and assigns it to the RequestMemory field.

func (*Tpcc) SetStep

func (o *Tpcc) SetStep(v TpccStep)

SetStep gets a reference to the given TpccStep and assigns it to the Step field.

func (*Tpcc) SetStockLevelWeight

func (o *Tpcc) SetStockLevelWeight(v int32)

SetStockLevelWeight gets a reference to the given int32 and assigns it to the StockLevelWeight field.

func (*Tpcc) SetThreads

func (o *Tpcc) SetThreads(v int32)

SetThreads gets a reference to the given int32 and assigns it to the Threads field.

func (*Tpcc) SetUsername

func (o *Tpcc) SetUsername(v string)

SetUsername sets field value.

func (*Tpcc) SetWarehouses

func (o *Tpcc) SetWarehouses(v int32)

SetWarehouses gets a reference to the given int32 and assigns it to the Warehouses field.

func (*Tpcc) UnmarshalJSON

func (o *Tpcc) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type TpccStep

type TpccStep string

TpccStep Step of sysbench

const (
	TpccStepPrepare TpccStep = "prepare"
	TpccStepRun     TpccStep = "run"
	TpccStepCleanup TpccStep = "cleanup"
	TpccStepAll     TpccStep = "all"
)

List of TpccStep.

func NewTpccStepFromValue

func NewTpccStepFromValue(v string) (*TpccStep, error)

NewTpccStepFromValue returns a pointer to a valid TpccStep for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*TpccStep) GetAllowedValues

func (v *TpccStep) GetAllowedValues() []TpccStep

GetAllowedValues returns the list of possible values.

func (TpccStep) IsValid

func (v TpccStep) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (TpccStep) Ptr

func (v TpccStep) Ptr() *TpccStep

Ptr returns reference to TpccStep value.

func (*TpccStep) UnmarshalJSON

func (v *TpccStep) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type TreeNode

type TreeNode struct {
	// A string representing the level of the node.
	Level *string `json:"level,omitempty"`
	// A string representing the name of the node.
	Name *string `json:"name,omitempty"`
	// A string representing the uid of the resource.
	Uid *string `json:"uid,omitempty"`
	// A mapping where each key is a string representing the event name, and the value is a MapNode object.
	Events []View_event `json:"events,omitempty"`
	// An array of child nodes.
	Children []TreeNode `json:"children,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewTreeNode

func NewTreeNode() *TreeNode

NewTreeNode instantiates a new TreeNode 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 NewTreeNodeWithDefaults

func NewTreeNodeWithDefaults() *TreeNode

NewTreeNodeWithDefaults instantiates a new TreeNode 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 (*TreeNode) GetChildren

func (o *TreeNode) GetChildren() []TreeNode

GetChildren returns the Children field value if set, zero value otherwise.

func (*TreeNode) GetChildrenOk

func (o *TreeNode) GetChildrenOk() (*[]TreeNode, bool)

GetChildrenOk returns a tuple with the Children field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TreeNode) GetEvents

func (o *TreeNode) GetEvents() []View_event

GetEvents returns the Events field value if set, zero value otherwise.

func (*TreeNode) GetEventsOk

func (o *TreeNode) GetEventsOk() (*[]View_event, bool)

GetEventsOk returns a tuple with the Events field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TreeNode) GetLevel

func (o *TreeNode) GetLevel() string

GetLevel returns the Level field value if set, zero value otherwise.

func (*TreeNode) GetLevelOk

func (o *TreeNode) GetLevelOk() (*string, bool)

GetLevelOk returns a tuple with the Level field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TreeNode) GetName

func (o *TreeNode) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*TreeNode) GetNameOk

func (o *TreeNode) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TreeNode) GetUid

func (o *TreeNode) GetUid() string

GetUid returns the Uid field value if set, zero value otherwise.

func (*TreeNode) GetUidOk

func (o *TreeNode) GetUidOk() (*string, bool)

GetUidOk returns a tuple with the Uid field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TreeNode) HasChildren

func (o *TreeNode) HasChildren() bool

HasChildren returns a boolean if a field has been set.

func (*TreeNode) HasEvents

func (o *TreeNode) HasEvents() bool

HasEvents returns a boolean if a field has been set.

func (*TreeNode) HasLevel

func (o *TreeNode) HasLevel() bool

HasLevel returns a boolean if a field has been set.

func (*TreeNode) HasName

func (o *TreeNode) HasName() bool

HasName returns a boolean if a field has been set.

func (*TreeNode) HasUid

func (o *TreeNode) HasUid() bool

HasUid returns a boolean if a field has been set.

func (TreeNode) MarshalJSON

func (o TreeNode) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*TreeNode) SetChildren

func (o *TreeNode) SetChildren(v []TreeNode)

SetChildren gets a reference to the given []TreeNode and assigns it to the Children field.

func (*TreeNode) SetEvents

func (o *TreeNode) SetEvents(v []View_event)

SetEvents gets a reference to the given []View_event and assigns it to the Events field.

func (*TreeNode) SetLevel

func (o *TreeNode) SetLevel(v string)

SetLevel gets a reference to the given string and assigns it to the Level field.

func (*TreeNode) SetName

func (o *TreeNode) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*TreeNode) SetUid

func (o *TreeNode) SetUid(v string)

SetUid gets a reference to the given string and assigns it to the Uid field.

func (*TreeNode) UnmarshalJSON

func (o *TreeNode) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type User

type User struct {
	// CreatedAt is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists
	CreatedAt time.Time `json:"createdAt"`
	// The display name of the user
	DisplayName *string `json:"displayName,omitempty"`
	// The email for the user
	Email string `json:"email"`
	// The ID for the user
	Id string `json:"id"`
	// The phonenumber for the user.
	PhoneNumber *string `json:"phoneNumber,omitempty"`
	// UpdatedAt is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.
	//
	// Populated by the system. Read-only. Null for lists
	UpdatedAt time.Time `json:"updatedAt"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

User User info

func NewUser

func NewUser(createdAt time.Time, email string, id string, updatedAt time.Time) *User

NewUser instantiates a new User 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 NewUserWithDefaults

func NewUserWithDefaults() *User

NewUserWithDefaults instantiates a new User 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 (*User) GetCreatedAt

func (o *User) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field value.

func (*User) GetCreatedAtOk

func (o *User) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value and a boolean to check if the value has been set.

func (*User) GetDisplayName

func (o *User) GetDisplayName() string

GetDisplayName returns the DisplayName field value if set, zero value otherwise.

func (*User) GetDisplayNameOk

func (o *User) GetDisplayNameOk() (*string, bool)

GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) GetEmail

func (o *User) GetEmail() string

GetEmail returns the Email field value.

func (*User) GetEmailOk

func (o *User) GetEmailOk() (*string, bool)

GetEmailOk returns a tuple with the Email field value and a boolean to check if the value has been set.

func (*User) GetId

func (o *User) GetId() string

GetId returns the Id field value.

func (*User) GetIdOk

func (o *User) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*User) GetPhoneNumber

func (o *User) GetPhoneNumber() string

GetPhoneNumber returns the PhoneNumber field value if set, zero value otherwise.

func (*User) GetPhoneNumberOk

func (o *User) GetPhoneNumberOk() (*string, bool)

GetPhoneNumberOk returns a tuple with the PhoneNumber field value if set, nil otherwise and a boolean to check if the value has been set.

func (*User) GetUpdatedAt

func (o *User) GetUpdatedAt() time.Time

GetUpdatedAt returns the UpdatedAt field value.

func (*User) GetUpdatedAtOk

func (o *User) GetUpdatedAtOk() (*time.Time, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value and a boolean to check if the value has been set.

func (*User) HasDisplayName

func (o *User) HasDisplayName() bool

HasDisplayName returns a boolean if a field has been set.

func (*User) HasPhoneNumber

func (o *User) HasPhoneNumber() bool

HasPhoneNumber returns a boolean if a field has been set.

func (User) MarshalJSON

func (o User) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*User) SetCreatedAt

func (o *User) SetCreatedAt(v time.Time)

SetCreatedAt sets field value.

func (*User) SetDisplayName

func (o *User) SetDisplayName(v string)

SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.

func (*User) SetEmail

func (o *User) SetEmail(v string)

SetEmail sets field value.

func (*User) SetId

func (o *User) SetId(v string)

SetId sets field value.

func (*User) SetPhoneNumber

func (o *User) SetPhoneNumber(v string)

SetPhoneNumber gets a reference to the given string and assigns it to the PhoneNumber field.

func (*User) SetUpdatedAt

func (o *User) SetUpdatedAt(v time.Time)

SetUpdatedAt sets field value.

func (*User) UnmarshalJSON

func (o *User) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type UserApi

type UserApi common.Service

UserApi service type

func NewUserApi

func NewUserApi(client *common.APIClient) *UserApi

NewUserApi Returns NewUserApi.

func (*UserApi) CreateUserApikey

func (a *UserApi) CreateUserApikey(ctx _context.Context, body ApikeyCreate) (ApikeyWithSK, *_nethttp.Response, error)

CreateUserApikey Create apikey of the authenticated user. Create apikey of the authenticated user

func (*UserApi) DeleteApikey

func (a *UserApi) DeleteApikey(ctx _context.Context, keyName string) (*_nethttp.Response, error)

DeleteApikey Delete apikey. delete apikey

func (*UserApi) PatchAPIkey

func (a *UserApi) PatchAPIkey(ctx _context.Context, keyName string, body ApikeyCreate) (Apikey, *_nethttp.Response, error)

PatchAPIkey Update apikey information. partially update the specified apikey

func (*UserApi) PatchUser

func (a *UserApi) PatchUser(ctx _context.Context, body UserUpdate) (*_nethttp.Response, error)

PatchUser Update user information. partially update the specified User. If you want to update phone number, you must request /api/v1/user/phone-verification-code first.

func (*UserApi) PhoneVerification

func (a *UserApi) PhoneVerification(ctx _context.Context, body interface{}) (*_nethttp.Response, error)

PhoneVerification Send verification code to user's phone. to update user phone number, send verification code first

func (*UserApi) ReadUser

func (a *UserApi) ReadUser(ctx _context.Context) (User, *_nethttp.Response, error)

ReadUser Get authenticated user. Get authenticated login user info

func (*UserApi) ReadUserApikeys

func (a *UserApi) ReadUserApikeys(ctx _context.Context) (ApikeyList, *_nethttp.Response, error)

ReadUserApikeys Get apikeys of the authenticated user. Get apikeys of the authenticated user

func (*UserApi) SendVerificationEmail

func (a *UserApi) SendVerificationEmail(ctx _context.Context) (*_nethttp.Response, error)

SendVerificationEmail Send verification email to user's email address. For logto and authing, only the "email" is required, and for auth0, only the "externalID" is required.. To send verification email checking user's email address

func (*UserApi) UpdateUserPassword

func (a *UserApi) UpdateUserPassword(ctx _context.Context, body interface{}) (*_nethttp.Response, error)

UpdateUserPassword Update user password. Update user password.

type UserUpdate

type UserUpdate struct {
	// The display name of the user
	DisplayName *string `json:"displayName,omitempty"`
	// The email for the user
	Email *string `json:"email,omitempty"`
	// The phonenumber for the user.
	PhoneNumber *string `json:"phoneNumber,omitempty"`
	// The verification code for the user
	VerificationCode *string `json:"verificationCode,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

UserUpdate User update

func NewUserUpdate

func NewUserUpdate() *UserUpdate

NewUserUpdate instantiates a new UserUpdate 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 NewUserUpdateWithDefaults

func NewUserUpdateWithDefaults() *UserUpdate

NewUserUpdateWithDefaults instantiates a new UserUpdate 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 (*UserUpdate) GetDisplayName

func (o *UserUpdate) GetDisplayName() string

GetDisplayName returns the DisplayName field value if set, zero value otherwise.

func (*UserUpdate) GetDisplayNameOk

func (o *UserUpdate) GetDisplayNameOk() (*string, bool)

GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserUpdate) GetEmail

func (o *UserUpdate) GetEmail() string

GetEmail returns the Email field value if set, zero value otherwise.

func (*UserUpdate) GetEmailOk

func (o *UserUpdate) GetEmailOk() (*string, bool)

GetEmailOk returns a tuple with the Email field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserUpdate) GetPhoneNumber

func (o *UserUpdate) GetPhoneNumber() string

GetPhoneNumber returns the PhoneNumber field value if set, zero value otherwise.

func (*UserUpdate) GetPhoneNumberOk

func (o *UserUpdate) GetPhoneNumberOk() (*string, bool)

GetPhoneNumberOk returns a tuple with the PhoneNumber field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserUpdate) GetVerificationCode

func (o *UserUpdate) GetVerificationCode() string

GetVerificationCode returns the VerificationCode field value if set, zero value otherwise.

func (*UserUpdate) GetVerificationCodeOk

func (o *UserUpdate) GetVerificationCodeOk() (*string, bool)

GetVerificationCodeOk returns a tuple with the VerificationCode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UserUpdate) HasDisplayName

func (o *UserUpdate) HasDisplayName() bool

HasDisplayName returns a boolean if a field has been set.

func (*UserUpdate) HasEmail

func (o *UserUpdate) HasEmail() bool

HasEmail returns a boolean if a field has been set.

func (*UserUpdate) HasPhoneNumber

func (o *UserUpdate) HasPhoneNumber() bool

HasPhoneNumber returns a boolean if a field has been set.

func (*UserUpdate) HasVerificationCode

func (o *UserUpdate) HasVerificationCode() bool

HasVerificationCode returns a boolean if a field has been set.

func (UserUpdate) MarshalJSON

func (o UserUpdate) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*UserUpdate) SetDisplayName

func (o *UserUpdate) SetDisplayName(v string)

SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.

func (*UserUpdate) SetEmail

func (o *UserUpdate) SetEmail(v string)

SetEmail gets a reference to the given string and assigns it to the Email field.

func (*UserUpdate) SetPhoneNumber

func (o *UserUpdate) SetPhoneNumber(v string)

SetPhoneNumber gets a reference to the given string and assigns it to the PhoneNumber field.

func (*UserUpdate) SetVerificationCode

func (o *UserUpdate) SetVerificationCode(v string)

SetVerificationCode gets a reference to the given string and assigns it to the VerificationCode field.

func (*UserUpdate) UnmarshalJSON

func (o *UserUpdate) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type View

type View struct {
	// A label selector is a label query over a set of resources.
	InvolvedObjectsSelector *ViewInvolvedObjectsSelector `json:"involvedObjectsSelector,omitempty"`
	// targetResource specifies the type of resource the view is targeting.
	TargetResource *string `json:"targetResource,omitempty"`
	// viewDefRef is a reference to the definition of the view.
	ViewDefRef *string `json:"viewDefRef,omitempty"`
	// Events are a list of events related to the view.
	Events []View_event `json:"events,omitempty"`
	// Progress describes the overall progress of the view.
	Progress *string `json:"progress,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

View View is the schema for the views API

func NewView

func NewView() *View

NewView instantiates a new View 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 NewViewWithDefaults

func NewViewWithDefaults() *View

NewViewWithDefaults instantiates a new View 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 (*View) GetEvents

func (o *View) GetEvents() []View_event

GetEvents returns the Events field value if set, zero value otherwise.

func (*View) GetEventsOk

func (o *View) GetEventsOk() (*[]View_event, bool)

GetEventsOk returns a tuple with the Events field value if set, nil otherwise and a boolean to check if the value has been set.

func (*View) GetInvolvedObjectsSelector

func (o *View) GetInvolvedObjectsSelector() ViewInvolvedObjectsSelector

GetInvolvedObjectsSelector returns the InvolvedObjectsSelector field value if set, zero value otherwise.

func (*View) GetInvolvedObjectsSelectorOk

func (o *View) GetInvolvedObjectsSelectorOk() (*ViewInvolvedObjectsSelector, bool)

GetInvolvedObjectsSelectorOk returns a tuple with the InvolvedObjectsSelector field value if set, nil otherwise and a boolean to check if the value has been set.

func (*View) GetProgress

func (o *View) GetProgress() string

GetProgress returns the Progress field value if set, zero value otherwise.

func (*View) GetProgressOk

func (o *View) GetProgressOk() (*string, bool)

GetProgressOk returns a tuple with the Progress field value if set, nil otherwise and a boolean to check if the value has been set.

func (*View) GetTargetResource

func (o *View) GetTargetResource() string

GetTargetResource returns the TargetResource field value if set, zero value otherwise.

func (*View) GetTargetResourceOk

func (o *View) GetTargetResourceOk() (*string, bool)

GetTargetResourceOk returns a tuple with the TargetResource field value if set, nil otherwise and a boolean to check if the value has been set.

func (*View) GetViewDefRef

func (o *View) GetViewDefRef() string

GetViewDefRef returns the ViewDefRef field value if set, zero value otherwise.

func (*View) GetViewDefRefOk

func (o *View) GetViewDefRefOk() (*string, bool)

GetViewDefRefOk returns a tuple with the ViewDefRef field value if set, nil otherwise and a boolean to check if the value has been set.

func (*View) HasEvents

func (o *View) HasEvents() bool

HasEvents returns a boolean if a field has been set.

func (*View) HasInvolvedObjectsSelector

func (o *View) HasInvolvedObjectsSelector() bool

HasInvolvedObjectsSelector returns a boolean if a field has been set.

func (*View) HasProgress

func (o *View) HasProgress() bool

HasProgress returns a boolean if a field has been set.

func (*View) HasTargetResource

func (o *View) HasTargetResource() bool

HasTargetResource returns a boolean if a field has been set.

func (*View) HasViewDefRef

func (o *View) HasViewDefRef() bool

HasViewDefRef returns a boolean if a field has been set.

func (View) MarshalJSON

func (o View) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*View) SetEvents

func (o *View) SetEvents(v []View_event)

SetEvents gets a reference to the given []View_event and assigns it to the Events field.

func (*View) SetInvolvedObjectsSelector

func (o *View) SetInvolvedObjectsSelector(v ViewInvolvedObjectsSelector)

SetInvolvedObjectsSelector gets a reference to the given ViewInvolvedObjectsSelector and assigns it to the InvolvedObjectsSelector field.

func (*View) SetProgress

func (o *View) SetProgress(v string)

SetProgress gets a reference to the given string and assigns it to the Progress field.

func (*View) SetTargetResource

func (o *View) SetTargetResource(v string)

SetTargetResource gets a reference to the given string and assigns it to the TargetResource field.

func (*View) SetViewDefRef

func (o *View) SetViewDefRef(v string)

SetViewDefRef gets a reference to the given string and assigns it to the ViewDefRef field.

func (*View) UnmarshalJSON

func (o *View) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ViewApi

type ViewApi common.Service

ViewApi service type

func NewViewApi

func NewViewApi(client *common.APIClient) *ViewApi

NewViewApi Returns NewViewApi.

func (*ViewApi) GetTreeView

func (a *ViewApi) GetTreeView(ctx _context.Context, orgName string, clusterName string) (TreeNode, *_nethttp.Response, error)

GetTreeView Get tree view by cluster.

func (*ViewApi) GetViewByCluster

func (a *ViewApi) GetViewByCluster(ctx _context.Context, orgName string, clusterName string) (View, *_nethttp.Response, error)

GetViewByCluster Get view details by cluster.

type ViewBackupOptionalParameters

type ViewBackupOptionalParameters struct {
	Body *BackupView
}

ViewBackupOptionalParameters holds optional parameters for ViewBackup.

func NewViewBackupOptionalParameters

func NewViewBackupOptionalParameters() *ViewBackupOptionalParameters

NewViewBackupOptionalParameters creates an empty struct for parameters.

func (*ViewBackupOptionalParameters) WithBody

WithBody sets the corresponding parameter name and returns the struct.

type ViewInvolvedObjectsSelector

type ViewInvolvedObjectsSelector struct {
	// matchExpressions is a list of label selector requirements. The requirements are ANDed.
	MatchExpressions []ViewInvolvedObjectsSelectorMatchExpressionsItem `json:"matchExpressions,omitempty"`
	// matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
	MatchLabels map[string]string `json:"matchLabels,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ViewInvolvedObjectsSelector A label selector is a label query over a set of resources.

func NewViewInvolvedObjectsSelector

func NewViewInvolvedObjectsSelector() *ViewInvolvedObjectsSelector

NewViewInvolvedObjectsSelector instantiates a new ViewInvolvedObjectsSelector 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 NewViewInvolvedObjectsSelectorWithDefaults

func NewViewInvolvedObjectsSelectorWithDefaults() *ViewInvolvedObjectsSelector

NewViewInvolvedObjectsSelectorWithDefaults instantiates a new ViewInvolvedObjectsSelector 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 (*ViewInvolvedObjectsSelector) GetMatchExpressions

GetMatchExpressions returns the MatchExpressions field value if set, zero value otherwise.

func (*ViewInvolvedObjectsSelector) GetMatchExpressionsOk

GetMatchExpressionsOk returns a tuple with the MatchExpressions field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ViewInvolvedObjectsSelector) GetMatchLabels

func (o *ViewInvolvedObjectsSelector) GetMatchLabels() map[string]string

GetMatchLabels returns the MatchLabels field value if set, zero value otherwise.

func (*ViewInvolvedObjectsSelector) GetMatchLabelsOk

func (o *ViewInvolvedObjectsSelector) GetMatchLabelsOk() (*map[string]string, bool)

GetMatchLabelsOk returns a tuple with the MatchLabels field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ViewInvolvedObjectsSelector) HasMatchExpressions

func (o *ViewInvolvedObjectsSelector) HasMatchExpressions() bool

HasMatchExpressions returns a boolean if a field has been set.

func (*ViewInvolvedObjectsSelector) HasMatchLabels

func (o *ViewInvolvedObjectsSelector) HasMatchLabels() bool

HasMatchLabels returns a boolean if a field has been set.

func (ViewInvolvedObjectsSelector) MarshalJSON

func (o ViewInvolvedObjectsSelector) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ViewInvolvedObjectsSelector) SetMatchExpressions

SetMatchExpressions gets a reference to the given []ViewInvolvedObjectsSelectorMatchExpressionsItem and assigns it to the MatchExpressions field.

func (*ViewInvolvedObjectsSelector) SetMatchLabels

func (o *ViewInvolvedObjectsSelector) SetMatchLabels(v map[string]string)

SetMatchLabels gets a reference to the given map[string]string and assigns it to the MatchLabels field.

func (*ViewInvolvedObjectsSelector) UnmarshalJSON

func (o *ViewInvolvedObjectsSelector) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ViewInvolvedObjectsSelectorMatchExpressionsItem

type ViewInvolvedObjectsSelectorMatchExpressionsItem struct {
	// key is the label key that the selector applies to.
	Key *string `json:"key,omitempty"`
	// operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
	Operator *string `json:"operator,omitempty"`
	// values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty.
	Values []string `json:"values,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewViewInvolvedObjectsSelectorMatchExpressionsItem

func NewViewInvolvedObjectsSelectorMatchExpressionsItem() *ViewInvolvedObjectsSelectorMatchExpressionsItem

NewViewInvolvedObjectsSelectorMatchExpressionsItem instantiates a new ViewInvolvedObjectsSelectorMatchExpressionsItem 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 NewViewInvolvedObjectsSelectorMatchExpressionsItemWithDefaults

func NewViewInvolvedObjectsSelectorMatchExpressionsItemWithDefaults() *ViewInvolvedObjectsSelectorMatchExpressionsItem

NewViewInvolvedObjectsSelectorMatchExpressionsItemWithDefaults instantiates a new ViewInvolvedObjectsSelectorMatchExpressionsItem 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 (*ViewInvolvedObjectsSelectorMatchExpressionsItem) GetKey

GetKey returns the Key field value if set, zero value otherwise.

func (*ViewInvolvedObjectsSelectorMatchExpressionsItem) GetKeyOk

GetKeyOk returns a tuple with the Key field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ViewInvolvedObjectsSelectorMatchExpressionsItem) GetOperator

GetOperator returns the Operator field value if set, zero value otherwise.

func (*ViewInvolvedObjectsSelectorMatchExpressionsItem) GetOperatorOk

GetOperatorOk returns a tuple with the Operator field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ViewInvolvedObjectsSelectorMatchExpressionsItem) GetValues

GetValues returns the Values field value if set, zero value otherwise.

func (*ViewInvolvedObjectsSelectorMatchExpressionsItem) GetValuesOk

GetValuesOk returns a tuple with the Values field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ViewInvolvedObjectsSelectorMatchExpressionsItem) HasKey

HasKey returns a boolean if a field has been set.

func (*ViewInvolvedObjectsSelectorMatchExpressionsItem) HasOperator

HasOperator returns a boolean if a field has been set.

func (*ViewInvolvedObjectsSelectorMatchExpressionsItem) HasValues

HasValues returns a boolean if a field has been set.

func (ViewInvolvedObjectsSelectorMatchExpressionsItem) MarshalJSON

MarshalJSON serializes the struct using spec logic.

func (*ViewInvolvedObjectsSelectorMatchExpressionsItem) SetKey

SetKey gets a reference to the given string and assigns it to the Key field.

func (*ViewInvolvedObjectsSelectorMatchExpressionsItem) SetOperator

SetOperator gets a reference to the given string and assigns it to the Operator field.

func (*ViewInvolvedObjectsSelectorMatchExpressionsItem) SetValues

SetValues gets a reference to the given []string and assigns it to the Values field.

func (*ViewInvolvedObjectsSelectorMatchExpressionsItem) UnmarshalJSON

func (o *ViewInvolvedObjectsSelectorMatchExpressionsItem) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type View_event

type View_event struct {
	// Group is the API group of the event.
	Group string `json:"group"`
	// Kind is the type of the event.
	Kind string `json:"kind"`
	// Name is the name of the event.
	Name string `json:"name"`
	// Namespace is the namespace of the event.
	Namespace string `json:"namespace"`
	// Owners are the owners of the event.
	Owners []Owner `json:"owners,omitempty"`
	// Progress describes the progress of the event.
	Progress *string `json:"progress,omitempty"`
	// Message is the message contained in the event.
	Message *string `json:"message,omitempty"`
	// ResourceVersion is the version of the resource as seen by the system.
	ResourceVersion *string `json:"resourceVersion,omitempty"`
	// Type is the type of the event.
	Type string `json:"type"`
	// Version is the version of the resource that generated the event.
	Version *string `json:"version,omitempty"`
	// Time is the time of the resource that generated the event.
	Time *string `json:"time,omitempty"`
	// Level is the level the event.
	Level *string `json:"level,omitempty"`
	// Reason is the reason of the event.
	Reason *string `json:"reason,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

View_event Event related to the view

func NewView_event

func NewView_event(group string, kind string, name string, namespace string, typeVar string) *View_event

NewView_event instantiates a new View_event 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 NewView_eventWithDefaults

func NewView_eventWithDefaults() *View_event

NewView_eventWithDefaults instantiates a new View_event 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 (*View_event) GetGroup

func (o *View_event) GetGroup() string

GetGroup returns the Group field value.

func (*View_event) GetGroupOk

func (o *View_event) GetGroupOk() (*string, bool)

GetGroupOk returns a tuple with the Group field value and a boolean to check if the value has been set.

func (*View_event) GetKind

func (o *View_event) GetKind() string

GetKind returns the Kind field value.

func (*View_event) GetKindOk

func (o *View_event) GetKindOk() (*string, bool)

GetKindOk returns a tuple with the Kind field value and a boolean to check if the value has been set.

func (*View_event) GetLevel

func (o *View_event) GetLevel() string

GetLevel returns the Level field value if set, zero value otherwise.

func (*View_event) GetLevelOk

func (o *View_event) GetLevelOk() (*string, bool)

GetLevelOk returns a tuple with the Level field value if set, nil otherwise and a boolean to check if the value has been set.

func (*View_event) GetMessage

func (o *View_event) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*View_event) GetMessageOk

func (o *View_event) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.

func (*View_event) GetName

func (o *View_event) GetName() string

GetName returns the Name field value.

func (*View_event) GetNameOk

func (o *View_event) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*View_event) GetNamespace

func (o *View_event) GetNamespace() string

GetNamespace returns the Namespace field value.

func (*View_event) GetNamespaceOk

func (o *View_event) GetNamespaceOk() (*string, bool)

GetNamespaceOk returns a tuple with the Namespace field value and a boolean to check if the value has been set.

func (*View_event) GetOwners

func (o *View_event) GetOwners() []Owner

GetOwners returns the Owners field value if set, zero value otherwise.

func (*View_event) GetOwnersOk

func (o *View_event) GetOwnersOk() (*[]Owner, bool)

GetOwnersOk returns a tuple with the Owners field value if set, nil otherwise and a boolean to check if the value has been set.

func (*View_event) GetProgress

func (o *View_event) GetProgress() string

GetProgress returns the Progress field value if set, zero value otherwise.

func (*View_event) GetProgressOk

func (o *View_event) GetProgressOk() (*string, bool)

GetProgressOk returns a tuple with the Progress field value if set, nil otherwise and a boolean to check if the value has been set.

func (*View_event) GetReason

func (o *View_event) GetReason() string

GetReason returns the Reason field value if set, zero value otherwise.

func (*View_event) GetReasonOk

func (o *View_event) GetReasonOk() (*string, bool)

GetReasonOk returns a tuple with the Reason field value if set, nil otherwise and a boolean to check if the value has been set.

func (*View_event) GetResourceVersion

func (o *View_event) GetResourceVersion() string

GetResourceVersion returns the ResourceVersion field value if set, zero value otherwise.

func (*View_event) GetResourceVersionOk

func (o *View_event) GetResourceVersionOk() (*string, bool)

GetResourceVersionOk returns a tuple with the ResourceVersion field value if set, nil otherwise and a boolean to check if the value has been set.

func (*View_event) GetTime

func (o *View_event) GetTime() string

GetTime returns the Time field value if set, zero value otherwise.

func (*View_event) GetTimeOk

func (o *View_event) GetTimeOk() (*string, bool)

GetTimeOk returns a tuple with the Time field value if set, nil otherwise and a boolean to check if the value has been set.

func (*View_event) GetType

func (o *View_event) GetType() string

GetType returns the Type field value.

func (*View_event) GetTypeOk

func (o *View_event) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (*View_event) GetVersion

func (o *View_event) GetVersion() string

GetVersion returns the Version field value if set, zero value otherwise.

func (*View_event) GetVersionOk

func (o *View_event) GetVersionOk() (*string, bool)

GetVersionOk returns a tuple with the Version field value if set, nil otherwise and a boolean to check if the value has been set.

func (*View_event) HasLevel

func (o *View_event) HasLevel() bool

HasLevel returns a boolean if a field has been set.

func (*View_event) HasMessage

func (o *View_event) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*View_event) HasOwners

func (o *View_event) HasOwners() bool

HasOwners returns a boolean if a field has been set.

func (*View_event) HasProgress

func (o *View_event) HasProgress() bool

HasProgress returns a boolean if a field has been set.

func (*View_event) HasReason

func (o *View_event) HasReason() bool

HasReason returns a boolean if a field has been set.

func (*View_event) HasResourceVersion

func (o *View_event) HasResourceVersion() bool

HasResourceVersion returns a boolean if a field has been set.

func (*View_event) HasTime

func (o *View_event) HasTime() bool

HasTime returns a boolean if a field has been set.

func (*View_event) HasVersion

func (o *View_event) HasVersion() bool

HasVersion returns a boolean if a field has been set.

func (View_event) MarshalJSON

func (o View_event) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*View_event) SetGroup

func (o *View_event) SetGroup(v string)

SetGroup sets field value.

func (*View_event) SetKind

func (o *View_event) SetKind(v string)

SetKind sets field value.

func (*View_event) SetLevel

func (o *View_event) SetLevel(v string)

SetLevel gets a reference to the given string and assigns it to the Level field.

func (*View_event) SetMessage

func (o *View_event) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (*View_event) SetName

func (o *View_event) SetName(v string)

SetName sets field value.

func (*View_event) SetNamespace

func (o *View_event) SetNamespace(v string)

SetNamespace sets field value.

func (*View_event) SetOwners

func (o *View_event) SetOwners(v []Owner)

SetOwners gets a reference to the given []Owner and assigns it to the Owners field.

func (*View_event) SetProgress

func (o *View_event) SetProgress(v string)

SetProgress gets a reference to the given string and assigns it to the Progress field.

func (*View_event) SetReason

func (o *View_event) SetReason(v string)

SetReason gets a reference to the given string and assigns it to the Reason field.

func (*View_event) SetResourceVersion

func (o *View_event) SetResourceVersion(v string)

SetResourceVersion gets a reference to the given string and assigns it to the ResourceVersion field.

func (*View_event) SetTime

func (o *View_event) SetTime(v string)

SetTime gets a reference to the given string and assigns it to the Time field.

func (*View_event) SetType

func (o *View_event) SetType(v string)

SetType sets field value.

func (*View_event) SetVersion

func (o *View_event) SetVersion(v string)

SetVersion gets a reference to the given string and assigns it to the Version field.

func (*View_event) UnmarshalJSON

func (o *View_event) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type Volume

type Volume struct {
	Name      *string `json:"name,omitempty"`
	Type      *string `json:"type,omitempty"`
	IsDefault *string `json:"isDefault,omitempty"`
	Location  *string `json:"location,omitempty"`
	Params    *string `json:"params,omitempty"`
	Comment   *string `json:"comment,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

func NewVolume

func NewVolume() *Volume

NewVolume instantiates a new Volume 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 NewVolumeWithDefaults

func NewVolumeWithDefaults() *Volume

NewVolumeWithDefaults instantiates a new Volume 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 (*Volume) GetComment

func (o *Volume) GetComment() string

GetComment returns the Comment field value if set, zero value otherwise.

func (*Volume) GetCommentOk

func (o *Volume) GetCommentOk() (*string, bool)

GetCommentOk returns a tuple with the Comment field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Volume) GetIsDefault

func (o *Volume) GetIsDefault() string

GetIsDefault returns the IsDefault field value if set, zero value otherwise.

func (*Volume) GetIsDefaultOk

func (o *Volume) GetIsDefaultOk() (*string, bool)

GetIsDefaultOk returns a tuple with the IsDefault field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Volume) GetLocation

func (o *Volume) GetLocation() string

GetLocation returns the Location field value if set, zero value otherwise.

func (*Volume) GetLocationOk

func (o *Volume) GetLocationOk() (*string, bool)

GetLocationOk returns a tuple with the Location field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Volume) GetName

func (o *Volume) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*Volume) GetNameOk

func (o *Volume) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Volume) GetParams

func (o *Volume) GetParams() string

GetParams returns the Params field value if set, zero value otherwise.

func (*Volume) GetParamsOk

func (o *Volume) GetParamsOk() (*string, bool)

GetParamsOk returns a tuple with the Params field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Volume) GetType

func (o *Volume) GetType() string

GetType returns the Type field value if set, zero value otherwise.

func (*Volume) GetTypeOk

func (o *Volume) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Volume) HasComment

func (o *Volume) HasComment() bool

HasComment returns a boolean if a field has been set.

func (*Volume) HasIsDefault

func (o *Volume) HasIsDefault() bool

HasIsDefault returns a boolean if a field has been set.

func (*Volume) HasLocation

func (o *Volume) HasLocation() bool

HasLocation returns a boolean if a field has been set.

func (*Volume) HasName

func (o *Volume) HasName() bool

HasName returns a boolean if a field has been set.

func (*Volume) HasParams

func (o *Volume) HasParams() bool

HasParams returns a boolean if a field has been set.

func (*Volume) HasType

func (o *Volume) HasType() bool

HasType returns a boolean if a field has been set.

func (Volume) MarshalJSON

func (o Volume) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*Volume) SetComment

func (o *Volume) SetComment(v string)

SetComment gets a reference to the given string and assigns it to the Comment field.

func (*Volume) SetIsDefault

func (o *Volume) SetIsDefault(v string)

SetIsDefault gets a reference to the given string and assigns it to the IsDefault field.

func (*Volume) SetLocation

func (o *Volume) SetLocation(v string)

SetLocation gets a reference to the given string and assigns it to the Location field.

func (*Volume) SetName

func (o *Volume) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*Volume) SetParams

func (o *Volume) SetParams(v string)

SetParams gets a reference to the given string and assigns it to the Params field.

func (*Volume) SetType

func (o *Volume) SetType(v string)

SetType gets a reference to the given string and assigns it to the Type field.

func (*Volume) UnmarshalJSON

func (o *Volume) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type VolumeRestorePolicy

type VolumeRestorePolicy string

VolumeRestorePolicy the volume claim restore policy, support values: [Serial, Parallel]

const (
	VolumeRestorePolicySerial   VolumeRestorePolicy = "Serial"
	VolumeRestorePolicyParallel VolumeRestorePolicy = "Parallel"
)

List of VolumeRestorePolicy.

func NewVolumeRestorePolicyFromValue

func NewVolumeRestorePolicyFromValue(v string) (*VolumeRestorePolicy, error)

NewVolumeRestorePolicyFromValue returns a pointer to a valid VolumeRestorePolicy for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*VolumeRestorePolicy) GetAllowedValues

func (v *VolumeRestorePolicy) GetAllowedValues() []VolumeRestorePolicy

GetAllowedValues returns the list of possible values.

func (VolumeRestorePolicy) IsValid

func (v VolumeRestorePolicy) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (VolumeRestorePolicy) Ptr

Ptr returns reference to VolumeRestorePolicy value.

func (*VolumeRestorePolicy) UnmarshalJSON

func (v *VolumeRestorePolicy) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type WebhookConfig

type WebhookConfig struct {
	Url string `json:"url"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

WebhookConfig Webhook config of alert receiver

func NewWebhookConfig

func NewWebhookConfig(url string) *WebhookConfig

NewWebhookConfig instantiates a new WebhookConfig 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 NewWebhookConfigWithDefaults

func NewWebhookConfigWithDefaults() *WebhookConfig

NewWebhookConfigWithDefaults instantiates a new WebhookConfig 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 (*WebhookConfig) GetUrl

func (o *WebhookConfig) GetUrl() string

GetUrl returns the Url field value.

func (*WebhookConfig) GetUrlOk

func (o *WebhookConfig) GetUrlOk() (*string, bool)

GetUrlOk returns a tuple with the Url field value and a boolean to check if the value has been set.

func (WebhookConfig) MarshalJSON

func (o WebhookConfig) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*WebhookConfig) SetUrl

func (o *WebhookConfig) SetUrl(v string)

SetUrl sets field value.

func (*WebhookConfig) UnmarshalJSON

func (o *WebhookConfig) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type WhitelistApi

type WhitelistApi common.Service

WhitelistApi service type

func NewWhitelistApi

func NewWhitelistApi(client *common.APIClient) *WhitelistApi

NewWhitelistApi Returns NewWhitelistApi.

func (*WhitelistApi) DeleteIPWhiteList

func (a *WhitelistApi) DeleteIPWhiteList(ctx _context.Context, orgName string, clusterName string, ipWhitelistId string) (*_nethttp.Response, error)

DeleteIPWhiteList Delete IP whitelist.

type Ycsb

type Ycsb struct {
	// Step of benchmark
	Step *YcsbStep `json:"step,omitempty"`
	// the cpu limit for test container
	LimitCpu *string `json:"limitCpu,omitempty"`
	// the memory limit for test container
	LimitMemory *string `json:"limitMemory,omitempty"`
	// the cpu request for test container
	RequestCpu *string `json:"requestCpu,omitempty"`
	// the memory request for test container
	RequestMemory *string `json:"requestMemory,omitempty"`
	// the name of benchmark
	Name *string `json:"name,omitempty"`
	// the database name
	Database *string `json:"database,omitempty"`
	// the cluster name
	Cluster string `json:"cluster"`
	// Username for database
	Username string `json:"username"`
	// Password for database
	Password string `json:"password"`
	// Address for database
	Address string `json:"address"`
	// Number of records to load into database
	RecordCount *int32 `json:"recordCount,omitempty"`
	// Number of operations to perform
	OperationCount *int32 `json:"operationCount,omitempty"`
	// Percentage of read operations
	ReadProportion *int32 `json:"readProportion,omitempty"`
	// Percentage of update operations
	UpdateProportion *int32 `json:"updateProportion,omitempty"`
	// Percentage of insert operations
	InsertProportion *int32 `json:"insertProportion,omitempty"`
	// Percentage of read-modify-write operations
	ReadModifyWriteProportion *int32 `json:"readModifyWriteProportion,omitempty"`
	// Percentage of scan operations
	ScanProportion *int32 `json:"scanProportion,omitempty"`
	// Number of client threads to run
	Threads *int32 `json:"threads,omitempty"`
	// Extra arguments for ycsb
	ExtraArgs *string `json:"extraArgs,omitempty"`
	// Redis mode
	RedisMode *YcsbRedisMode `json:"redisMode,omitempty"`
	// Redis sentinel master
	RedisSentinelMaster *string `json:"redisSentinelMaster,omitempty"`
	// Redis sentinel username
	RedisSentinelUsername *string `json:"redisSentinelUsername,omitempty"`
	// Redis sentinel password
	RedisSentinelPassword *string `json:"redisSentinelPassword,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

Ycsb ycsb is the ycsb benchmark object

func NewYcsb

func NewYcsb(cluster string, username string, password string, address string) *Ycsb

NewYcsb instantiates a new Ycsb 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 NewYcsbWithDefaults

func NewYcsbWithDefaults() *Ycsb

NewYcsbWithDefaults instantiates a new Ycsb 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 (*Ycsb) GetAddress

func (o *Ycsb) GetAddress() string

GetAddress returns the Address field value.

func (*Ycsb) GetAddressOk

func (o *Ycsb) GetAddressOk() (*string, bool)

GetAddressOk returns a tuple with the Address field value and a boolean to check if the value has been set.

func (*Ycsb) GetCluster

func (o *Ycsb) GetCluster() string

GetCluster returns the Cluster field value.

func (*Ycsb) GetClusterOk

func (o *Ycsb) GetClusterOk() (*string, bool)

GetClusterOk returns a tuple with the Cluster field value and a boolean to check if the value has been set.

func (*Ycsb) GetDatabase

func (o *Ycsb) GetDatabase() string

GetDatabase returns the Database field value if set, zero value otherwise.

func (*Ycsb) GetDatabaseOk

func (o *Ycsb) GetDatabaseOk() (*string, bool)

GetDatabaseOk returns a tuple with the Database field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Ycsb) GetExtraArgs

func (o *Ycsb) GetExtraArgs() string

GetExtraArgs returns the ExtraArgs field value if set, zero value otherwise.

func (*Ycsb) GetExtraArgsOk

func (o *Ycsb) GetExtraArgsOk() (*string, bool)

GetExtraArgsOk returns a tuple with the ExtraArgs field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Ycsb) GetInsertProportion

func (o *Ycsb) GetInsertProportion() int32

GetInsertProportion returns the InsertProportion field value if set, zero value otherwise.

func (*Ycsb) GetInsertProportionOk

func (o *Ycsb) GetInsertProportionOk() (*int32, bool)

GetInsertProportionOk returns a tuple with the InsertProportion field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Ycsb) GetLimitCpu

func (o *Ycsb) GetLimitCpu() string

GetLimitCpu returns the LimitCpu field value if set, zero value otherwise.

func (*Ycsb) GetLimitCpuOk

func (o *Ycsb) GetLimitCpuOk() (*string, bool)

GetLimitCpuOk returns a tuple with the LimitCpu field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Ycsb) GetLimitMemory

func (o *Ycsb) GetLimitMemory() string

GetLimitMemory returns the LimitMemory field value if set, zero value otherwise.

func (*Ycsb) GetLimitMemoryOk

func (o *Ycsb) GetLimitMemoryOk() (*string, bool)

GetLimitMemoryOk returns a tuple with the LimitMemory field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Ycsb) GetName

func (o *Ycsb) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*Ycsb) GetNameOk

func (o *Ycsb) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Ycsb) GetOperationCount

func (o *Ycsb) GetOperationCount() int32

GetOperationCount returns the OperationCount field value if set, zero value otherwise.

func (*Ycsb) GetOperationCountOk

func (o *Ycsb) GetOperationCountOk() (*int32, bool)

GetOperationCountOk returns a tuple with the OperationCount field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Ycsb) GetPassword

func (o *Ycsb) GetPassword() string

GetPassword returns the Password field value.

func (*Ycsb) GetPasswordOk

func (o *Ycsb) GetPasswordOk() (*string, bool)

GetPasswordOk returns a tuple with the Password field value and a boolean to check if the value has been set.

func (*Ycsb) GetReadModifyWriteProportion

func (o *Ycsb) GetReadModifyWriteProportion() int32

GetReadModifyWriteProportion returns the ReadModifyWriteProportion field value if set, zero value otherwise.

func (*Ycsb) GetReadModifyWriteProportionOk

func (o *Ycsb) GetReadModifyWriteProportionOk() (*int32, bool)

GetReadModifyWriteProportionOk returns a tuple with the ReadModifyWriteProportion field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Ycsb) GetReadProportion

func (o *Ycsb) GetReadProportion() int32

GetReadProportion returns the ReadProportion field value if set, zero value otherwise.

func (*Ycsb) GetReadProportionOk

func (o *Ycsb) GetReadProportionOk() (*int32, bool)

GetReadProportionOk returns a tuple with the ReadProportion field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Ycsb) GetRecordCount

func (o *Ycsb) GetRecordCount() int32

GetRecordCount returns the RecordCount field value if set, zero value otherwise.

func (*Ycsb) GetRecordCountOk

func (o *Ycsb) GetRecordCountOk() (*int32, bool)

GetRecordCountOk returns a tuple with the RecordCount field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Ycsb) GetRedisMode

func (o *Ycsb) GetRedisMode() YcsbRedisMode

GetRedisMode returns the RedisMode field value if set, zero value otherwise.

func (*Ycsb) GetRedisModeOk

func (o *Ycsb) GetRedisModeOk() (*YcsbRedisMode, bool)

GetRedisModeOk returns a tuple with the RedisMode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Ycsb) GetRedisSentinelMaster

func (o *Ycsb) GetRedisSentinelMaster() string

GetRedisSentinelMaster returns the RedisSentinelMaster field value if set, zero value otherwise.

func (*Ycsb) GetRedisSentinelMasterOk

func (o *Ycsb) GetRedisSentinelMasterOk() (*string, bool)

GetRedisSentinelMasterOk returns a tuple with the RedisSentinelMaster field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Ycsb) GetRedisSentinelPassword

func (o *Ycsb) GetRedisSentinelPassword() string

GetRedisSentinelPassword returns the RedisSentinelPassword field value if set, zero value otherwise.

func (*Ycsb) GetRedisSentinelPasswordOk

func (o *Ycsb) GetRedisSentinelPasswordOk() (*string, bool)

GetRedisSentinelPasswordOk returns a tuple with the RedisSentinelPassword field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Ycsb) GetRedisSentinelUsername

func (o *Ycsb) GetRedisSentinelUsername() string

GetRedisSentinelUsername returns the RedisSentinelUsername field value if set, zero value otherwise.

func (*Ycsb) GetRedisSentinelUsernameOk

func (o *Ycsb) GetRedisSentinelUsernameOk() (*string, bool)

GetRedisSentinelUsernameOk returns a tuple with the RedisSentinelUsername field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Ycsb) GetRequestCpu

func (o *Ycsb) GetRequestCpu() string

GetRequestCpu returns the RequestCpu field value if set, zero value otherwise.

func (*Ycsb) GetRequestCpuOk

func (o *Ycsb) GetRequestCpuOk() (*string, bool)

GetRequestCpuOk returns a tuple with the RequestCpu field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Ycsb) GetRequestMemory

func (o *Ycsb) GetRequestMemory() string

GetRequestMemory returns the RequestMemory field value if set, zero value otherwise.

func (*Ycsb) GetRequestMemoryOk

func (o *Ycsb) GetRequestMemoryOk() (*string, bool)

GetRequestMemoryOk returns a tuple with the RequestMemory field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Ycsb) GetScanProportion

func (o *Ycsb) GetScanProportion() int32

GetScanProportion returns the ScanProportion field value if set, zero value otherwise.

func (*Ycsb) GetScanProportionOk

func (o *Ycsb) GetScanProportionOk() (*int32, bool)

GetScanProportionOk returns a tuple with the ScanProportion field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Ycsb) GetStep

func (o *Ycsb) GetStep() YcsbStep

GetStep returns the Step field value if set, zero value otherwise.

func (*Ycsb) GetStepOk

func (o *Ycsb) GetStepOk() (*YcsbStep, bool)

GetStepOk returns a tuple with the Step field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Ycsb) GetThreads

func (o *Ycsb) GetThreads() int32

GetThreads returns the Threads field value if set, zero value otherwise.

func (*Ycsb) GetThreadsOk

func (o *Ycsb) GetThreadsOk() (*int32, bool)

GetThreadsOk returns a tuple with the Threads field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Ycsb) GetUpdateProportion

func (o *Ycsb) GetUpdateProportion() int32

GetUpdateProportion returns the UpdateProportion field value if set, zero value otherwise.

func (*Ycsb) GetUpdateProportionOk

func (o *Ycsb) GetUpdateProportionOk() (*int32, bool)

GetUpdateProportionOk returns a tuple with the UpdateProportion field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Ycsb) GetUsername

func (o *Ycsb) GetUsername() string

GetUsername returns the Username field value.

func (*Ycsb) GetUsernameOk

func (o *Ycsb) GetUsernameOk() (*string, bool)

GetUsernameOk returns a tuple with the Username field value and a boolean to check if the value has been set.

func (*Ycsb) HasDatabase

func (o *Ycsb) HasDatabase() bool

HasDatabase returns a boolean if a field has been set.

func (*Ycsb) HasExtraArgs

func (o *Ycsb) HasExtraArgs() bool

HasExtraArgs returns a boolean if a field has been set.

func (*Ycsb) HasInsertProportion

func (o *Ycsb) HasInsertProportion() bool

HasInsertProportion returns a boolean if a field has been set.

func (*Ycsb) HasLimitCpu

func (o *Ycsb) HasLimitCpu() bool

HasLimitCpu returns a boolean if a field has been set.

func (*Ycsb) HasLimitMemory

func (o *Ycsb) HasLimitMemory() bool

HasLimitMemory returns a boolean if a field has been set.

func (*Ycsb) HasName

func (o *Ycsb) HasName() bool

HasName returns a boolean if a field has been set.

func (*Ycsb) HasOperationCount

func (o *Ycsb) HasOperationCount() bool

HasOperationCount returns a boolean if a field has been set.

func (*Ycsb) HasReadModifyWriteProportion

func (o *Ycsb) HasReadModifyWriteProportion() bool

HasReadModifyWriteProportion returns a boolean if a field has been set.

func (*Ycsb) HasReadProportion

func (o *Ycsb) HasReadProportion() bool

HasReadProportion returns a boolean if a field has been set.

func (*Ycsb) HasRecordCount

func (o *Ycsb) HasRecordCount() bool

HasRecordCount returns a boolean if a field has been set.

func (*Ycsb) HasRedisMode

func (o *Ycsb) HasRedisMode() bool

HasRedisMode returns a boolean if a field has been set.

func (*Ycsb) HasRedisSentinelMaster

func (o *Ycsb) HasRedisSentinelMaster() bool

HasRedisSentinelMaster returns a boolean if a field has been set.

func (*Ycsb) HasRedisSentinelPassword

func (o *Ycsb) HasRedisSentinelPassword() bool

HasRedisSentinelPassword returns a boolean if a field has been set.

func (*Ycsb) HasRedisSentinelUsername

func (o *Ycsb) HasRedisSentinelUsername() bool

HasRedisSentinelUsername returns a boolean if a field has been set.

func (*Ycsb) HasRequestCpu

func (o *Ycsb) HasRequestCpu() bool

HasRequestCpu returns a boolean if a field has been set.

func (*Ycsb) HasRequestMemory

func (o *Ycsb) HasRequestMemory() bool

HasRequestMemory returns a boolean if a field has been set.

func (*Ycsb) HasScanProportion

func (o *Ycsb) HasScanProportion() bool

HasScanProportion returns a boolean if a field has been set.

func (*Ycsb) HasStep

func (o *Ycsb) HasStep() bool

HasStep returns a boolean if a field has been set.

func (*Ycsb) HasThreads

func (o *Ycsb) HasThreads() bool

HasThreads returns a boolean if a field has been set.

func (*Ycsb) HasUpdateProportion

func (o *Ycsb) HasUpdateProportion() bool

HasUpdateProportion returns a boolean if a field has been set.

func (Ycsb) MarshalJSON

func (o Ycsb) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*Ycsb) SetAddress

func (o *Ycsb) SetAddress(v string)

SetAddress sets field value.

func (*Ycsb) SetCluster

func (o *Ycsb) SetCluster(v string)

SetCluster sets field value.

func (*Ycsb) SetDatabase

func (o *Ycsb) SetDatabase(v string)

SetDatabase gets a reference to the given string and assigns it to the Database field.

func (*Ycsb) SetExtraArgs

func (o *Ycsb) SetExtraArgs(v string)

SetExtraArgs gets a reference to the given string and assigns it to the ExtraArgs field.

func (*Ycsb) SetInsertProportion

func (o *Ycsb) SetInsertProportion(v int32)

SetInsertProportion gets a reference to the given int32 and assigns it to the InsertProportion field.

func (*Ycsb) SetLimitCpu

func (o *Ycsb) SetLimitCpu(v string)

SetLimitCpu gets a reference to the given string and assigns it to the LimitCpu field.

func (*Ycsb) SetLimitMemory

func (o *Ycsb) SetLimitMemory(v string)

SetLimitMemory gets a reference to the given string and assigns it to the LimitMemory field.

func (*Ycsb) SetName

func (o *Ycsb) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*Ycsb) SetOperationCount

func (o *Ycsb) SetOperationCount(v int32)

SetOperationCount gets a reference to the given int32 and assigns it to the OperationCount field.

func (*Ycsb) SetPassword

func (o *Ycsb) SetPassword(v string)

SetPassword sets field value.

func (*Ycsb) SetReadModifyWriteProportion

func (o *Ycsb) SetReadModifyWriteProportion(v int32)

SetReadModifyWriteProportion gets a reference to the given int32 and assigns it to the ReadModifyWriteProportion field.

func (*Ycsb) SetReadProportion

func (o *Ycsb) SetReadProportion(v int32)

SetReadProportion gets a reference to the given int32 and assigns it to the ReadProportion field.

func (*Ycsb) SetRecordCount

func (o *Ycsb) SetRecordCount(v int32)

SetRecordCount gets a reference to the given int32 and assigns it to the RecordCount field.

func (*Ycsb) SetRedisMode

func (o *Ycsb) SetRedisMode(v YcsbRedisMode)

SetRedisMode gets a reference to the given YcsbRedisMode and assigns it to the RedisMode field.

func (*Ycsb) SetRedisSentinelMaster

func (o *Ycsb) SetRedisSentinelMaster(v string)

SetRedisSentinelMaster gets a reference to the given string and assigns it to the RedisSentinelMaster field.

func (*Ycsb) SetRedisSentinelPassword

func (o *Ycsb) SetRedisSentinelPassword(v string)

SetRedisSentinelPassword gets a reference to the given string and assigns it to the RedisSentinelPassword field.

func (*Ycsb) SetRedisSentinelUsername

func (o *Ycsb) SetRedisSentinelUsername(v string)

SetRedisSentinelUsername gets a reference to the given string and assigns it to the RedisSentinelUsername field.

func (*Ycsb) SetRequestCpu

func (o *Ycsb) SetRequestCpu(v string)

SetRequestCpu gets a reference to the given string and assigns it to the RequestCpu field.

func (*Ycsb) SetRequestMemory

func (o *Ycsb) SetRequestMemory(v string)

SetRequestMemory gets a reference to the given string and assigns it to the RequestMemory field.

func (*Ycsb) SetScanProportion

func (o *Ycsb) SetScanProportion(v int32)

SetScanProportion gets a reference to the given int32 and assigns it to the ScanProportion field.

func (*Ycsb) SetStep

func (o *Ycsb) SetStep(v YcsbStep)

SetStep gets a reference to the given YcsbStep and assigns it to the Step field.

func (*Ycsb) SetThreads

func (o *Ycsb) SetThreads(v int32)

SetThreads gets a reference to the given int32 and assigns it to the Threads field.

func (*Ycsb) SetUpdateProportion

func (o *Ycsb) SetUpdateProportion(v int32)

SetUpdateProportion gets a reference to the given int32 and assigns it to the UpdateProportion field.

func (*Ycsb) SetUsername

func (o *Ycsb) SetUsername(v string)

SetUsername sets field value.

func (*Ycsb) UnmarshalJSON

func (o *Ycsb) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type YcsbRedisMode

type YcsbRedisMode string

YcsbRedisMode Redis mode

const (
	YcsbRedisModeSingle   YcsbRedisMode = "single"
	YcsbRedisModeSentinel YcsbRedisMode = "sentinel"
	YcsbRedisModeCluster  YcsbRedisMode = "cluster"
)

List of YcsbRedisMode.

func NewYcsbRedisModeFromValue

func NewYcsbRedisModeFromValue(v string) (*YcsbRedisMode, error)

NewYcsbRedisModeFromValue returns a pointer to a valid YcsbRedisMode for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*YcsbRedisMode) GetAllowedValues

func (v *YcsbRedisMode) GetAllowedValues() []YcsbRedisMode

GetAllowedValues returns the list of possible values.

func (YcsbRedisMode) IsValid

func (v YcsbRedisMode) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (YcsbRedisMode) Ptr

func (v YcsbRedisMode) Ptr() *YcsbRedisMode

Ptr returns reference to YcsbRedisMode value.

func (*YcsbRedisMode) UnmarshalJSON

func (v *YcsbRedisMode) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type YcsbStep

type YcsbStep string

YcsbStep Step of benchmark

const (
	YcsbStepPrepare YcsbStep = "prepare"
	YcsbStepRun     YcsbStep = "run"
	YcsbStepCleanup YcsbStep = "cleanup"
	YcsbStepAll     YcsbStep = "all"
)

List of YcsbStep.

func NewYcsbStepFromValue

func NewYcsbStepFromValue(v string) (*YcsbStep, error)

NewYcsbStepFromValue returns a pointer to a valid YcsbStep for the value passed as argument, or an error if the value passed is not allowed by the enum.

func (*YcsbStep) GetAllowedValues

func (v *YcsbStep) GetAllowedValues() []YcsbStep

GetAllowedValues returns the list of possible values.

func (YcsbStep) IsValid

func (v YcsbStep) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise.

func (YcsbStep) Ptr

func (v YcsbStep) Ptr() *YcsbStep

Ptr returns reference to YcsbStep value.

func (*YcsbStep) UnmarshalJSON

func (v *YcsbStep) UnmarshalJSON(src []byte) error

UnmarshalJSON deserializes the given payload.

type Zone

type Zone struct {
	// The name of the zone.
	Name string `json:"name"`
	// The Chinese name of the zone.
	NameCn string `json:"nameCN"`
	// The English name of the zone.
	NameEn string `json:"nameEN"`
	// Whether the zone is enabled.
	Enabled bool `json:"enabled"`
	// The name of the region.
	Region string `json:"region"`
	// The time when the zone was created.
	CreatedAt time.Time `json:"createdAt"`
	// The time when the zone was last updated.
	UpdatedAt time.Time `json:"updatedAt"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

Zone The zone that the region has.

func NewZone

func NewZone(name string, nameCn string, nameEn string, enabled bool, region string, createdAt time.Time, updatedAt time.Time) *Zone

NewZone instantiates a new Zone 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 NewZoneWithDefaults

func NewZoneWithDefaults() *Zone

NewZoneWithDefaults instantiates a new Zone 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 (*Zone) GetCreatedAt

func (o *Zone) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field value.

func (*Zone) GetCreatedAtOk

func (o *Zone) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value and a boolean to check if the value has been set.

func (*Zone) GetEnabled

func (o *Zone) GetEnabled() bool

GetEnabled returns the Enabled field value.

func (*Zone) GetEnabledOk

func (o *Zone) GetEnabledOk() (*bool, bool)

GetEnabledOk returns a tuple with the Enabled field value and a boolean to check if the value has been set.

func (*Zone) GetName

func (o *Zone) GetName() string

GetName returns the Name field value.

func (*Zone) GetNameCn

func (o *Zone) GetNameCn() string

GetNameCn returns the NameCn field value.

func (*Zone) GetNameCnOk

func (o *Zone) GetNameCnOk() (*string, bool)

GetNameCnOk returns a tuple with the NameCn field value and a boolean to check if the value has been set.

func (*Zone) GetNameEn

func (o *Zone) GetNameEn() string

GetNameEn returns the NameEn field value.

func (*Zone) GetNameEnOk

func (o *Zone) GetNameEnOk() (*string, bool)

GetNameEnOk returns a tuple with the NameEn field value and a boolean to check if the value has been set.

func (*Zone) GetNameOk

func (o *Zone) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*Zone) GetRegion

func (o *Zone) GetRegion() string

GetRegion returns the Region field value.

func (*Zone) GetRegionOk

func (o *Zone) GetRegionOk() (*string, bool)

GetRegionOk returns a tuple with the Region field value and a boolean to check if the value has been set.

func (*Zone) GetUpdatedAt

func (o *Zone) GetUpdatedAt() time.Time

GetUpdatedAt returns the UpdatedAt field value.

func (*Zone) GetUpdatedAtOk

func (o *Zone) GetUpdatedAtOk() (*time.Time, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value and a boolean to check if the value has been set.

func (Zone) MarshalJSON

func (o Zone) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*Zone) SetCreatedAt

func (o *Zone) SetCreatedAt(v time.Time)

SetCreatedAt sets field value.

func (*Zone) SetEnabled

func (o *Zone) SetEnabled(v bool)

SetEnabled sets field value.

func (*Zone) SetName

func (o *Zone) SetName(v string)

SetName sets field value.

func (*Zone) SetNameCn

func (o *Zone) SetNameCn(v string)

SetNameCn sets field value.

func (*Zone) SetNameEn

func (o *Zone) SetNameEn(v string)

SetNameEn sets field value.

func (*Zone) SetRegion

func (o *Zone) SetRegion(v string)

SetRegion sets field value.

func (*Zone) SetUpdatedAt

func (o *Zone) SetUpdatedAt(v time.Time)

SetUpdatedAt sets field value.

func (*Zone) UnmarshalJSON

func (o *Zone) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

type ZoneApi

type ZoneApi common.Service

ZoneApi service type

func NewZoneApi

func NewZoneApi(client *common.APIClient) *ZoneApi

NewZoneApi Returns NewZoneApi.

func (*ZoneApi) GetZones

func (a *ZoneApi) GetZones(ctx _context.Context, providerName string, regionName string, zoneName string) (Zone, *_nethttp.Response, error)

GetZones Get zone. Get zone

func (*ZoneApi) ListZones

func (a *ZoneApi) ListZones(ctx _context.Context, providerName string, regionName string) (ZoneList, *_nethttp.Response, error)

ListZones Get zone list. Get zone list

type ZoneList

type ZoneList struct {
	// The list of zones.
	Items []Zone `json:"items,omitempty"`
	// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
	UnparsedObject       map[string]interface{} `json:"-"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ZoneList The list of zones.

func NewZoneList

func NewZoneList() *ZoneList

NewZoneList instantiates a new ZoneList 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 NewZoneListWithDefaults

func NewZoneListWithDefaults() *ZoneList

NewZoneListWithDefaults instantiates a new ZoneList 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 (*ZoneList) GetItems

func (o *ZoneList) GetItems() []Zone

GetItems returns the Items field value if set, zero value otherwise.

func (*ZoneList) GetItemsOk

func (o *ZoneList) GetItemsOk() (*[]Zone, bool)

GetItemsOk returns a tuple with the Items field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ZoneList) HasItems

func (o *ZoneList) HasItems() bool

HasItems returns a boolean if a field has been set.

func (ZoneList) MarshalJSON

func (o ZoneList) MarshalJSON() ([]byte, error)

MarshalJSON serializes the struct using spec logic.

func (*ZoneList) SetItems

func (o *ZoneList) SetItems(v []Zone)

SetItems gets a reference to the given []Zone and assigns it to the Items field.

func (*ZoneList) UnmarshalJSON

func (o *ZoneList) UnmarshalJSON(bytes []byte) (err error)

UnmarshalJSON deserializes the given payload.

Source Files

Directories

Path Synopsis
List of APIs:
List of APIs:

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL