Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .mockery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ filename: "{{ .InterfaceName | snakecase }}.go"
mockname: "{{.InterfaceName}}"

packages:
go.mongodb.org/atlas-sdk/v20250312013/admin:
github.com/mongodb/atlas-sdk-go/admin:
config:
include-regex: ".*Api"
4 changes: 2 additions & 2 deletions admin/api_activity_feed.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ type ActivityFeedApi interface {
Returns a pre-filtered activity feed link for the specified organization based on the provided date range and event types. The returned link can be shared and opened to view the activity feed with the same filters applied. To use this resource, the requesting Service Account or API Key must have the Organization Member role.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param orgId Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the [/orgs](#tag/Organizations/operation/listOrganizations) endpoint to retrieve all organizations to which the authenticated user has access.
@param orgId Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the [`/orgs`](#tag/Organizations/operation/listOrganizations) endpoint to retrieve all organizations to which the authenticated user has access.
@return GetOrgActivityFeedApiRequest
*/
GetOrgActivityFeed(ctx context.Context, orgId string) GetOrgActivityFeedApiRequest
Expand Down Expand Up @@ -289,7 +289,7 @@ GetOrgActivityFeed Return Pre-Filtered Activity Feed Link for One Organization
Returns a pre-filtered activity feed link for the specified organization based on the provided date range and event types. The returned link can be shared and opened to view the activity feed with the same filters applied. To use this resource, the requesting Service Account or API Key must have the Organization Member role.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param orgId Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the [/orgs](#tag/Organizations/operation/listOrganizations) endpoint to retrieve all organizations to which the authenticated user has access.
@param orgId Unique 24-hexadecimal digit string that identifies the organization that contains your projects. Use the [`/orgs`](#tag/Organizations/operation/listOrganizations) endpoint to retrieve all organizations to which the authenticated user has access.
@return GetOrgActivityFeedApiRequest
*/
func (a *ActivityFeedApiService) GetOrgActivityFeed(ctx context.Context, orgId string) GetOrgActivityFeedApiRequest {
Expand Down
20 changes: 10 additions & 10 deletions admin/api_alert_configurations.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type AlertConfigurationsApi interface {
/*
CreateAlertConfig Create One Alert Configuration in One Project

Creates one alert configuration for the specified project. Alert configurations define the triggers and notification methods for alerts. To use this resource, the requesting Service Account or API Key must have the Organization Owner or Project Owner role.
Creates one alert configuration for the specified project. Alert configurations define the triggers and notification methods for alerts. To use this resource, the requesting Service Account or API Key must have the Project Alerts Manager, Project Monitoring Admin, Organization Owner, or Project Owner role.

This resource remains under revision and may change.

Expand All @@ -41,7 +41,7 @@ type AlertConfigurationsApi interface {
/*
DeleteAlertConfig Remove One Alert Configuration from One Project

Removes one alert configuration from the specified project. To use this resource, the requesting Service Account or API Key must have the Organization Owner or Project Owner role. Use the Return All Alert Configurations for One Project endpoint to retrieve all alert configurations to which the authenticated user has access.
Removes one alert configuration from the specified project. To use this resource, the requesting Service Account or API Key must have the Project Alerts Manager, Project Monitoring Admin, Organization Owner, or Project Owner role. Use the Return All Alert Configurations for One Project endpoint to retrieve all alert configurations to which the authenticated user has access.

This resource remains under revision and may change.

Expand Down Expand Up @@ -166,7 +166,7 @@ type AlertConfigurationsApi interface {
/*
ToggleAlertConfig Toggle State of One Alert Configuration in One Project

Enables or disables the specified alert configuration in the specified project. The resource enables the specified alert configuration if currently enabled. The resource disables the specified alert configuration if currently disabled. To use this resource, the requesting Service Account or API Key must have the Organization Owner or Project Owner role.
Enables or disables the specified alert configuration in the specified project. The resource enables the specified alert configuration if currently enabled. The resource disables the specified alert configuration if currently disabled. To use this resource, the requesting Service Account or API Key must have the Project Alerts Manager, Project Monitoring Admin, Organization Owner, or Project Owner role.

**NOTE**: This endpoint updates only the enabled/disabled state for the alert configuration. To update more than just this configuration, see Update One Alert Configuration.

Expand Down Expand Up @@ -195,7 +195,7 @@ type AlertConfigurationsApi interface {
/*
UpdateAlertConfig Update One Alert Configuration in One Project

Updates one alert configuration in the specified project. Alert configurations define the triggers and notification methods for alerts. To use this resource, the requesting Service Account or API Key must have the Organization Owner or Project Owner role.
Updates one alert configuration in the specified project. Alert configurations define the triggers and notification methods for alerts. To use this resource, the requesting Service Account or API Key must have the Project Alerts Manager, Project Monitoring Admin, Organization Owner, or Project Owner role.

**NOTE**: To enable or disable the alert configuration, see Toggle One State of One Alert Configuration in One Project.

Expand Down Expand Up @@ -253,7 +253,7 @@ func (r CreateAlertConfigApiRequest) Execute() (*GroupAlertsConfig, *http.Respon
/*
CreateAlertConfig Create One Alert Configuration in One Project

Creates one alert configuration for the specified project. Alert configurations define the triggers and notification methods for alerts. To use this resource, the requesting Service Account or API Key must have the Organization Owner or Project Owner role.
Creates one alert configuration for the specified project. Alert configurations define the triggers and notification methods for alerts. To use this resource, the requesting Service Account or API Key must have the Project Alerts Manager, Project Monitoring Admin, Organization Owner, or Project Owner role.

This resource remains under revision and may change.

Expand Down Expand Up @@ -378,7 +378,7 @@ func (r DeleteAlertConfigApiRequest) Execute() (*http.Response, error) {
/*
DeleteAlertConfig Remove One Alert Configuration from One Project

Removes one alert configuration from the specified project. To use this resource, the requesting Service Account or API Key must have the Organization Owner or Project Owner role. Use the Return All Alert Configurations for One Project endpoint to retrieve all alert configurations to which the authenticated user has access.
Removes one alert configuration from the specified project. To use this resource, the requesting Service Account or API Key must have the Project Alerts Manager, Project Monitoring Admin, Organization Owner, or Project Owner role. Use the Return All Alert Configurations for One Project endpoint to retrieve all alert configurations to which the authenticated user has access.

This resource remains under revision and may change.

Expand Down Expand Up @@ -613,7 +613,7 @@ func (a *AlertConfigurationsApiService) GetAlertConfigsWithParams(ctx context.Co
}
}

// Flag that indicates whether the response returns the total number of items (**totalCount**) in the response.
// Flag that indicates whether the response returns the total number of items (`totalCount`) in the response.
func (r GetAlertConfigsApiRequest) IncludeCount(includeCount bool) GetAlertConfigsApiRequest {
r.includeCount = &includeCount
return r
Expand Down Expand Up @@ -783,7 +783,7 @@ func (a *AlertConfigurationsApiService) ListAlertConfigsWithParams(ctx context.C
}
}

// Flag that indicates whether the response returns the total number of items (**totalCount**) in the response.
// Flag that indicates whether the response returns the total number of items (`totalCount`) in the response.
func (r ListAlertConfigsApiRequest) IncludeCount(includeCount bool) ListAlertConfigsApiRequest {
r.includeCount = &includeCount
return r
Expand Down Expand Up @@ -1056,7 +1056,7 @@ func (r ToggleAlertConfigApiRequest) Execute() (*GroupAlertsConfig, *http.Respon
/*
ToggleAlertConfig Toggle State of One Alert Configuration in One Project

Enables or disables the specified alert configuration in the specified project. The resource enables the specified alert configuration if currently enabled. The resource disables the specified alert configuration if currently disabled. To use this resource, the requesting Service Account or API Key must have the Organization Owner or Project Owner role.
Enables or disables the specified alert configuration in the specified project. The resource enables the specified alert configuration if currently enabled. The resource disables the specified alert configuration if currently disabled. To use this resource, the requesting Service Account or API Key must have the Project Alerts Manager, Project Monitoring Admin, Organization Owner, or Project Owner role.

**NOTE**: This endpoint updates only the enabled/disabled state for the alert configuration. To update more than just this configuration, see Update One Alert Configuration.

Expand Down Expand Up @@ -1192,7 +1192,7 @@ func (r UpdateAlertConfigApiRequest) Execute() (*GroupAlertsConfig, *http.Respon
/*
UpdateAlertConfig Update One Alert Configuration in One Project

Updates one alert configuration in the specified project. Alert configurations define the triggers and notification methods for alerts. To use this resource, the requesting Service Account or API Key must have the Organization Owner or Project Owner role.
Updates one alert configuration in the specified project. Alert configurations define the triggers and notification methods for alerts. To use this resource, the requesting Service Account or API Key must have the Project Alerts Manager, Project Monitoring Admin, Organization Owner, or Project Owner role.

**NOTE**: To enable or disable the alert configuration, see Toggle One State of One Alert Configuration in One Project.

Expand Down
8 changes: 4 additions & 4 deletions admin/api_alerts.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type AlertsApi interface {
/*
AcknowledgeAlert Acknowledge One Alert from One Project

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 Service Account or API Key must have the Organization Owner or Project Owner role. Use the Return All Alerts from One Project endpoint to retrieve all alerts to which the authenticated user has access.
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 Service Account or API Key must have the Project Alerts Manager, Project Monitoring Admin, Organization Owner, or Project Owner role. Use the Return All Alerts from One Project endpoint to retrieve all alerts to which the authenticated user has access.

This resource remains under revision and may change. Deprecated versions: v2-{2023-01-01}

Expand Down Expand Up @@ -151,7 +151,7 @@ func (r AcknowledgeAlertApiRequest) Execute() (*AlertViewForNdsGroup, *http.Resp
/*
AcknowledgeAlert Acknowledge One Alert from One Project

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 Service Account or API Key must have the Organization Owner or Project Owner role. Use the Return All Alerts from One Project endpoint to retrieve all alerts to which the authenticated user has access.
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 Service Account or API Key must have the Project Alerts Manager, Project Monitoring Admin, Organization Owner, or Project Owner role. Use the Return All Alerts from One Project endpoint to retrieve all alerts to which the authenticated user has access.

This resource remains under revision and may change. Deprecated versions: v2-{2023-01-01}

Expand Down Expand Up @@ -409,7 +409,7 @@ func (a *AlertsApiService) GetAlertConfigAlertsWithParams(ctx context.Context, a
}
}

// Flag that indicates whether the response returns the total number of items (**totalCount**) in the response.
// Flag that indicates whether the response returns the total number of items (`totalCount`) in the response.
func (r GetAlertConfigAlertsApiRequest) IncludeCount(includeCount bool) GetAlertConfigAlertsApiRequest {
r.includeCount = &includeCount
return r
Expand Down Expand Up @@ -582,7 +582,7 @@ func (a *AlertsApiService) ListAlertsWithParams(ctx context.Context, args *ListA
}
}

// Flag that indicates whether the response returns the total number of items (**totalCount**) in the response.
// Flag that indicates whether the response returns the total number of items (`totalCount`) in the response.
func (r ListAlertsApiRequest) IncludeCount(includeCount bool) ListAlertsApiRequest {
r.includeCount = &includeCount
return r
Expand Down
Loading