-
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 (#261)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: oarbusi <[email protected]>
- Loading branch information
1 parent
c374129
commit 1651e1d
Showing
74 changed files
with
714 additions
and
399 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" | ||
) | ||
|
||
// PaginatedFederationIdentityProvider struct for PaginatedFederationIdentityProvider | ||
type PaginatedFederationIdentityProvider 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 *[]FederationIdentityProvider `json:"results,omitempty"` | ||
// Number of documents returned in this response if **includeCount** query param is true. | ||
// Read only field. | ||
TotalCount *int `json:"totalCount,omitempty"` | ||
} | ||
|
||
// NewPaginatedFederationIdentityProvider instantiates a new PaginatedFederationIdentityProvider 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 NewPaginatedFederationIdentityProvider() *PaginatedFederationIdentityProvider { | ||
this := PaginatedFederationIdentityProvider{} | ||
return &this | ||
} | ||
|
||
// NewPaginatedFederationIdentityProviderWithDefaults instantiates a new PaginatedFederationIdentityProvider 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 NewPaginatedFederationIdentityProviderWithDefaults() *PaginatedFederationIdentityProvider { | ||
this := PaginatedFederationIdentityProvider{} | ||
return &this | ||
} | ||
|
||
// GetLinks returns the Links field value if set, zero value otherwise | ||
func (o *PaginatedFederationIdentityProvider) 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 *PaginatedFederationIdentityProvider) 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 *PaginatedFederationIdentityProvider) 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 *PaginatedFederationIdentityProvider) SetLinks(v []Link) { | ||
o.Links = &v | ||
} | ||
|
||
// GetResults returns the Results field value if set, zero value otherwise | ||
func (o *PaginatedFederationIdentityProvider) GetResults() []FederationIdentityProvider { | ||
if o == nil || IsNil(o.Results) { | ||
var ret []FederationIdentityProvider | ||
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 *PaginatedFederationIdentityProvider) GetResultsOk() (*[]FederationIdentityProvider, 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 *PaginatedFederationIdentityProvider) HasResults() bool { | ||
if o != nil && !IsNil(o.Results) { | ||
return true | ||
} | ||
|
||
return false | ||
} | ||
|
||
// SetResults gets a reference to the given []FederationIdentityProvider and assigns it to the Results field. | ||
func (o *PaginatedFederationIdentityProvider) SetResults(v []FederationIdentityProvider) { | ||
o.Results = &v | ||
} | ||
|
||
// GetTotalCount returns the TotalCount field value if set, zero value otherwise | ||
func (o *PaginatedFederationIdentityProvider) 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 *PaginatedFederationIdentityProvider) 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 *PaginatedFederationIdentityProvider) 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 *PaginatedFederationIdentityProvider) SetTotalCount(v int) { | ||
o.TotalCount = &v | ||
} | ||
|
||
func (o PaginatedFederationIdentityProvider) MarshalJSONWithoutReadOnly() ([]byte, error) { | ||
toSerialize, err := o.ToMap() | ||
if err != nil { | ||
return []byte{}, err | ||
} | ||
return json.Marshal(toSerialize) | ||
} | ||
func (o PaginatedFederationIdentityProvider) 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.