garage-admin-sdk-golang/docs/ClusterLayout.md

94 lines
2.7 KiB
Markdown
Raw Normal View History

2022-11-13 13:22:00 +00:00
# ClusterLayout
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Version** | **int32** | |
2023-11-22 17:28:14 +00:00
**Roles** | [**[]NodeClusterInfo**](NodeClusterInfo.md) | |
**StagedRoleChanges** | [**[]NodeRoleChange**](NodeRoleChange.md) | |
2022-11-13 13:22:00 +00:00
## Methods
### NewClusterLayout
2023-11-22 17:28:14 +00:00
`func NewClusterLayout(version int32, roles []NodeClusterInfo, stagedRoleChanges []NodeRoleChange, ) *ClusterLayout`
2022-11-13 13:22:00 +00:00
NewClusterLayout instantiates a new ClusterLayout object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed
### NewClusterLayoutWithDefaults
`func NewClusterLayoutWithDefaults() *ClusterLayout`
NewClusterLayoutWithDefaults instantiates a new ClusterLayout object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set
### GetVersion
`func (o *ClusterLayout) GetVersion() int32`
GetVersion returns the Version field if non-nil, zero value otherwise.
### GetVersionOk
`func (o *ClusterLayout) GetVersionOk() (*int32, bool)`
GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetVersion
`func (o *ClusterLayout) SetVersion(v int32)`
SetVersion sets Version field to given value.
### GetRoles
2023-11-22 17:28:14 +00:00
`func (o *ClusterLayout) GetRoles() []NodeClusterInfo`
2022-11-13 13:22:00 +00:00
GetRoles returns the Roles field if non-nil, zero value otherwise.
### GetRolesOk
2023-11-22 17:28:14 +00:00
`func (o *ClusterLayout) GetRolesOk() (*[]NodeClusterInfo, bool)`
2022-11-13 13:22:00 +00:00
GetRolesOk returns a tuple with the Roles field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetRoles
2023-11-22 17:28:14 +00:00
`func (o *ClusterLayout) SetRoles(v []NodeClusterInfo)`
2022-11-13 13:22:00 +00:00
SetRoles sets Roles field to given value.
### GetStagedRoleChanges
2023-11-22 17:28:14 +00:00
`func (o *ClusterLayout) GetStagedRoleChanges() []NodeRoleChange`
2022-11-13 13:22:00 +00:00
GetStagedRoleChanges returns the StagedRoleChanges field if non-nil, zero value otherwise.
### GetStagedRoleChangesOk
2023-11-22 17:28:14 +00:00
`func (o *ClusterLayout) GetStagedRoleChangesOk() (*[]NodeRoleChange, bool)`
2022-11-13 13:22:00 +00:00
GetStagedRoleChangesOk returns a tuple with the StagedRoleChanges field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetStagedRoleChanges
2023-11-22 17:28:14 +00:00
`func (o *ClusterLayout) SetStagedRoleChanges(v []NodeRoleChange)`
2022-11-13 13:22:00 +00:00
SetStagedRoleChanges sets StagedRoleChanges field to given value.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)