-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
APIBot: SDK update based on recent changes in Atlas API (#442)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: lantoli <[email protected]>
- Loading branch information
1 parent
922a5ad
commit ce39965
Showing
144 changed files
with
822 additions
and
601 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
// Code based on the AtlasAPI V2 OpenAPI file | ||
|
||
package admin | ||
|
||
// FreeComputeAutoScalingRules Collection of settings that configures how a cluster might scale its cluster tier and whether the cluster can scale down. | ||
type FreeComputeAutoScalingRules struct { | ||
// Maximum instance size to which your cluster can automatically scale. | ||
MaxInstanceSize *string `json:"maxInstanceSize,omitempty"` | ||
// Minimum instance size to which your cluster can automatically scale. | ||
MinInstanceSize *string `json:"minInstanceSize,omitempty"` | ||
} | ||
|
||
// NewFreeComputeAutoScalingRules instantiates a new FreeComputeAutoScalingRules object | ||
// This constructor will assign default values to properties that have it defined, | ||
// and makes sure properties required by API are set, but the set of arguments | ||
// will change when the set of required properties is changed | ||
func NewFreeComputeAutoScalingRules() *FreeComputeAutoScalingRules { | ||
this := FreeComputeAutoScalingRules{} | ||
return &this | ||
} | ||
|
||
// NewFreeComputeAutoScalingRulesWithDefaults instantiates a new FreeComputeAutoScalingRules object | ||
// This constructor will only assign default values to properties that have it defined, | ||
// but it doesn't guarantee that properties required by API are set | ||
func NewFreeComputeAutoScalingRulesWithDefaults() *FreeComputeAutoScalingRules { | ||
this := FreeComputeAutoScalingRules{} | ||
return &this | ||
} | ||
|
||
// GetMaxInstanceSize returns the MaxInstanceSize field value if set, zero value otherwise | ||
func (o *FreeComputeAutoScalingRules) GetMaxInstanceSize() string { | ||
if o == nil || IsNil(o.MaxInstanceSize) { | ||
var ret string | ||
return ret | ||
} | ||
return *o.MaxInstanceSize | ||
} | ||
|
||
// GetMaxInstanceSizeOk returns a tuple with the MaxInstanceSize field value if set, nil otherwise | ||
// and a boolean to check if the value has been set. | ||
func (o *FreeComputeAutoScalingRules) GetMaxInstanceSizeOk() (*string, bool) { | ||
if o == nil || IsNil(o.MaxInstanceSize) { | ||
return nil, false | ||
} | ||
|
||
return o.MaxInstanceSize, true | ||
} | ||
|
||
// HasMaxInstanceSize returns a boolean if a field has been set. | ||
func (o *FreeComputeAutoScalingRules) HasMaxInstanceSize() bool { | ||
if o != nil && !IsNil(o.MaxInstanceSize) { | ||
return true | ||
} | ||
|
||
return false | ||
} | ||
|
||
// SetMaxInstanceSize gets a reference to the given string and assigns it to the MaxInstanceSize field. | ||
func (o *FreeComputeAutoScalingRules) SetMaxInstanceSize(v string) { | ||
o.MaxInstanceSize = &v | ||
} | ||
|
||
// GetMinInstanceSize returns the MinInstanceSize field value if set, zero value otherwise | ||
func (o *FreeComputeAutoScalingRules) GetMinInstanceSize() string { | ||
if o == nil || IsNil(o.MinInstanceSize) { | ||
var ret string | ||
return ret | ||
} | ||
return *o.MinInstanceSize | ||
} | ||
|
||
// GetMinInstanceSizeOk returns a tuple with the MinInstanceSize field value if set, nil otherwise | ||
// and a boolean to check if the value has been set. | ||
func (o *FreeComputeAutoScalingRules) GetMinInstanceSizeOk() (*string, bool) { | ||
if o == nil || IsNil(o.MinInstanceSize) { | ||
return nil, false | ||
} | ||
|
||
return o.MinInstanceSize, true | ||
} | ||
|
||
// HasMinInstanceSize returns a boolean if a field has been set. | ||
func (o *FreeComputeAutoScalingRules) HasMinInstanceSize() bool { | ||
if o != nil && !IsNil(o.MinInstanceSize) { | ||
return true | ||
} | ||
|
||
return false | ||
} | ||
|
||
// SetMinInstanceSize gets a reference to the given string and assigns it to the MinInstanceSize field. | ||
func (o *FreeComputeAutoScalingRules) SetMinInstanceSize(v string) { | ||
o.MinInstanceSize = &v | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.