Skip to content

Commit 9a13251

Browse files
wtrockigithub-actions[bot]
authored andcommitted
temp: client update
1 parent 1b97d85 commit 9a13251

File tree

149 files changed

+41202
-38500
lines changed

Some content is hidden

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

149 files changed

+41202
-38500
lines changed

.mockery.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ filename: "{{ .InterfaceName | snakecase }}.go"
66
mockname: "{{.InterfaceName}}"
77

88
packages:
9-
go.mongodb.org/atlas-sdk/v20250312006/admin:
9+
github.com/mongodb/atlas-sdk-go/admin:
1010
config:
1111
include-regex: ".*Api"

admin/api_access_tracking.go

Lines changed: 52 additions & 52 deletions
Large diffs are not rendered by default.

admin/api_alert_configurations.go

Lines changed: 263 additions & 263 deletions
Large diffs are not rendered by default.

admin/api_alerts.go

Lines changed: 114 additions & 114 deletions
Large diffs are not rendered by default.

admin/api_atlas_search.go

Lines changed: 762 additions & 762 deletions
Large diffs are not rendered by default.

admin/api_auditing.go

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -13,107 +13,107 @@ import (
1313
type AuditingApi interface {
1414

1515
/*
16-
GetAuditingConfiguration Return Auditing Configuration for One Project
16+
GetGroupAuditLog Return Auditing Configuration for One Project
1717
1818
Returns the auditing configuration for the specified project. The auditing configuration defines the events that MongoDB Cloud records in the audit log. To use this resource, the requesting Service Account or API Key must have the Project Owner role. This feature isn't available for `M0`, `M2`, `M5`, or serverless clusters.
1919
2020
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
2121
@param groupId Unique 24-hexadecimal digit string that identifies your project. Use the [/groups](#tag/Projects/operation/listProjects) endpoint to retrieve all projects to which the authenticated user has access. **NOTE**: Groups and projects are synonymous terms. Your group id is the same as your project id. For existing groups, your group/project id remains the same. The resource and corresponding endpoints use the term groups.
22-
@return GetAuditingConfigurationApiRequest
22+
@return GetGroupAuditLogApiRequest
2323
*/
24-
GetAuditingConfiguration(ctx context.Context, groupId string) GetAuditingConfigurationApiRequest
24+
GetGroupAuditLog(ctx context.Context, groupId string) GetGroupAuditLogApiRequest
2525
/*
26-
GetAuditingConfiguration Return Auditing Configuration for One Project
26+
GetGroupAuditLog Return Auditing Configuration for One Project
2727
2828
2929
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
30-
@param GetAuditingConfigurationApiParams - Parameters for the request
31-
@return GetAuditingConfigurationApiRequest
30+
@param GetGroupAuditLogApiParams - Parameters for the request
31+
@return GetGroupAuditLogApiRequest
3232
*/
33-
GetAuditingConfigurationWithParams(ctx context.Context, args *GetAuditingConfigurationApiParams) GetAuditingConfigurationApiRequest
33+
GetGroupAuditLogWithParams(ctx context.Context, args *GetGroupAuditLogApiParams) GetGroupAuditLogApiRequest
3434

3535
// Method available only for mocking purposes
36-
GetAuditingConfigurationExecute(r GetAuditingConfigurationApiRequest) (*AuditLog, *http.Response, error)
36+
GetGroupAuditLogExecute(r GetGroupAuditLogApiRequest) (*AuditLog, *http.Response, error)
3737

3838
/*
39-
UpdateAuditingConfiguration Update Auditing Configuration for One Project
39+
UpdateAuditLog Update Auditing Configuration for One Project
4040
4141
Updates the auditing configuration for the specified project. The auditing configuration defines the events that MongoDB Cloud records in the audit log. To use this resource, the requesting Service Account or API Key must have the Project Owner role. This feature isn't available for `M0`, `M2`, `M5`, or serverless clusters.
4242
4343
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
4444
@param groupId Unique 24-hexadecimal digit string that identifies your project. Use the [/groups](#tag/Projects/operation/listProjects) endpoint to retrieve all projects to which the authenticated user has access. **NOTE**: Groups and projects are synonymous terms. Your group id is the same as your project id. For existing groups, your group/project id remains the same. The resource and corresponding endpoints use the term groups.
4545
@param auditLog Updated auditing configuration for the specified project.
46-
@return UpdateAuditingConfigurationApiRequest
46+
@return UpdateAuditLogApiRequest
4747
*/
48-
UpdateAuditingConfiguration(ctx context.Context, groupId string, auditLog *AuditLog) UpdateAuditingConfigurationApiRequest
48+
UpdateAuditLog(ctx context.Context, groupId string, auditLog *AuditLog) UpdateAuditLogApiRequest
4949
/*
50-
UpdateAuditingConfiguration Update Auditing Configuration for One Project
50+
UpdateAuditLog Update Auditing Configuration for One Project
5151
5252
5353
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
54-
@param UpdateAuditingConfigurationApiParams - Parameters for the request
55-
@return UpdateAuditingConfigurationApiRequest
54+
@param UpdateAuditLogApiParams - Parameters for the request
55+
@return UpdateAuditLogApiRequest
5656
*/
57-
UpdateAuditingConfigurationWithParams(ctx context.Context, args *UpdateAuditingConfigurationApiParams) UpdateAuditingConfigurationApiRequest
57+
UpdateAuditLogWithParams(ctx context.Context, args *UpdateAuditLogApiParams) UpdateAuditLogApiRequest
5858

5959
// Method available only for mocking purposes
60-
UpdateAuditingConfigurationExecute(r UpdateAuditingConfigurationApiRequest) (*AuditLog, *http.Response, error)
60+
UpdateAuditLogExecute(r UpdateAuditLogApiRequest) (*AuditLog, *http.Response, error)
6161
}
6262

6363
// AuditingApiService AuditingApi service
6464
type AuditingApiService service
6565

66-
type GetAuditingConfigurationApiRequest struct {
66+
type GetGroupAuditLogApiRequest struct {
6767
ctx context.Context
6868
ApiService AuditingApi
6969
groupId string
7070
}
7171

72-
type GetAuditingConfigurationApiParams struct {
72+
type GetGroupAuditLogApiParams struct {
7373
GroupId string
7474
}
7575

76-
func (a *AuditingApiService) GetAuditingConfigurationWithParams(ctx context.Context, args *GetAuditingConfigurationApiParams) GetAuditingConfigurationApiRequest {
77-
return GetAuditingConfigurationApiRequest{
76+
func (a *AuditingApiService) GetGroupAuditLogWithParams(ctx context.Context, args *GetGroupAuditLogApiParams) GetGroupAuditLogApiRequest {
77+
return GetGroupAuditLogApiRequest{
7878
ApiService: a,
7979
ctx: ctx,
8080
groupId: args.GroupId,
8181
}
8282
}
8383

84-
func (r GetAuditingConfigurationApiRequest) Execute() (*AuditLog, *http.Response, error) {
85-
return r.ApiService.GetAuditingConfigurationExecute(r)
84+
func (r GetGroupAuditLogApiRequest) Execute() (*AuditLog, *http.Response, error) {
85+
return r.ApiService.GetGroupAuditLogExecute(r)
8686
}
8787

8888
/*
89-
GetAuditingConfiguration Return Auditing Configuration for One Project
89+
GetGroupAuditLog Return Auditing Configuration for One Project
9090
9191
Returns the auditing configuration for the specified project. The auditing configuration defines the events that MongoDB Cloud records in the audit log. To use this resource, the requesting Service Account or API Key must have the Project Owner role. This feature isn't available for `M0`, `M2`, `M5`, or serverless clusters.
9292
9393
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
9494
@param groupId Unique 24-hexadecimal digit string that identifies your project. Use the [/groups](#tag/Projects/operation/listProjects) endpoint to retrieve all projects to which the authenticated user has access. **NOTE**: Groups and projects are synonymous terms. Your group id is the same as your project id. For existing groups, your group/project id remains the same. The resource and corresponding endpoints use the term groups.
95-
@return GetAuditingConfigurationApiRequest
95+
@return GetGroupAuditLogApiRequest
9696
*/
97-
func (a *AuditingApiService) GetAuditingConfiguration(ctx context.Context, groupId string) GetAuditingConfigurationApiRequest {
98-
return GetAuditingConfigurationApiRequest{
97+
func (a *AuditingApiService) GetGroupAuditLog(ctx context.Context, groupId string) GetGroupAuditLogApiRequest {
98+
return GetGroupAuditLogApiRequest{
9999
ApiService: a,
100100
ctx: ctx,
101101
groupId: groupId,
102102
}
103103
}
104104

105-
// GetAuditingConfigurationExecute executes the request
105+
// GetGroupAuditLogExecute executes the request
106106
//
107107
// @return AuditLog
108-
func (a *AuditingApiService) GetAuditingConfigurationExecute(r GetAuditingConfigurationApiRequest) (*AuditLog, *http.Response, error) {
108+
func (a *AuditingApiService) GetGroupAuditLogExecute(r GetGroupAuditLogApiRequest) (*AuditLog, *http.Response, error) {
109109
var (
110110
localVarHTTPMethod = http.MethodGet
111111
localVarPostBody any
112112
formFiles []formFile
113113
localVarReturnValue *AuditLog
114114
)
115115

116-
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuditingApiService.GetAuditingConfiguration")
116+
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuditingApiService.GetGroupAuditLog")
117117
if err != nil {
118118
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
119119
}
@@ -177,61 +177,61 @@ func (a *AuditingApiService) GetAuditingConfigurationExecute(r GetAuditingConfig
177177
return localVarReturnValue, localVarHTTPResponse, nil
178178
}
179179

180-
type UpdateAuditingConfigurationApiRequest struct {
180+
type UpdateAuditLogApiRequest struct {
181181
ctx context.Context
182182
ApiService AuditingApi
183183
groupId string
184184
auditLog *AuditLog
185185
}
186186

187-
type UpdateAuditingConfigurationApiParams struct {
187+
type UpdateAuditLogApiParams struct {
188188
GroupId string
189189
AuditLog *AuditLog
190190
}
191191

192-
func (a *AuditingApiService) UpdateAuditingConfigurationWithParams(ctx context.Context, args *UpdateAuditingConfigurationApiParams) UpdateAuditingConfigurationApiRequest {
193-
return UpdateAuditingConfigurationApiRequest{
192+
func (a *AuditingApiService) UpdateAuditLogWithParams(ctx context.Context, args *UpdateAuditLogApiParams) UpdateAuditLogApiRequest {
193+
return UpdateAuditLogApiRequest{
194194
ApiService: a,
195195
ctx: ctx,
196196
groupId: args.GroupId,
197197
auditLog: args.AuditLog,
198198
}
199199
}
200200

201-
func (r UpdateAuditingConfigurationApiRequest) Execute() (*AuditLog, *http.Response, error) {
202-
return r.ApiService.UpdateAuditingConfigurationExecute(r)
201+
func (r UpdateAuditLogApiRequest) Execute() (*AuditLog, *http.Response, error) {
202+
return r.ApiService.UpdateAuditLogExecute(r)
203203
}
204204

205205
/*
206-
UpdateAuditingConfiguration Update Auditing Configuration for One Project
206+
UpdateAuditLog Update Auditing Configuration for One Project
207207
208208
Updates the auditing configuration for the specified project. The auditing configuration defines the events that MongoDB Cloud records in the audit log. To use this resource, the requesting Service Account or API Key must have the Project Owner role. This feature isn't available for `M0`, `M2`, `M5`, or serverless clusters.
209209
210210
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
211211
@param groupId Unique 24-hexadecimal digit string that identifies your project. Use the [/groups](#tag/Projects/operation/listProjects) endpoint to retrieve all projects to which the authenticated user has access. **NOTE**: Groups and projects are synonymous terms. Your group id is the same as your project id. For existing groups, your group/project id remains the same. The resource and corresponding endpoints use the term groups.
212-
@return UpdateAuditingConfigurationApiRequest
212+
@return UpdateAuditLogApiRequest
213213
*/
214-
func (a *AuditingApiService) UpdateAuditingConfiguration(ctx context.Context, groupId string, auditLog *AuditLog) UpdateAuditingConfigurationApiRequest {
215-
return UpdateAuditingConfigurationApiRequest{
214+
func (a *AuditingApiService) UpdateAuditLog(ctx context.Context, groupId string, auditLog *AuditLog) UpdateAuditLogApiRequest {
215+
return UpdateAuditLogApiRequest{
216216
ApiService: a,
217217
ctx: ctx,
218218
groupId: groupId,
219219
auditLog: auditLog,
220220
}
221221
}
222222

223-
// UpdateAuditingConfigurationExecute executes the request
223+
// UpdateAuditLogExecute executes the request
224224
//
225225
// @return AuditLog
226-
func (a *AuditingApiService) UpdateAuditingConfigurationExecute(r UpdateAuditingConfigurationApiRequest) (*AuditLog, *http.Response, error) {
226+
func (a *AuditingApiService) UpdateAuditLogExecute(r UpdateAuditLogApiRequest) (*AuditLog, *http.Response, error) {
227227
var (
228228
localVarHTTPMethod = http.MethodPatch
229229
localVarPostBody any
230230
formFiles []formFile
231231
localVarReturnValue *AuditLog
232232
)
233233

234-
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuditingApiService.UpdateAuditingConfiguration")
234+
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AuditingApiService.UpdateAuditLog")
235235
if err != nil {
236236
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
237237
}

0 commit comments

Comments
 (0)