All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
CreateApiV2UsersPost | Post /api/v2/users/ | Create |
DeleteApiV2UsersUserIdDelete | Delete /api/v2/users/{user_id} | Delete |
GetApiV2UsersUserIdGet | Get /api/v2/users/{user_id} | Get |
ResetApiKeyApiV2UsersResetApiKeyPost | Post /api/v2/users/reset-api-key | Reset Api Key |
ResetPasswordApiV2UsersResetPasswordPost | Post /api/v2/users/reset-password | Reset Password |
SearchApiV2UsersSearchPost | Post /api/v2/users/search | Search |
ToggleApiV2UsersTogglePost | Post /api/v2/users/toggle | Toggle |
User CreateApiV2UsersPost(ctx).NewUserRequest(newUserRequest).Execute()
Create
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yeti-platform/goyeti"
)
func main() {
newUserRequest := *openapiclient.NewNewUserRequest("Username_example", "Password_example", false) // NewUserRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UsersAPI.CreateApiV2UsersPost(context.Background()).NewUserRequest(newUserRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.CreateApiV2UsersPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateApiV2UsersPost`: User
fmt.Fprintf(os.Stdout, "Response from `UsersAPI.CreateApiV2UsersPost`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiCreateApiV2UsersPostRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
newUserRequest | NewUserRequest |
OAuth2PasswordBearer, APIKeyCookie
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
interface{} DeleteApiV2UsersUserIdDelete(ctx, userId).Execute()
Delete
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yeti-platform/goyeti"
)
func main() {
userId := "userId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UsersAPI.DeleteApiV2UsersUserIdDelete(context.Background(), userId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.DeleteApiV2UsersUserIdDelete``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteApiV2UsersUserIdDelete`: interface{}
fmt.Fprintf(os.Stdout, "Response from `UsersAPI.DeleteApiV2UsersUserIdDelete`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
userId | string |
Other parameters are passed through a pointer to a apiDeleteApiV2UsersUserIdDeleteRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
interface{}
OAuth2PasswordBearer, APIKeyCookie
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
User GetApiV2UsersUserIdGet(ctx, userId).Execute()
Get
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yeti-platform/goyeti"
)
func main() {
userId := "userId_example" // string |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UsersAPI.GetApiV2UsersUserIdGet(context.Background(), userId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.GetApiV2UsersUserIdGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetApiV2UsersUserIdGet`: User
fmt.Fprintf(os.Stdout, "Response from `UsersAPI.GetApiV2UsersUserIdGet`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
userId | string |
Other parameters are passed through a pointer to a apiGetApiV2UsersUserIdGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
OAuth2PasswordBearer, APIKeyCookie
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
User ResetApiKeyApiV2UsersResetApiKeyPost(ctx).ResetApiKeyRequest(resetApiKeyRequest).Execute()
Reset Api Key
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yeti-platform/goyeti"
)
func main() {
resetApiKeyRequest := *openapiclient.NewResetApiKeyRequest("UserId_example") // ResetApiKeyRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UsersAPI.ResetApiKeyApiV2UsersResetApiKeyPost(context.Background()).ResetApiKeyRequest(resetApiKeyRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.ResetApiKeyApiV2UsersResetApiKeyPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ResetApiKeyApiV2UsersResetApiKeyPost`: User
fmt.Fprintf(os.Stdout, "Response from `UsersAPI.ResetApiKeyApiV2UsersResetApiKeyPost`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiResetApiKeyApiV2UsersResetApiKeyPostRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
resetApiKeyRequest | ResetApiKeyRequest |
OAuth2PasswordBearer, APIKeyCookie
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
User ResetPasswordApiV2UsersResetPasswordPost(ctx).ResetPasswordRequest(resetPasswordRequest).Execute()
Reset Password
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yeti-platform/goyeti"
)
func main() {
resetPasswordRequest := *openapiclient.NewResetPasswordRequest("UserId_example", "NewPassword_example") // ResetPasswordRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UsersAPI.ResetPasswordApiV2UsersResetPasswordPost(context.Background()).ResetPasswordRequest(resetPasswordRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.ResetPasswordApiV2UsersResetPasswordPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ResetPasswordApiV2UsersResetPasswordPost`: User
fmt.Fprintf(os.Stdout, "Response from `UsersAPI.ResetPasswordApiV2UsersResetPasswordPost`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiResetPasswordApiV2UsersResetPasswordPostRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
resetPasswordRequest | ResetPasswordRequest |
OAuth2PasswordBearer, APIKeyCookie
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SearchUserResponse SearchApiV2UsersSearchPost(ctx).SearchUserRequest(searchUserRequest).Execute()
Search
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yeti-platform/goyeti"
)
func main() {
searchUserRequest := *openapiclient.NewSearchUserRequest("Username_example") // SearchUserRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UsersAPI.SearchApiV2UsersSearchPost(context.Background()).SearchUserRequest(searchUserRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.SearchApiV2UsersSearchPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SearchApiV2UsersSearchPost`: SearchUserResponse
fmt.Fprintf(os.Stdout, "Response from `UsersAPI.SearchApiV2UsersSearchPost`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSearchApiV2UsersSearchPostRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
searchUserRequest | SearchUserRequest |
OAuth2PasswordBearer, APIKeyCookie
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
User ToggleApiV2UsersTogglePost(ctx).ToggleUserRequest(toggleUserRequest).Execute()
Toggle
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/yeti-platform/goyeti"
)
func main() {
toggleUserRequest := *openapiclient.NewToggleUserRequest("UserId_example", openapiclient.ToggleableField("enabled")) // ToggleUserRequest |
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.UsersAPI.ToggleApiV2UsersTogglePost(context.Background()).ToggleUserRequest(toggleUserRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.ToggleApiV2UsersTogglePost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `ToggleApiV2UsersTogglePost`: User
fmt.Fprintf(os.Stdout, "Response from `UsersAPI.ToggleApiV2UsersTogglePost`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiToggleApiV2UsersTogglePostRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
toggleUserRequest | ToggleUserRequest |
OAuth2PasswordBearer, APIKeyCookie
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]