|
| 1 | +// Copyright 2025 MongoDB Inc |
| 2 | +// |
| 3 | +// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +// you may not use this file except in compliance with the License. |
| 5 | +// You may obtain a copy of the License at |
| 6 | +// |
| 7 | +// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +// |
| 9 | +// Unless required by applicable law or agreed to in writing, software |
| 10 | +// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +// See the License for the specific language governing permissions and |
| 13 | +// limitations under the License. |
| 14 | +// |
| 15 | +// This code was autogenerated using `make gen-L1-commands` |
| 16 | +// Don't make any manual changes to this file. |
| 17 | +package api |
| 18 | + |
| 19 | +import "net/http" |
| 20 | + |
| 21 | +var Commands = GroupedAndSortedCommands{ |
| 22 | + { |
| 23 | + Name: `Clusters`, |
| 24 | + Description: `Returns, adds, edits, and removes database deployments. Changes to cluster configurations can affect costs. This resource requires your Project ID.`, |
| 25 | + Commands: []Command{ |
| 26 | + { |
| 27 | + OperationID: `listClusters`, |
| 28 | + Aliases: nil, |
| 29 | + Description: `Returns the details for all clusters in the specific project to which you have access. Clusters contain a group of hosts that maintain the same data set. The response includes clusters with asymmetrically-sized shards. To use this resource, the requesting API Key must have the Project Read Only role. This feature is not available for serverless clusters. |
| 30 | + |
| 31 | +This command is invoking the endpoint with OperationID: 'listClusters'. |
| 32 | +For more information about flags, format of --file and examples, see: https://www.mongodb.com/docs/atlas/reference/api-resources-spec/v2/#tag/Clusters/operation/listClusters`, |
| 33 | + RequestParameters: RequestParameters{ |
| 34 | + URL: `/api/atlas/v2/groups/{groupId}/clusters`, |
| 35 | + QueryParameters: []Parameter{ |
| 36 | + { |
| 37 | + Name: `envelope`, |
| 38 | + Description: `Flag that indicates whether Application wraps the response in an envelope JSON object. Some API clients cannot access the HTTP response headers or status code. To remediate this, set envelope=true in the query. Endpoints that return a list of results use the results object as an envelope. Application adds the status parameter to the response body.`, |
| 39 | + Short: ``, |
| 40 | + Required: false, |
| 41 | + Type: ParameterType{ |
| 42 | + IsArray: false, |
| 43 | + Type: `bool`, |
| 44 | + }, |
| 45 | + }, |
| 46 | + { |
| 47 | + Name: `includeCount`, |
| 48 | + Description: `Flag that indicates whether the response returns the total number of items (totalCount) in the response.`, |
| 49 | + Short: ``, |
| 50 | + Required: false, |
| 51 | + Type: ParameterType{ |
| 52 | + IsArray: false, |
| 53 | + Type: `bool`, |
| 54 | + }, |
| 55 | + }, |
| 56 | + { |
| 57 | + Name: `itemsPerPage`, |
| 58 | + Description: `Number of items that the response returns per page.`, |
| 59 | + Short: ``, |
| 60 | + Required: false, |
| 61 | + Type: ParameterType{ |
| 62 | + IsArray: false, |
| 63 | + Type: `int`, |
| 64 | + }, |
| 65 | + }, |
| 66 | + { |
| 67 | + Name: `pageNum`, |
| 68 | + Description: `Number of the page that displays the current set of the total objects that the response returns.`, |
| 69 | + Short: ``, |
| 70 | + Required: false, |
| 71 | + Type: ParameterType{ |
| 72 | + IsArray: false, |
| 73 | + Type: `int`, |
| 74 | + }, |
| 75 | + }, |
| 76 | + { |
| 77 | + Name: `pretty`, |
| 78 | + Description: `Flag that indicates whether the response body should be in the prettyprint format.`, |
| 79 | + Short: ``, |
| 80 | + Required: false, |
| 81 | + Type: ParameterType{ |
| 82 | + IsArray: false, |
| 83 | + Type: `bool`, |
| 84 | + }, |
| 85 | + }, |
| 86 | + { |
| 87 | + Name: `includeDeletedWithRetainedBackups`, |
| 88 | + Description: `Flag that indicates whether to return Clusters with retain backups.`, |
| 89 | + Short: ``, |
| 90 | + Required: false, |
| 91 | + Type: ParameterType{ |
| 92 | + IsArray: false, |
| 93 | + Type: `bool`, |
| 94 | + }, |
| 95 | + }, |
| 96 | + }, |
| 97 | + URLParameters: []Parameter{ |
| 98 | + { |
| 99 | + Name: `groupId`, |
| 100 | + Description: `Unique 24-hexadecimal digit string that identifies your project. Use the /groups endpoint to retrieve all projects to which the authenticated user has access. |
| 101 | + |
| 102 | + |
| 103 | +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.`, |
| 104 | + Short: ``, |
| 105 | + Required: true, |
| 106 | + Type: ParameterType{ |
| 107 | + IsArray: false, |
| 108 | + Type: `string`, |
| 109 | + }, |
| 110 | + }, |
| 111 | + }, |
| 112 | + Verb: http.MethodGet, |
| 113 | + }, |
| 114 | + Versions: []Version{ |
| 115 | + { |
| 116 | + Version: `2023-01-01`, |
| 117 | + RequestContentType: ``, |
| 118 | + ResponseContentTypes: []string{ |
| 119 | + `json`, |
| 120 | + }, |
| 121 | + }, |
| 122 | + { |
| 123 | + Version: `2023-02-01`, |
| 124 | + RequestContentType: ``, |
| 125 | + ResponseContentTypes: []string{ |
| 126 | + `json`, |
| 127 | + }, |
| 128 | + }, |
| 129 | + { |
| 130 | + Version: `2024-08-05`, |
| 131 | + RequestContentType: ``, |
| 132 | + ResponseContentTypes: []string{ |
| 133 | + `json`, |
| 134 | + }, |
| 135 | + }, |
| 136 | + }, |
| 137 | + }, |
| 138 | + }, |
| 139 | + }, |
| 140 | +} |
| 141 | + |
0 commit comments