Skip to content

Commit 5da9dc4

Browse files
svc-apix-Botgithub-actions[bot]wtrocki
authored
APIBot: SDK update based on recent changes in Atlas API (#683)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: wtrocki <[email protected]>
1 parent 79c329b commit 5da9dc4

File tree

7 files changed

+158
-3
lines changed

7 files changed

+158
-3
lines changed

admin/model_streams_processor_with_stats.go

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ type StreamsProcessorWithStats struct {
2323
// The stats associated with the stream processor.
2424
// Read only field.
2525
Stats any `json:"stats,omitempty"`
26+
// Selected tier for the Stream Workspace. Configures Memory / VCPU allowances.
27+
Tier *string `json:"tier,omitempty"`
2628
}
2729

2830
// NewStreamsProcessorWithStats instantiates a new StreamsProcessorWithStats object
@@ -241,3 +243,36 @@ func (o *StreamsProcessorWithStats) HasStats() bool {
241243
func (o *StreamsProcessorWithStats) SetStats(v any) {
242244
o.Stats = v
243245
}
246+
247+
// GetTier returns the Tier field value if set, zero value otherwise
248+
func (o *StreamsProcessorWithStats) GetTier() string {
249+
if o == nil || IsNil(o.Tier) {
250+
var ret string
251+
return ret
252+
}
253+
return *o.Tier
254+
}
255+
256+
// GetTierOk returns a tuple with the Tier field value if set, nil otherwise
257+
// and a boolean to check if the value has been set.
258+
func (o *StreamsProcessorWithStats) GetTierOk() (*string, bool) {
259+
if o == nil || IsNil(o.Tier) {
260+
return nil, false
261+
}
262+
263+
return o.Tier, true
264+
}
265+
266+
// HasTier returns a boolean if a field has been set.
267+
func (o *StreamsProcessorWithStats) HasTier() bool {
268+
if o != nil && !IsNil(o.Tier) {
269+
return true
270+
}
271+
272+
return false
273+
}
274+
275+
// SetTier gets a reference to the given string and assigns it to the Tier field.
276+
func (o *StreamsProcessorWithStats) SetTier(v string) {
277+
o.Tier = &v
278+
}

admin/model_streams_start_stream_processor_with.go

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ type StreamsStartStreamProcessorWith struct {
1313
Links *[]Link `json:"links,omitempty"`
1414
// The operation time after which the change stream source should begin reporting. This parameter expresses its value in the ISO 8601 timestamp format in UTC.
1515
StartAtOperationTime *time.Time `json:"startAtOperationTime,omitempty"`
16+
// Selected tier for the Stream Workspace. Configures Memory / VCPU allowances.
17+
Tier *string `json:"tier,omitempty"`
1618
}
1719

1820
// NewStreamsStartStreamProcessorWith instantiates a new StreamsStartStreamProcessorWith object
@@ -97,3 +99,36 @@ func (o *StreamsStartStreamProcessorWith) HasStartAtOperationTime() bool {
9799
func (o *StreamsStartStreamProcessorWith) SetStartAtOperationTime(v time.Time) {
98100
o.StartAtOperationTime = &v
99101
}
102+
103+
// GetTier returns the Tier field value if set, zero value otherwise
104+
func (o *StreamsStartStreamProcessorWith) GetTier() string {
105+
if o == nil || IsNil(o.Tier) {
106+
var ret string
107+
return ret
108+
}
109+
return *o.Tier
110+
}
111+
112+
// GetTierOk returns a tuple with the Tier field value if set, nil otherwise
113+
// and a boolean to check if the value has been set.
114+
func (o *StreamsStartStreamProcessorWith) GetTierOk() (*string, bool) {
115+
if o == nil || IsNil(o.Tier) {
116+
return nil, false
117+
}
118+
119+
return o.Tier, true
120+
}
121+
122+
// HasTier returns a boolean if a field has been set.
123+
func (o *StreamsStartStreamProcessorWith) HasTier() bool {
124+
if o != nil && !IsNil(o.Tier) {
125+
return true
126+
}
127+
128+
return false
129+
}
130+
131+
// SetTier gets a reference to the given string and assigns it to the Tier field.
132+
func (o *StreamsStartStreamProcessorWith) SetTier(v string) {
133+
o.Tier = &v
134+
}

docs/docs/StreamsProcessorWithStats.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
1111
**Pipeline** | [**[]any**](any.md) | Stream aggregation pipeline you want to apply to your streaming data. | [readonly]
1212
**State** | **string** | The state of the stream processor. Commonly occurring states are &#39;CREATED&#39;, &#39;STARTED&#39;, &#39;STOPPED&#39; and &#39;FAILED&#39;. | [readonly]
1313
**Stats** | Pointer to [**any**](interface{}.md) | The stats associated with the stream processor. | [optional] [readonly]
14+
**Tier** | Pointer to **string** | Selected tier for the Stream Workspace. Configures Memory / VCPU allowances. | [optional]
1415

1516
## Methods
1617

@@ -179,6 +180,30 @@ SetStats sets Stats field to given value.
179180
`func (o *StreamsProcessorWithStats) HasStats() bool`
180181

181182
HasStats returns a boolean if a field has been set.
183+
### GetTier
184+
185+
`func (o *StreamsProcessorWithStats) GetTier() string`
186+
187+
GetTier returns the Tier field if non-nil, zero value otherwise.
188+
189+
### GetTierOk
190+
191+
`func (o *StreamsProcessorWithStats) GetTierOk() (*string, bool)`
192+
193+
GetTierOk returns a tuple with the Tier field if it's non-nil, zero value otherwise
194+
and a boolean to check if the value has been set.
195+
196+
### SetTier
197+
198+
`func (o *StreamsProcessorWithStats) SetTier(v string)`
199+
200+
SetTier sets Tier field to given value.
201+
202+
### HasTier
203+
204+
`func (o *StreamsProcessorWithStats) HasTier() bool`
205+
206+
HasTier returns a boolean if a field has been set.
182207

183208
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
184209

docs/docs/StreamsStartStreamProcessorWith.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**Links** | Pointer to [**[]Link**](Link.md) | 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. | [optional] [readonly]
88
**StartAtOperationTime** | Pointer to **time.Time** | The operation time after which the change stream source should begin reporting. This parameter expresses its value in the ISO 8601 timestamp format in UTC. | [optional]
9+
**Tier** | Pointer to **string** | Selected tier for the Stream Workspace. Configures Memory / VCPU allowances. | [optional]
910

1011
## Methods
1112

@@ -74,6 +75,30 @@ SetStartAtOperationTime sets StartAtOperationTime field to given value.
7475
`func (o *StreamsStartStreamProcessorWith) HasStartAtOperationTime() bool`
7576

7677
HasStartAtOperationTime returns a boolean if a field has been set.
78+
### GetTier
79+
80+
`func (o *StreamsStartStreamProcessorWith) GetTier() string`
81+
82+
GetTier returns the Tier field if non-nil, zero value otherwise.
83+
84+
### GetTierOk
85+
86+
`func (o *StreamsStartStreamProcessorWith) GetTierOk() (*string, bool)`
87+
88+
GetTierOk returns a tuple with the Tier field if it's non-nil, zero value otherwise
89+
and a boolean to check if the value has been set.
90+
91+
### SetTier
92+
93+
`func (o *StreamsStartStreamProcessorWith) SetTier(v string)`
94+
95+
SetTier sets Tier field to given value.
96+
97+
### HasTier
98+
99+
`func (o *StreamsStartStreamProcessorWith) HasTier() bool`
100+
101+
HasTier returns a boolean if a field has been set.
77102

78103
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
79104

internal/core/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package core
55
// For more information please see: https://github.com/mongodb/atlas-sdk-go/blob/main/docs/doc_1_concepts.md
66
const (
77
// SDK release tag version.
8-
Version = "v20250312009.0.0"
8+
Version = "v20250312009.1.0"
99
// Resource Version.
1010
Resource = "20250312"
1111
)

openapi/atlas-api-transformed.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13204,6 +13204,10 @@ components:
1320413204
url: https://www.mongodb.com/docs/atlas/atlas-stream-processing/manage-stream-processor/#view-statistics-of-a-stream-processor
1320513205
readOnly: true
1320613206
type: object
13207+
tier:
13208+
description: Selected tier for the Stream Workspace. Configures Memory / VCPU allowances.
13209+
title: Stream Workspace Tier
13210+
type: string
1320713211
required:
1320813212
- _id
1320913213
- name
@@ -13246,6 +13250,10 @@ components:
1324613250
url: https://en.wikipedia.org/wiki/ISO_8601
1324713251
format: date-time
1324813252
type: string
13253+
tier:
13254+
description: Selected tier for the Stream Workspace. Configures Memory / VCPU allowances.
13255+
title: Stream Workspace Tier
13256+
type: string
1324913257
type: object
1325013258
StreamsTenant:
1325113259
properties:
@@ -16506,7 +16514,7 @@ info:
1650616514
termsOfService: https://www.mongodb.com/mongodb-management-service-terms-and-conditions
1650716515
title: MongoDB Atlas Administration API
1650816516
version: "2.0"
16509-
x-xgen-sha: 7e672413250f29eaf2a8344dfdfd3b464e630ef8
16517+
x-xgen-sha: 1750cc29d671948cce0fab7f75119ebf77340b09
1651016518
openapi: 3.0.1
1651116519
paths:
1651216520
/api/atlas/v2:
@@ -47180,6 +47188,8 @@ paths:
4718047188
application/vnd.atlas.2025-03-12+json:
4718147189
x-xgen-version: 2025-03-12
4718247190
description: OK
47191+
"400":
47192+
$ref: "#/components/responses/badRequest"
4718347193
"401":
4718447194
$ref: "#/components/responses/unauthorized"
4718547195
"403":

openapi/atlas-api.yaml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35454,8 +35454,11 @@ components:
3545435454
tier:
3545535455
description: Selected tier for the Stream Workspace. Configures Memory / VCPU allowances.
3545635456
enum:
35457+
- SP50
3545735458
- SP30
3545835459
- SP10
35460+
- SP5
35461+
- SP2
3545935462
title: Stream Workspace Tier
3546035463
type: string
3546135464
type: object
@@ -36530,6 +36533,16 @@ components:
3653036533
url: https://www.mongodb.com/docs/atlas/atlas-stream-processing/manage-stream-processor/#view-statistics-of-a-stream-processor
3653136534
readOnly: true
3653236535
type: object
36536+
tier:
36537+
description: Selected tier for the Stream Workspace. Configures Memory / VCPU allowances.
36538+
enum:
36539+
- SP50
36540+
- SP30
36541+
- SP10
36542+
- SP5
36543+
- SP2
36544+
title: Stream Workspace Tier
36545+
type: string
3653336546
required:
3653436547
- _id
3653536548
- name
@@ -36587,6 +36600,16 @@ components:
3658736600
url: https://en.wikipedia.org/wiki/ISO_8601
3658836601
format: date-time
3658936602
type: string
36603+
tier:
36604+
description: Selected tier for the Stream Workspace. Configures Memory / VCPU allowances.
36605+
enum:
36606+
- SP50
36607+
- SP30
36608+
- SP10
36609+
- SP5
36610+
- SP2
36611+
title: Stream Workspace Tier
36612+
type: string
3659036613
type: object
3659136614
StreamsTenant:
3659236615
properties:
@@ -39932,7 +39955,7 @@ info:
3993239955
termsOfService: https://www.mongodb.com/mongodb-management-service-terms-and-conditions
3993339956
title: MongoDB Atlas Administration API
3993439957
version: "2.0"
39935-
x-xgen-sha: 7e672413250f29eaf2a8344dfdfd3b464e630ef8
39958+
x-xgen-sha: 1750cc29d671948cce0fab7f75119ebf77340b09
3993639959
openapi: 3.0.1
3993739960
paths:
3993839961
/api/atlas/v2:
@@ -71957,6 +71980,8 @@ paths:
7195771980
application/vnd.atlas.2025-03-12+json:
7195871981
x-xgen-version: "2025-03-12"
7195971982
description: OK
71983+
"400":
71984+
$ref: '#/components/responses/badRequest'
7196071985
"401":
7196171986
$ref: '#/components/responses/unauthorized'
7196271987
"403":

0 commit comments

Comments
 (0)