Skip to content

Latest commit

 

History

History
121 lines (66 loc) · 4.97 KB

File metadata and controls

121 lines (66 loc) · 4.97 KB

DedicatedClusterCreateSpecification

Properties

Name Type Description Notes
CidrRange Pointer to string cidr_range is the IPv4 range in CIDR format that will be used by the cluster. This is supported only on GCP, and must have a subnet mask no larger than /19. Defaults to "172.28.0.0/14". [optional]
CockroachVersion Pointer to string The CockroachDB major version for the cluster. i.e. v24.1 The latest version is used if omitted. The version passed must be one of the currently supported versions. [optional]
Hardware DedicatedHardwareCreateSpecification
NetworkVisibility Pointer to NetworkVisibilityType [optional]
RegionNodes map[string]int32 Region keys should match the cloud provider's zone code. For example, for Oregon, set region_name to "us-west2" for GCP and "us-west-2" for AWS. Values represent the node count.
RestrictEgressTraffic Pointer to bool Preview: restrict_egress_traffic if set, results in an egress traffic policy of default-deny at creation time. [optional]
SupportsClusterVirtualization Pointer to bool [optional]

Methods

NewDedicatedClusterCreateSpecification

func NewDedicatedClusterCreateSpecification(hardware DedicatedHardwareCreateSpecification, regionNodes map[string]int32, ) *DedicatedClusterCreateSpecification

NewDedicatedClusterCreateSpecification instantiates a new DedicatedClusterCreateSpecification object. This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed.

NewDedicatedClusterCreateSpecificationWithDefaults

func NewDedicatedClusterCreateSpecificationWithDefaults() *DedicatedClusterCreateSpecification

NewDedicatedClusterCreateSpecificationWithDefaults instantiates a new DedicatedClusterCreateSpecification object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set.

GetCidrRange

func (o *DedicatedClusterCreateSpecification) GetCidrRange() string

GetCidrRange returns the CidrRange field if non-nil, zero value otherwise.

SetCidrRange

func (o *DedicatedClusterCreateSpecification) SetCidrRange(v string)

SetCidrRange sets CidrRange field to given value.

GetCockroachVersion

func (o *DedicatedClusterCreateSpecification) GetCockroachVersion() string

GetCockroachVersion returns the CockroachVersion field if non-nil, zero value otherwise.

SetCockroachVersion

func (o *DedicatedClusterCreateSpecification) SetCockroachVersion(v string)

SetCockroachVersion sets CockroachVersion field to given value.

GetHardware

func (o *DedicatedClusterCreateSpecification) GetHardware() DedicatedHardwareCreateSpecification

GetHardware returns the Hardware field if non-nil, zero value otherwise.

SetHardware

func (o *DedicatedClusterCreateSpecification) SetHardware(v DedicatedHardwareCreateSpecification)

SetHardware sets Hardware field to given value.

GetNetworkVisibility

func (o *DedicatedClusterCreateSpecification) GetNetworkVisibility() NetworkVisibilityType

GetNetworkVisibility returns the NetworkVisibility field if non-nil, zero value otherwise.

SetNetworkVisibility

func (o *DedicatedClusterCreateSpecification) SetNetworkVisibility(v NetworkVisibilityType)

SetNetworkVisibility sets NetworkVisibility field to given value.

GetRegionNodes

func (o *DedicatedClusterCreateSpecification) GetRegionNodes() map[string]int32

GetRegionNodes returns the RegionNodes field if non-nil, zero value otherwise.

SetRegionNodes

func (o *DedicatedClusterCreateSpecification) SetRegionNodes(v map[string]int32)

SetRegionNodes sets RegionNodes field to given value.

GetRestrictEgressTraffic

func (o *DedicatedClusterCreateSpecification) GetRestrictEgressTraffic() bool

GetRestrictEgressTraffic returns the RestrictEgressTraffic field if non-nil, zero value otherwise.

SetRestrictEgressTraffic

func (o *DedicatedClusterCreateSpecification) SetRestrictEgressTraffic(v bool)

SetRestrictEgressTraffic sets RestrictEgressTraffic field to given value.

GetSupportsClusterVirtualization

func (o *DedicatedClusterCreateSpecification) GetSupportsClusterVirtualization() bool

GetSupportsClusterVirtualization returns the SupportsClusterVirtualization field if non-nil, zero value otherwise.

SetSupportsClusterVirtualization

func (o *DedicatedClusterCreateSpecification) SetSupportsClusterVirtualization(v bool)

SetSupportsClusterVirtualization sets SupportsClusterVirtualization field to given value.

[Back to Model list] [Back to API list] [Back to README]