-
Notifications
You must be signed in to change notification settings - Fork 4
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 (#321)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: wtrocki <981838+wtrocki@users.noreply.github.com>
- Loading branch information
1 parent
ecfd1a3
commit 30e92c7
Showing
130 changed files
with
828 additions
and
468 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
// Code based on the AtlasAPI V2 OpenAPI file | ||
|
||
package admin | ||
|
||
import ( | ||
"encoding/json" | ||
) | ||
|
||
// PaginatedConnectedOrgConfigs struct for PaginatedConnectedOrgConfigs | ||
type PaginatedConnectedOrgConfigs struct { | ||
// List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships. | ||
// Read only field. | ||
Links *[]Link `json:"links,omitempty"` | ||
// List of returned documents that MongoDB Cloud providers when completing this request. | ||
// Read only field. | ||
Results *[]ConnectedOrgConfig `json:"results,omitempty"` | ||
// Total number of documents available. MongoDB Cloud omits this value if `includeCount` is set to `false`. | ||
// Read only field. | ||
TotalCount *int `json:"totalCount,omitempty"` | ||
} | ||
|
||
// NewPaginatedConnectedOrgConfigs instantiates a new PaginatedConnectedOrgConfigs object | ||
// This constructor will assign default values to properties that have it defined, | ||
// and makes sure properties required by API are set, but the set of arguments | ||
// will change when the set of required properties is changed | ||
func NewPaginatedConnectedOrgConfigs() *PaginatedConnectedOrgConfigs { | ||
this := PaginatedConnectedOrgConfigs{} | ||
return &this | ||
} | ||
|
||
// NewPaginatedConnectedOrgConfigsWithDefaults instantiates a new PaginatedConnectedOrgConfigs object | ||
// This constructor will only assign default values to properties that have it defined, | ||
// but it doesn't guarantee that properties required by API are set | ||
func NewPaginatedConnectedOrgConfigsWithDefaults() *PaginatedConnectedOrgConfigs { | ||
this := PaginatedConnectedOrgConfigs{} | ||
return &this | ||
} | ||
|
||
// GetLinks returns the Links field value if set, zero value otherwise | ||
func (o *PaginatedConnectedOrgConfigs) GetLinks() []Link { | ||
if o == nil || IsNil(o.Links) { | ||
var ret []Link | ||
return ret | ||
} | ||
return *o.Links | ||
} | ||
|
||
// GetLinksOk returns a tuple with the Links field value if set, nil otherwise | ||
// and a boolean to check if the value has been set. | ||
func (o *PaginatedConnectedOrgConfigs) GetLinksOk() (*[]Link, bool) { | ||
if o == nil || IsNil(o.Links) { | ||
return nil, false | ||
} | ||
|
||
return o.Links, true | ||
} | ||
|
||
// HasLinks returns a boolean if a field has been set. | ||
func (o *PaginatedConnectedOrgConfigs) HasLinks() bool { | ||
if o != nil && !IsNil(o.Links) { | ||
return true | ||
} | ||
|
||
return false | ||
} | ||
|
||
// SetLinks gets a reference to the given []Link and assigns it to the Links field. | ||
func (o *PaginatedConnectedOrgConfigs) SetLinks(v []Link) { | ||
o.Links = &v | ||
} | ||
|
||
// GetResults returns the Results field value if set, zero value otherwise | ||
func (o *PaginatedConnectedOrgConfigs) GetResults() []ConnectedOrgConfig { | ||
if o == nil || IsNil(o.Results) { | ||
var ret []ConnectedOrgConfig | ||
return ret | ||
} | ||
return *o.Results | ||
} | ||
|
||
// GetResultsOk returns a tuple with the Results field value if set, nil otherwise | ||
// and a boolean to check if the value has been set. | ||
func (o *PaginatedConnectedOrgConfigs) GetResultsOk() (*[]ConnectedOrgConfig, bool) { | ||
if o == nil || IsNil(o.Results) { | ||
return nil, false | ||
} | ||
|
||
return o.Results, true | ||
} | ||
|
||
// HasResults returns a boolean if a field has been set. | ||
func (o *PaginatedConnectedOrgConfigs) HasResults() bool { | ||
if o != nil && !IsNil(o.Results) { | ||
return true | ||
} | ||
|
||
return false | ||
} | ||
|
||
// SetResults gets a reference to the given []ConnectedOrgConfig and assigns it to the Results field. | ||
func (o *PaginatedConnectedOrgConfigs) SetResults(v []ConnectedOrgConfig) { | ||
o.Results = &v | ||
} | ||
|
||
// GetTotalCount returns the TotalCount field value if set, zero value otherwise | ||
func (o *PaginatedConnectedOrgConfigs) GetTotalCount() int { | ||
if o == nil || IsNil(o.TotalCount) { | ||
var ret int | ||
return ret | ||
} | ||
return *o.TotalCount | ||
} | ||
|
||
// GetTotalCountOk returns a tuple with the TotalCount field value if set, nil otherwise | ||
// and a boolean to check if the value has been set. | ||
func (o *PaginatedConnectedOrgConfigs) GetTotalCountOk() (*int, bool) { | ||
if o == nil || IsNil(o.TotalCount) { | ||
return nil, false | ||
} | ||
|
||
return o.TotalCount, true | ||
} | ||
|
||
// HasTotalCount returns a boolean if a field has been set. | ||
func (o *PaginatedConnectedOrgConfigs) HasTotalCount() bool { | ||
if o != nil && !IsNil(o.TotalCount) { | ||
return true | ||
} | ||
|
||
return false | ||
} | ||
|
||
// SetTotalCount gets a reference to the given int and assigns it to the TotalCount field. | ||
func (o *PaginatedConnectedOrgConfigs) SetTotalCount(v int) { | ||
o.TotalCount = &v | ||
} | ||
|
||
func (o PaginatedConnectedOrgConfigs) MarshalJSONWithoutReadOnly() ([]byte, error) { | ||
toSerialize, err := o.ToMap() | ||
if err != nil { | ||
return []byte{}, err | ||
} | ||
return json.Marshal(toSerialize) | ||
} | ||
func (o PaginatedConnectedOrgConfigs) ToMap() (map[string]interface{}, error) { | ||
toSerialize := map[string]interface{}{} | ||
return toSerialize, nil | ||
} |
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.