-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_api_atlas_azure_cloud_provider_container_view_all_of.go
227 lines (188 loc) · 9.12 KB
/
model_api_atlas_azure_cloud_provider_container_view_all_of.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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
/*
MongoDB Atlas Administration API
The MongoDB Atlas Administration API allows developers to manage all components in MongoDB Atlas. To learn more, review the [Administration API overview](https://www.mongodb.com/docs/atlas/api/atlas-admin-api/). This OpenAPI specification covers all of the collections with the exception of Alerts, Alert Configurations, and Events. Refer to the [legacy documentation](https://www.mongodb.com/docs/atlas/reference/api-resources/) for the specifications of these resources.
API version: 1.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
import (
"encoding/json"
)
// ApiAtlasAzureCloudProviderContainerViewAllOf struct for ApiAtlasAzureCloudProviderContainerViewAllOf
type ApiAtlasAzureCloudProviderContainerViewAllOf struct {
// IP addresses expressed in Classless Inter-Domain Routing (CIDR) notation that MongoDB Cloud uses for the network peering containers in your project. MongoDB Cloud assigns all of the project's clusters deployed to this cloud provider an IP address from this range. MongoDB Cloud locks this value if an M10 or greater cluster or a network peering connection exists in this project. These CIDR blocks must fall within the ranges reserved per RFC 1918. AWS and Azure further limit the block to between the `/24` and `/21` ranges. To modify the CIDR block, the target project cannot have: - Any M10 or greater clusters - Any other VPC peering connections You can also create a new project and create a network peering connection to set the desired MongoDB Cloud network peering container CIDR block for that project. MongoDB Cloud limits the number of MongoDB nodes per network peering connection based on the CIDR block and the region selected for the project. **Example:** A project in an Amazon Web Services (AWS) region supporting three availability zones and an MongoDB CIDR network peering container block of limit of `/24` equals 27 three-node replica sets.
AtlasCidrBlock *string `json:"atlasCidrBlock,omitempty"`
// Unique string that identifies the Azure subscription in which the MongoDB Cloud VNet resides.
AzureSubscriptionId *string `json:"azureSubscriptionId,omitempty"`
// Azure region to which MongoDB Cloud deployed this network peering container.
Region *string `json:"region,omitempty"`
// Unique string that identifies the Azure VNet in which MongoDB Cloud clusters in this network peering container exist. The response returns **null** if no clusters exist in this network peering container.
VnetName *string `json:"vnetName,omitempty"`
}
// NewApiAtlasAzureCloudProviderContainerViewAllOf instantiates a new ApiAtlasAzureCloudProviderContainerViewAllOf 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 NewApiAtlasAzureCloudProviderContainerViewAllOf() *ApiAtlasAzureCloudProviderContainerViewAllOf {
this := ApiAtlasAzureCloudProviderContainerViewAllOf{}
return &this
}
// NewApiAtlasAzureCloudProviderContainerViewAllOfWithDefaults instantiates a new ApiAtlasAzureCloudProviderContainerViewAllOf 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 NewApiAtlasAzureCloudProviderContainerViewAllOfWithDefaults() *ApiAtlasAzureCloudProviderContainerViewAllOf {
this := ApiAtlasAzureCloudProviderContainerViewAllOf{}
return &this
}
// GetAtlasCidrBlock returns the AtlasCidrBlock field value if set, zero value otherwise.
func (o *ApiAtlasAzureCloudProviderContainerViewAllOf) GetAtlasCidrBlock() string {
if o == nil || isNil(o.AtlasCidrBlock) {
var ret string
return ret
}
return *o.AtlasCidrBlock
}
// GetAtlasCidrBlockOk returns a tuple with the AtlasCidrBlock field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ApiAtlasAzureCloudProviderContainerViewAllOf) GetAtlasCidrBlockOk() (*string, bool) {
if o == nil || isNil(o.AtlasCidrBlock) {
return nil, false
}
return o.AtlasCidrBlock, true
}
// HasAtlasCidrBlock returns a boolean if a field has been set.
func (o *ApiAtlasAzureCloudProviderContainerViewAllOf) HasAtlasCidrBlock() bool {
if o != nil && !isNil(o.AtlasCidrBlock) {
return true
}
return false
}
// SetAtlasCidrBlock gets a reference to the given string and assigns it to the AtlasCidrBlock field.
func (o *ApiAtlasAzureCloudProviderContainerViewAllOf) SetAtlasCidrBlock(v string) {
o.AtlasCidrBlock = &v
}
// GetAzureSubscriptionId returns the AzureSubscriptionId field value if set, zero value otherwise.
func (o *ApiAtlasAzureCloudProviderContainerViewAllOf) GetAzureSubscriptionId() string {
if o == nil || isNil(o.AzureSubscriptionId) {
var ret string
return ret
}
return *o.AzureSubscriptionId
}
// GetAzureSubscriptionIdOk returns a tuple with the AzureSubscriptionId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ApiAtlasAzureCloudProviderContainerViewAllOf) GetAzureSubscriptionIdOk() (*string, bool) {
if o == nil || isNil(o.AzureSubscriptionId) {
return nil, false
}
return o.AzureSubscriptionId, true
}
// HasAzureSubscriptionId returns a boolean if a field has been set.
func (o *ApiAtlasAzureCloudProviderContainerViewAllOf) HasAzureSubscriptionId() bool {
if o != nil && !isNil(o.AzureSubscriptionId) {
return true
}
return false
}
// SetAzureSubscriptionId gets a reference to the given string and assigns it to the AzureSubscriptionId field.
func (o *ApiAtlasAzureCloudProviderContainerViewAllOf) SetAzureSubscriptionId(v string) {
o.AzureSubscriptionId = &v
}
// GetRegion returns the Region field value if set, zero value otherwise.
func (o *ApiAtlasAzureCloudProviderContainerViewAllOf) GetRegion() string {
if o == nil || isNil(o.Region) {
var ret string
return ret
}
return *o.Region
}
// GetRegionOk returns a tuple with the Region field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ApiAtlasAzureCloudProviderContainerViewAllOf) GetRegionOk() (*string, bool) {
if o == nil || isNil(o.Region) {
return nil, false
}
return o.Region, true
}
// HasRegion returns a boolean if a field has been set.
func (o *ApiAtlasAzureCloudProviderContainerViewAllOf) HasRegion() bool {
if o != nil && !isNil(o.Region) {
return true
}
return false
}
// SetRegion gets a reference to the given string and assigns it to the Region field.
func (o *ApiAtlasAzureCloudProviderContainerViewAllOf) SetRegion(v string) {
o.Region = &v
}
// GetVnetName returns the VnetName field value if set, zero value otherwise.
func (o *ApiAtlasAzureCloudProviderContainerViewAllOf) GetVnetName() string {
if o == nil || isNil(o.VnetName) {
var ret string
return ret
}
return *o.VnetName
}
// GetVnetNameOk returns a tuple with the VnetName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ApiAtlasAzureCloudProviderContainerViewAllOf) GetVnetNameOk() (*string, bool) {
if o == nil || isNil(o.VnetName) {
return nil, false
}
return o.VnetName, true
}
// HasVnetName returns a boolean if a field has been set.
func (o *ApiAtlasAzureCloudProviderContainerViewAllOf) HasVnetName() bool {
if o != nil && !isNil(o.VnetName) {
return true
}
return false
}
// SetVnetName gets a reference to the given string and assigns it to the VnetName field.
func (o *ApiAtlasAzureCloudProviderContainerViewAllOf) SetVnetName(v string) {
o.VnetName = &v
}
func (o ApiAtlasAzureCloudProviderContainerViewAllOf) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if !isNil(o.AtlasCidrBlock) {
toSerialize["atlasCidrBlock"] = o.AtlasCidrBlock
}
if !isNil(o.AzureSubscriptionId) {
toSerialize["azureSubscriptionId"] = o.AzureSubscriptionId
}
if !isNil(o.Region) {
toSerialize["region"] = o.Region
}
if !isNil(o.VnetName) {
toSerialize["vnetName"] = o.VnetName
}
return json.Marshal(toSerialize)
}
type NullableApiAtlasAzureCloudProviderContainerViewAllOf struct {
value *ApiAtlasAzureCloudProviderContainerViewAllOf
isSet bool
}
func (v NullableApiAtlasAzureCloudProviderContainerViewAllOf) Get() *ApiAtlasAzureCloudProviderContainerViewAllOf {
return v.value
}
func (v *NullableApiAtlasAzureCloudProviderContainerViewAllOf) Set(val *ApiAtlasAzureCloudProviderContainerViewAllOf) {
v.value = val
v.isSet = true
}
func (v NullableApiAtlasAzureCloudProviderContainerViewAllOf) IsSet() bool {
return v.isSet
}
func (v *NullableApiAtlasAzureCloudProviderContainerViewAllOf) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableApiAtlasAzureCloudProviderContainerViewAllOf(val *ApiAtlasAzureCloudProviderContainerViewAllOf) *NullableApiAtlasAzureCloudProviderContainerViewAllOf {
return &NullableApiAtlasAzureCloudProviderContainerViewAllOf{value: val, isSet: true}
}
func (v NullableApiAtlasAzureCloudProviderContainerViewAllOf) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableApiAtlasAzureCloudProviderContainerViewAllOf) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}