Skip to content

Commit d663eb2

Browse files
APIBot: SDK update based on recent changes in Atlas API (#159)
1 parent 6f88ade commit d663eb2

File tree

138 files changed

+4363
-2413
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+4363
-2413
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Note that `atlas-sdk-go` only supports the two most recent major versions of Go.
1111
### Adding Dependency
1212

1313
```terminal
14-
go get go.mongodb.org/atlas-sdk/v20230201004
14+
go get go.mongodb.org/atlas-sdk/v20230201005
1515
```
1616

1717
### Using in the code
@@ -20,7 +20,7 @@ Construct a new Atlas SDK client, then use the various services on the client to
2020
access different parts of the Atlas API. For example:
2121

2222
```go
23-
import "go.mongodb.org/atlas-sdk/v20230201004/admin"
23+
import "go.mongodb.org/atlas-sdk/v20230201005/admin"
2424

2525
func example() {
2626
ctx := context.Background()

admin/api_alert_configurations.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ type AlertConfigurationsApi interface {
6767
/*
6868
GetAlertConfiguration Return One Alert Configuration from One Project
6969
70-
[experimental] Returns the specified alert configuration from the specified project. To use this resource, the requesting API Key must have the Project Read Only role. This resource doesn't require the API Key to have an Access List.
70+
[experimental] Returns the specified alert configuration from the specified project. To use this resource, the requesting API Key must have the Project Read Only role.
7171
7272
This resource remains under revision and may change.
7373
@@ -115,7 +115,7 @@ type AlertConfigurationsApi interface {
115115
/*
116116
ListAlertConfigurations Return All Alert Configurations for One Project
117117
118-
Returns all alert configurations for one project. These alert configurations apply to any component in the project. Alert configurations define the triggers and notification methods for alerts. To use this resource, the requesting API Key must have the Project Read Only role. This resource doesn't require the API Key to have an Access List.
118+
Returns all alert configurations for one project. These alert configurations apply to any component in the project. Alert configurations define the triggers and notification methods for alerts. To use this resource, the requesting API Key must have the Project Read Only role.
119119
120120
This resource remains under revision and may change.
121121
@@ -140,7 +140,7 @@ type AlertConfigurationsApi interface {
140140
/*
141141
ListAlertConfigurationsByAlertId Return All Alert Configurations Set for One Alert
142142
143-
[experimental] Returns all alert configurations set for the specified alert. To use this resource, the requesting API Key must have the Project Read Only role. This resource doesn't require the API Key to have an Access List.
143+
[experimental] Returns all alert configurations set for the specified alert. To use this resource, the requesting API Key must have the Project Read Only role.
144144
145145
This resource remains under revision and may change.
146146
@@ -524,7 +524,7 @@ func (r GetAlertConfigurationApiRequest) Execute() (*GroupAlertsConfig, *http.Re
524524
/*
525525
GetAlertConfiguration Return One Alert Configuration from One Project
526526
527-
[experimental] Returns the specified alert configuration from the specified project. To use this resource, the requesting API Key must have the Project Read Only role. This resource doesn't require the API Key to have an Access List.
527+
[experimental] Returns the specified alert configuration from the specified project. To use this resource, the requesting API Key must have the Project Read Only role.
528528
529529
This resource remains under revision and may change.
530530
@@ -810,7 +810,7 @@ func (r ListAlertConfigurationsApiRequest) Execute() (*PaginatedAlertConfig, *ht
810810
/*
811811
ListAlertConfigurations Return All Alert Configurations for One Project
812812
813-
Returns all alert configurations for one project. These alert configurations apply to any component in the project. Alert configurations define the triggers and notification methods for alerts. To use this resource, the requesting API Key must have the Project Read Only role. This resource doesn't require the API Key to have an Access List.
813+
Returns all alert configurations for one project. These alert configurations apply to any component in the project. Alert configurations define the triggers and notification methods for alerts. To use this resource, the requesting API Key must have the Project Read Only role.
814814
815815
This resource remains under revision and may change.
816816
@@ -993,7 +993,7 @@ func (r ListAlertConfigurationsByAlertIdApiRequest) Execute() (*PaginatedAlertCo
993993
/*
994994
ListAlertConfigurationsByAlertId Return All Alert Configurations Set for One Alert
995995
996-
[experimental] Returns all alert configurations set for the specified alert. To use this resource, the requesting API Key must have the Project Read Only role. This resource doesn't require the API Key to have an Access List.
996+
[experimental] Returns all alert configurations set for the specified alert. To use this resource, the requesting API Key must have the Project Read Only role.
997997
998998
This resource remains under revision and may change.
999999

admin/api_alerts.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type AlertsApi interface {
1616
/*
1717
AcknowledgeAlert Acknowledge One Alert from One Project
1818
19-
Confirms receipt of one existing alert. This alert applies to any component in one project. Acknowledging an alert prevents successive notifications. You receive an alert when a monitored component meets or exceeds a value you set until you acknowledge the alert. To use this resource, the requesting API Key must have the Organization Owner or Project Owner role. This resource doesn't require the API Key to have an Access List.
19+
Confirms receipt of one existing alert. This alert applies to any component in one project. Acknowledging an alert prevents successive notifications. You receive an alert when a monitored component meets or exceeds a value you set until you acknowledge the alert. To use this resource, the requesting API Key must have the Organization Owner or Project Owner role.
2020
2121
This resource remains under revision and may change.
2222
@@ -42,7 +42,7 @@ type AlertsApi interface {
4242
/*
4343
GetAlert Return One Alert from One Project
4444
45-
Returns one alert. This alert applies to any component in one project. You receive an alert when a monitored component meets or exceeds a value you set. To use this resource, the requesting API Key must have the Project Read Only role. This resource doesn't require the API Key to have an Access List.
45+
Returns one alert. This alert applies to any component in one project. You receive an alert when a monitored component meets or exceeds a value you set. To use this resource, the requesting API Key must have the Project Read Only role.
4646
4747
This resource remains under revision and may change.
4848
@@ -68,7 +68,7 @@ type AlertsApi interface {
6868
/*
6969
ListAlerts Return All Alerts from One Project
7070
71-
Returns all alerts. These alerts apply to all components in one project. You receive an alert when a monitored component meets or exceeds a value you set. To use this resource, the requesting API Key must have the Project Read Only role. This resource doesn't require the API Key to have an Access List.
71+
Returns all alerts. These alerts apply to all components in one project. You receive an alert when a monitored component meets or exceeds a value you set. To use this resource, the requesting API Key must have the Project Read Only role.
7272
7373
This resource remains under revision and may change.
7474
@@ -151,7 +151,7 @@ func (r AcknowledgeAlertApiRequest) Execute() (*AlertViewForNdsGroup, *http.Resp
151151
/*
152152
AcknowledgeAlert Acknowledge One Alert from One Project
153153
154-
Confirms receipt of one existing alert. This alert applies to any component in one project. Acknowledging an alert prevents successive notifications. You receive an alert when a monitored component meets or exceeds a value you set until you acknowledge the alert. To use this resource, the requesting API Key must have the Organization Owner or Project Owner role. This resource doesn't require the API Key to have an Access List.
154+
Confirms receipt of one existing alert. This alert applies to any component in one project. Acknowledging an alert prevents successive notifications. You receive an alert when a monitored component meets or exceeds a value you set until you acknowledge the alert. To use this resource, the requesting API Key must have the Organization Owner or Project Owner role.
155155
156156
This resource remains under revision and may change.
157157
@@ -301,7 +301,7 @@ func (r GetAlertApiRequest) Execute() (*AlertViewForNdsGroup, *http.Response, er
301301
/*
302302
GetAlert Return One Alert from One Project
303303
304-
Returns one alert. This alert applies to any component in one project. You receive an alert when a monitored component meets or exceeds a value you set. To use this resource, the requesting API Key must have the Project Read Only role. This resource doesn't require the API Key to have an Access List.
304+
Returns one alert. This alert applies to any component in one project. You receive an alert when a monitored component meets or exceeds a value you set. To use this resource, the requesting API Key must have the Project Read Only role.
305305
306306
This resource remains under revision and may change.
307307
@@ -478,7 +478,7 @@ func (r ListAlertsApiRequest) Execute() (*PaginatedAlert, *http.Response, error)
478478
/*
479479
ListAlerts Return All Alerts from One Project
480480
481-
Returns all alerts. These alerts apply to all components in one project. You receive an alert when a monitored component meets or exceeds a value you set. To use this resource, the requesting API Key must have the Project Read Only role. This resource doesn't require the API Key to have an Access List.
481+
Returns all alerts. These alerts apply to all components in one project. You receive an alert when a monitored component meets or exceeds a value you set. To use this resource, the requesting API Key must have the Project Read Only role.
482482
483483
This resource remains under revision and may change.
484484

0 commit comments

Comments
 (0)