-
Notifications
You must be signed in to change notification settings - Fork 5
/
model_create_organization_response.go
186 lines (156 loc) · 5.85 KB
/
model_create_organization_response.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
// Code based on the AtlasAPI V2 OpenAPI file
package admin
import (
"encoding/json"
)
// CreateOrganizationResponse struct for CreateOrganizationResponse
type CreateOrganizationResponse struct {
ApiKey *ApiKeyUserDetails `json:"apiKey,omitempty"`
// Unique 24-hexadecimal digit string that identifies the federation that you linked the newly created organization to.
// Read only field.
FederationSettingsId *string `json:"federationSettingsId,omitempty"`
// Unique 24-hexadecimal digit string that identifies the MongoDB Cloud user that you assigned the Organization Owner role in the new organization.
// Read only field.
OrgOwnerId *string `json:"orgOwnerId,omitempty"`
Organization *AtlasOrganization `json:"organization,omitempty"`
}
// NewCreateOrganizationResponse instantiates a new CreateOrganizationResponse 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 NewCreateOrganizationResponse() *CreateOrganizationResponse {
this := CreateOrganizationResponse{}
return &this
}
// NewCreateOrganizationResponseWithDefaults instantiates a new CreateOrganizationResponse 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 NewCreateOrganizationResponseWithDefaults() *CreateOrganizationResponse {
this := CreateOrganizationResponse{}
return &this
}
// GetApiKey returns the ApiKey field value if set, zero value otherwise
func (o *CreateOrganizationResponse) GetApiKey() ApiKeyUserDetails {
if o == nil || IsNil(o.ApiKey) {
var ret ApiKeyUserDetails
return ret
}
return *o.ApiKey
}
// GetApiKeyOk returns a tuple with the ApiKey field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateOrganizationResponse) GetApiKeyOk() (*ApiKeyUserDetails, bool) {
if o == nil || IsNil(o.ApiKey) {
return nil, false
}
return o.ApiKey, true
}
// HasApiKey returns a boolean if a field has been set.
func (o *CreateOrganizationResponse) HasApiKey() bool {
if o != nil && !IsNil(o.ApiKey) {
return true
}
return false
}
// SetApiKey gets a reference to the given ApiKeyUserDetails and assigns it to the ApiKey field.
func (o *CreateOrganizationResponse) SetApiKey(v ApiKeyUserDetails) {
o.ApiKey = &v
}
// GetFederationSettingsId returns the FederationSettingsId field value if set, zero value otherwise
func (o *CreateOrganizationResponse) GetFederationSettingsId() string {
if o == nil || IsNil(o.FederationSettingsId) {
var ret string
return ret
}
return *o.FederationSettingsId
}
// GetFederationSettingsIdOk returns a tuple with the FederationSettingsId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateOrganizationResponse) GetFederationSettingsIdOk() (*string, bool) {
if o == nil || IsNil(o.FederationSettingsId) {
return nil, false
}
return o.FederationSettingsId, true
}
// HasFederationSettingsId returns a boolean if a field has been set.
func (o *CreateOrganizationResponse) HasFederationSettingsId() bool {
if o != nil && !IsNil(o.FederationSettingsId) {
return true
}
return false
}
// SetFederationSettingsId gets a reference to the given string and assigns it to the FederationSettingsId field.
func (o *CreateOrganizationResponse) SetFederationSettingsId(v string) {
o.FederationSettingsId = &v
}
// GetOrgOwnerId returns the OrgOwnerId field value if set, zero value otherwise
func (o *CreateOrganizationResponse) GetOrgOwnerId() string {
if o == nil || IsNil(o.OrgOwnerId) {
var ret string
return ret
}
return *o.OrgOwnerId
}
// GetOrgOwnerIdOk returns a tuple with the OrgOwnerId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateOrganizationResponse) GetOrgOwnerIdOk() (*string, bool) {
if o == nil || IsNil(o.OrgOwnerId) {
return nil, false
}
return o.OrgOwnerId, true
}
// HasOrgOwnerId returns a boolean if a field has been set.
func (o *CreateOrganizationResponse) HasOrgOwnerId() bool {
if o != nil && !IsNil(o.OrgOwnerId) {
return true
}
return false
}
// SetOrgOwnerId gets a reference to the given string and assigns it to the OrgOwnerId field.
func (o *CreateOrganizationResponse) SetOrgOwnerId(v string) {
o.OrgOwnerId = &v
}
// GetOrganization returns the Organization field value if set, zero value otherwise
func (o *CreateOrganizationResponse) GetOrganization() AtlasOrganization {
if o == nil || IsNil(o.Organization) {
var ret AtlasOrganization
return ret
}
return *o.Organization
}
// GetOrganizationOk returns a tuple with the Organization field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateOrganizationResponse) GetOrganizationOk() (*AtlasOrganization, bool) {
if o == nil || IsNil(o.Organization) {
return nil, false
}
return o.Organization, true
}
// HasOrganization returns a boolean if a field has been set.
func (o *CreateOrganizationResponse) HasOrganization() bool {
if o != nil && !IsNil(o.Organization) {
return true
}
return false
}
// SetOrganization gets a reference to the given AtlasOrganization and assigns it to the Organization field.
func (o *CreateOrganizationResponse) SetOrganization(v AtlasOrganization) {
o.Organization = &v
}
func (o CreateOrganizationResponse) MarshalJSONWithoutReadOnly() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o CreateOrganizationResponse) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.ApiKey) {
toSerialize["apiKey"] = o.ApiKey
}
if !IsNil(o.Organization) {
toSerialize["organization"] = o.Organization
}
return toSerialize, nil
}