Functional Tests + OAuth is not an option yet

This commit is contained in:
luke-hagar-sp
2023-02-22 15:30:30 -06:00
parent 1e438f8a05
commit 65c7a73a1b
1256 changed files with 26042 additions and 55267 deletions

View File

@@ -28,5 +28,20 @@
"sort": [],
"searchAfter": []
}
},
{
"name": "all-provisioning-events-90-days",
"description": "All provisioning events in the tenant for a given time range",
"variables": [],
"searchQuery": {
"indices": ["events"],
"queryType": null,
"queryVersion": null,
"query": {
"query": "(type:provisioning AND created:[now-90d TO now])"
},
"sort": [],
"searchAfter": []
}
}
]

View File

@@ -24,7 +24,7 @@ func PromptAuth() (string, error) {
return strings.ToLower(choice.Title), nil
}
func newAuthCommand() *cobra.Command {
func NewAuthCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "auth",
Short: "change currently active authentication mode",

View File

@@ -14,7 +14,7 @@ import (
"github.com/spf13/cobra"
)
var version = "0.4.2"
var version = "0.5.0"
func NewRootCmd() *cobra.Command {
root := &cobra.Command{
@@ -31,9 +31,10 @@ func NewRootCmd() *cobra.Command {
_, _ = fmt.Fprint(cmd.OutOrStdout(), cmd.UsageString())
},
}
root.AddCommand(
newDebugCommand(),
newAuthCommand(),
// NewAuthCommand(),
environment.NewEnvironmentCommand(),
configure.NewConfigureCmd(),
connector.NewConnCmd(),

View File

@@ -11,7 +11,9 @@ import (
)
// Expected number of subcommands to `sp` root command
const numRootSubcommands = 6
const (
numRootSubcommands = 8
)
func TestNewRootCmd_noArgs(t *testing.T) {
ctrl := gomock.NewController(t)

View File

@@ -27,10 +27,6 @@ func newQueryCmd() *cobra.Command {
apiClient := config.InitAPIClient()
if folderPath == "" {
folderPath = "search_results"
}
searchQuery = args[0]
fmt.Println(searchQuery)
@@ -58,7 +54,7 @@ func newQueryCmd() *cobra.Command {
cmd.Flags().StringArrayVarP(&indicies, "indicies", "i", []string{}, "indicies to perform the search query on")
cmd.Flags().StringArrayVarP(&sort, "sort", "s", []string{}, "the sort value for the api call (examples)")
cmd.Flags().StringArrayVarP(&outputTypes, "output types", "o", []string{"json"}, "the sort value for the api call (examples)")
cmd.Flags().StringVarP(&folderPath, "folderPath", "f", "", "folder path to save the search results in. If the directory doesn't exist, then it will be automatically created. (default is the current working directory)")
cmd.Flags().StringVarP(&folderPath, "folderPath", "f", "search_results", "folder path to save the search results in. If the directory doesn't exist, then it will be automatically created. (default is the current working directory)")
cmd.MarkFlagRequired("indicies")

31
cmd/search/search_test.go Normal file
View File

@@ -0,0 +1,31 @@
// Copyright (c) 2021, SailPoint Technologies, Inc. All rights reserved.
package search
import (
"bytes"
"testing"
"github.com/golang/mock/gomock"
"github.com/sailpoint-oss/sailpoint-cli/internal/config"
)
func TestNewSearchCommand(t *testing.T) {
err := config.InitConfig()
if err != nil {
t.Fatalf("Error initializing config: %v", err)
}
ctrl := gomock.NewController(t)
defer ctrl.Finish()
cmd := NewSearchCmd()
b := new(bytes.Buffer)
cmd.SetOut(b)
err = cmd.Execute()
if err != nil {
t.Fatalf("TestNewTemplateCommand: Unable to execute the command successfully: %v", err)
}
}

View File

@@ -0,0 +1,33 @@
// Copyright (c) 2021, SailPoint Technologies, Inc. All rights reserved.
package search
import (
"bytes"
"testing"
"github.com/golang/mock/gomock"
"github.com/sailpoint-oss/sailpoint-cli/internal/config"
)
func TestNewTemplateCommand(t *testing.T) {
err := config.InitConfig()
if err != nil {
t.Fatalf("Error initializing config: %v", err)
}
ctrl := gomock.NewController(t)
defer ctrl.Finish()
cmd := newTemplateCmd()
b := new(bytes.Buffer)
cmd.SetOut(b)
cmd.SetArgs([]string{"all-provisioning-events-90-days"})
cmd.Flags().Set("wait", "true")
err = cmd.Execute()
if err != nil {
t.Fatalf("TestNewTemplateCommand: Unable to execute the command successfully: %v", err)
}
}

View File

@@ -36,7 +36,7 @@ func newExportCmd() *cobra.Command {
payload.IncludeTypes = includeTypes
payload.ExcludeTypes = excludeTypes
job, _, err := apiClient.Beta.SPConfigApi.SpConfigExport(ctx).ExportPayload(*payload).Execute()
job, _, err := apiClient.Beta.SPConfigApi.ExportSpConfig(ctx).ExportPayload(*payload).Execute()
if err != nil {
return err
}

View File

@@ -27,7 +27,7 @@ func newImportCommand() *cobra.Command {
payload = sailpointbetasdk.NewImportOptions()
job, _, err := apiClient.Beta.SPConfigApi.SpConfigImport(ctx).Data(args[0]).Options(*payload).Execute()
job, _, err := apiClient.Beta.SPConfigApi.ImportSpConfig(ctx).Data(args[0]).Options(*payload).Execute()
if err != nil {
return err
}

View File

@@ -0,0 +1,31 @@
// Copyright (c) 2021, SailPoint Technologies, Inc. All rights reserved.
package spconfig
import (
"bytes"
"testing"
"github.com/golang/mock/gomock"
"github.com/sailpoint-oss/sailpoint-cli/internal/config"
)
func TestNewSPConfigCommand(t *testing.T) {
err := config.InitConfig()
if err != nil {
t.Fatalf("Error initializing config: %v", err)
}
ctrl := gomock.NewController(t)
defer ctrl.Finish()
cmd := NewSPConfigCmd()
b := new(bytes.Buffer)
cmd.SetOut(b)
err = cmd.Execute()
if err != nil {
t.Fatalf("TestNewCreateCmd: Unable to execute the command successfully: %v", err)
}
}

View File

@@ -25,9 +25,8 @@ func newExportStatusCmd() *cobra.Command {
for i := 0; i < len(exportJobs); i++ {
job := exportJobs[i]
ctx := context.TODO()
status, _, err := apiClient.Beta.SPConfigApi.SpConfigExportJobStatus(ctx, job).Execute()
status, _, err := apiClient.Beta.SPConfigApi.ExportSpConfigJobStatus(context.TODO(), job).Execute() //SPConfigApi.SpConfigExportJobStatus(ctx, job).Execute()
if err != nil {
return err
}
@@ -36,9 +35,8 @@ func newExportStatusCmd() *cobra.Command {
for i := 0; i < len(importJobs); i++ {
job := importJobs[i]
ctx := context.TODO()
status, _, err := apiClient.Beta.SPConfigApi.SpConfigImportJobStatus(ctx, job).Execute()
status, _, err := apiClient.Beta.SPConfigApi.ImportSpConfigJobStatus(context.TODO(), job).Execute()
if err != nil {
return err
}

View File

@@ -76,7 +76,7 @@ func newTemplateCmd() *cobra.Command {
}
}
job, _, err := apiClient.Beta.SPConfigApi.SpConfigExport(context.TODO()).ExportPayload(selectedTemplate.ExportBody).Execute()
job, _, err := apiClient.Beta.SPConfigApi.ExportSpConfig(context.TODO()).ExportPayload(selectedTemplate.ExportBody).Execute()
if err != nil {
return err
}

View File

@@ -0,0 +1,33 @@
// Copyright (c) 2021, SailPoint Technologies, Inc. All rights reserved.
package spconfig
import (
"bytes"
"testing"
"github.com/golang/mock/gomock"
"github.com/sailpoint-oss/sailpoint-cli/internal/config"
)
func TestNewTemplateCommand(t *testing.T) {
err := config.InitConfig()
if err != nil {
t.Fatalf("Error initializing config: %v", err)
}
ctrl := gomock.NewController(t)
defer ctrl.Finish()
cmd := newTemplateCmd()
b := new(bytes.Buffer)
cmd.SetOut(b)
cmd.SetArgs([]string{"all-objects"})
cmd.Flags().Set("wait", "true")
err = cmd.Execute()
if err != nil {
t.Fatalf("TestNewTemplateCommand: Unable to execute the command successfully: %v", err)
}
}

View File

@@ -10,6 +10,7 @@ import (
"github.com/fatih/color"
sailpointsdk "github.com/sailpoint-oss/golang-sdk/sdk-output/v3"
"github.com/sailpoint-oss/sailpoint-cli/internal/config"
"github.com/sailpoint-oss/sailpoint-cli/internal/sdk"
"github.com/spf13/cobra"
)
@@ -47,21 +48,22 @@ func newCreateCmd() *cobra.Command {
return fmt.Errorf("the transform must have a name")
}
if data["id"] != nil {
return fmt.Errorf("the transform cannot have an ID")
}
transform := sailpointsdk.NewTransform(data["name"].(string), data["type"].(string), data["attributes"].(map[string]interface{}))
apiClient := config.InitAPIClient()
_, _, err := apiClient.V3.TransformsApi.CreateTransform(context.TODO()).Transform(*transform).Execute()
transformObj, resp, err := apiClient.V3.TransformsApi.CreateTransform(context.TODO()).Transform(*transform).Execute()
if err != nil {
return err
}
err = ListTransforms()
if err != nil {
return err
return sdk.HandleSDKError(resp, err)
}
color.Green("Transform created successfully")
cmd.Print(*transformObj.Id)
return nil
},
}

View File

@@ -1,42 +0,0 @@
// Copyright (c) 2021, SailPoint Technologies, Inc. All rights reserved.
package transform
import (
"bytes"
"io"
"net/http"
"testing"
"github.com/golang/mock/gomock"
"github.com/sailpoint-oss/sailpoint-cli/internal/mocks"
)
func TestNewCreateCmd(t *testing.T) {
ctrl := gomock.NewController(t)
defer ctrl.Finish()
client := mocks.NewMockClient(ctrl)
client.EXPECT().
Post(gomock.Any(), gomock.Any(), "application/json", gomock.Any()).
Return(&http.Response{StatusCode: http.StatusCreated, Body: io.NopCloser(bytes.NewReader([]byte("{}")))}, nil).
Times(1)
client.EXPECT().
Get(gomock.Any(), gomock.Any()).
Return(&http.Response{StatusCode: http.StatusOK, Body: io.NopCloser(bytes.NewReader([]byte("[]")))}, nil).
Times(1)
cmd := newCreateCmd()
b := new(bytes.Buffer)
cmd.SetOut(b)
cmd.Flags().Set("file", "test_data/CreateTest.json")
cmd.PersistentFlags().StringP("transforms-endpoint", "e", transformsEndpoint, "Override transforms endpoint")
err := cmd.Execute()
if err != nil {
t.Fatalf("TestNewCreateCmd: Unable to execute the command successfully: %v", err)
}
}

137
cmd/transform/crud_test.go Normal file
View File

@@ -0,0 +1,137 @@
// Copyright (c) 2021, SailPoint Technologies, Inc. All rights reserved.
package transform
import (
"bytes"
"encoding/json"
"fmt"
"math/rand"
"os"
"path/filepath"
"testing"
"time"
"github.com/golang/mock/gomock"
sailpointsdk "github.com/sailpoint-oss/golang-sdk/sdk-output/v3"
"github.com/sailpoint-oss/sailpoint-cli/internal/config"
)
var (
createTemplate = []byte(`{
"attributes": {
"substring": "admin_"
},
"type": "indexOf",
"name": "Test Index Of Transform"
}`)
path = "test_data/"
createFile = "test_create.json"
updateFile = "test_update.json"
testTransform sailpointsdk.Transform
)
func init() {
rand.Seed(time.Now().UnixNano())
}
var letters = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
func randSeq(n int) string {
b := make([]rune, n)
for i := range b {
b[i] = letters[rand.Intn(len(letters))]
}
return string(b)
}
func SaveTransform(filePath string) error {
// Make sure to create the files if they dont exist
file, err := os.OpenFile((filepath.Join(path, filePath)), os.O_RDWR|os.O_CREATE, 0777)
if err != nil {
return err
}
createString, err := json.Marshal(testTransform)
if err != nil {
return err
}
_, err = file.Write(createString)
if err != nil {
return err
}
err = config.InitConfig()
if err != nil {
return err
}
return nil
}
func TestNewCRUDCmd(t *testing.T) {
err := json.Unmarshal([]byte(createTemplate), &testTransform)
if err != nil {
t.Fatalf("Error unmarshalling template: %v", err)
}
testTransform.Name = randSeq(6)
// Make sure the output dir exists first
err = os.MkdirAll(path, os.ModePerm)
if err != nil {
t.Fatalf("Error unmarshalling template: %v", err)
}
err = SaveTransform(createFile)
if err != nil {
t.Fatalf("Unable to save test data: %v", err)
}
ctrl := gomock.NewController(t)
defer ctrl.Finish()
createCMD := newCreateCmd()
createBuffer := new(bytes.Buffer)
createCMD.SetOut(createBuffer)
createCMD.Flags().Set("file", filepath.Join(path, createFile))
err = createCMD.Execute()
if err != nil {
t.Fatalf("TestNewCreateCmd: Unable to execute the command successfully: %v", err)
}
transformID := createBuffer.String()
fmt.Println(transformID)
testTransform.Attributes["substring"] = randSeq(24)
testTransform.Id = &transformID
err = SaveTransform(updateFile)
if err != nil {
t.Fatalf("Unable to save test data: %v", err)
}
cmd := newUpdateCmd()
cmd.Flags().Set("file", filepath.Join(path, updateFile))
err = cmd.Execute()
if err != nil {
t.Fatalf("error execute cmd: %v", err)
}
deleteCMD := newDeleteCmd()
deleteBuffer := new(bytes.Buffer)
deleteCMD.SetOut(deleteBuffer)
deleteCMD.SetArgs([]string{transformID})
err = deleteCMD.Execute()
if err != nil {
t.Fatalf("TestNewDeleteCmd: Unable to execute the command successfully: %v", err)
}
}

View File

@@ -11,6 +11,7 @@ import (
"github.com/charmbracelet/lipgloss"
"github.com/fatih/color"
"github.com/sailpoint-oss/sailpoint-cli/internal/config"
"github.com/sailpoint-oss/sailpoint-cli/internal/transform"
tuitable "github.com/sailpoint-oss/sailpoint-cli/internal/tui/table"
"github.com/spf13/cobra"
)
@@ -31,7 +32,7 @@ func newDeleteCmd() *cobra.Command {
id = args[0]
} else {
transforms, err := GetTransforms()
transforms, err := transform.GetTransforms()
if err != nil {
return err
}
@@ -90,7 +91,7 @@ func newDeleteCmd() *cobra.Command {
return err
}
err = ListTransforms()
err = transform.ListTransforms()
if err != nil {
return err
}

View File

@@ -1,42 +0,0 @@
// Copyright (c) 2021, SailPoint Technologies, Inc. All rights reserved.
package transform
import (
"bytes"
"io"
"net/http"
"testing"
"github.com/golang/mock/gomock"
"github.com/sailpoint-oss/sailpoint-cli/internal/mocks"
)
func TestNewDeleteCmd(t *testing.T) {
ctrl := gomock.NewController(t)
defer ctrl.Finish()
client := mocks.NewMockClient(ctrl)
client.EXPECT().
Delete(gomock.Any(), gomock.Any(), gomock.Any()).
Return(&http.Response{StatusCode: http.StatusNoContent, Body: io.NopCloser(bytes.NewReader([]byte("")))}, nil).
Times(1)
client.EXPECT().
Get(gomock.Any(), gomock.Any()).
Return(&http.Response{StatusCode: http.StatusOK, Body: io.NopCloser(bytes.NewReader([]byte("[]")))}, nil).
Times(1)
cmd := newDeleteCmd()
b := new(bytes.Buffer)
cmd.SetOut(b)
cmd.SetArgs([]string{"03d5187b-ab96-402c-b5a1-40b74285d77b"})
cmd.PersistentFlags().StringP("transforms-endpoint", "e", transformsEndpoint, "Override transforms endpoint")
err := cmd.Execute()
if err != nil {
t.Fatalf("TestNewCreateCmd: Unable to execute the command successfully: %v", err)
}
}

View File

@@ -8,10 +8,12 @@ import (
"strings"
"github.com/fatih/color"
"github.com/sailpoint-oss/sailpoint-cli/internal/transform"
"github.com/spf13/cobra"
)
func newDownloadCmd() *cobra.Command {
var destination string
cmd := &cobra.Command{
Use: "download",
Short: "download transforms",
@@ -21,14 +23,12 @@ func newDownloadCmd() *cobra.Command {
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
transforms, err := GetTransforms()
transforms, err := transform.GetTransforms()
if err != nil {
return err
}
destination := cmd.Flags().Lookup("destination").Value.String()
err = ListTransforms()
err = transform.ListTransforms()
if err != nil {
return err
}
@@ -38,9 +38,6 @@ func newDownloadCmd() *cobra.Command {
content, _ := json.MarshalIndent(v, "", " ")
var err error
if destination == "" {
destination = "transform_files"
}
// Make sure the output dir exists first
err = os.MkdirAll(destination, os.ModePerm)
@@ -69,7 +66,7 @@ func newDownloadCmd() *cobra.Command {
},
}
cmd.Flags().StringP("destination", "d", "", "The path to the directory to save the files in (default current working directory). If the directory doesn't exist, then it will be automatically created.")
cmd.Flags().StringVarP(&destination, "destination", "d", "transform_files", "The path to the directory to save the files in (default current working directory). If the directory doesn't exist, then it will be automatically created.")
return cmd
}

View File

@@ -4,41 +4,30 @@ package transform
import (
"bytes"
"io"
"net/http"
"testing"
"github.com/golang/mock/gomock"
"github.com/sailpoint-oss/sailpoint-cli/internal/mocks"
"github.com/sailpoint-oss/sailpoint-cli/internal/config"
)
func TestNewDownloadCmd(t *testing.T) {
err := config.InitConfig()
if err != nil {
t.Fatalf("Error initializing config: %v", err)
}
ctrl := gomock.NewController(t)
defer ctrl.Finish()
client := mocks.NewMockClient(ctrl)
client.EXPECT().
Get(gomock.Any(), gomock.Any()).
Return(&http.Response{StatusCode: http.StatusOK, Body: io.NopCloser(bytes.NewReader([]byte("[]")))}, nil).
Times(1)
cmd := newListCmd()
b := new(bytes.Buffer)
cmd.SetOut(b)
cmd.PersistentFlags().StringP("transforms-endpoint", "e", transformsEndpoint, "Override transforms endpoint")
err := cmd.Execute()
err = cmd.Execute()
if err != nil {
t.Fatalf("error execute cmd: %v", err)
}
out, err := io.ReadAll(b)
if err != nil {
t.Fatalf("error read out: %v", err)
}
if len(string(out)) == 0 {
t.Errorf("error empty out")
}
}

View File

@@ -2,6 +2,7 @@
package transform
import (
"github.com/sailpoint-oss/sailpoint-cli/internal/transform"
"github.com/spf13/cobra"
)
@@ -15,7 +16,7 @@ func newListCmd() *cobra.Command {
Args: cobra.NoArgs,
RunE: func(cmd *cobra.Command, args []string) error {
err := ListTransforms()
err := transform.ListTransforms()
if err != nil {
return err
}

View File

@@ -4,42 +4,29 @@ package transform
import (
"bytes"
"io"
"net/http"
"testing"
"github.com/golang/mock/gomock"
"github.com/sailpoint-oss/sailpoint-cli/internal/mocks"
"github.com/sailpoint-oss/sailpoint-cli/internal/config"
)
func TestNewListCmd(t *testing.T) {
err := config.InitConfig()
if err != nil {
t.Fatalf("Error initializing config: %v", err)
}
ctrl := gomock.NewController(t)
defer ctrl.Finish()
client := mocks.NewMockClient(ctrl)
client.EXPECT().
Get(gomock.Any(), gomock.Any()).
Return(&http.Response{StatusCode: http.StatusOK, Body: io.NopCloser(bytes.NewReader([]byte("[]")))}, nil).
Times(1)
cmd := newListCmd()
b := new(bytes.Buffer)
cmd.SetOut(b)
cmd.PersistentFlags().StringP("transforms-endpoint", "e", transformsEndpoint, "Override transforms endpoint")
err := cmd.Execute()
err = cmd.Execute()
if err != nil {
t.Fatalf("error execute cmd: %v", err)
}
out, err := io.ReadAll(b)
if err != nil {
t.Fatalf("error read out: %v", err)
}
if len(string(out)) == 0 {
t.Errorf("error empty out")
}
}

View File

@@ -1,10 +0,0 @@
{
"attributes": {
"attributeName": "e-mail",
"sourceName": "Employees"
},
"id": "26a50717-416c-470a-8467-f1e4f13a252a",
"internal": false,
"name": "AccountAttribute",
"type": "accountAttribute"
}

View File

@@ -1,7 +0,0 @@
{
"attributes": {
"attributeName": "e-mail",
"sourceName": "Employees"
},
"type": "accountAttribute"
}

View File

@@ -0,0 +1 @@
{"attributes":{"substring":"admin_"},"name":"wokhAA","type":"indexOf"}

View File

@@ -0,0 +1 @@
{"attributes":{"substring":"BbOKyzqZdGgDTBRYWcIdNncB"},"id":"76f7675c-eaf1-45db-ba1a-f19df0d3afb7","name":"wokhAA","type":"indexOf"}

View File

@@ -2,15 +2,8 @@
package transform
import (
"context"
"fmt"
"os"
"github.com/olekukonko/tablewriter"
sailpoint "github.com/sailpoint-oss/golang-sdk/sdk-output"
sailpointsdk "github.com/sailpoint-oss/golang-sdk/sdk-output/v3"
transmodel "github.com/sailpoint-oss/sailpoint-cli/cmd/transform/model"
"github.com/sailpoint-oss/sailpoint-cli/internal/config"
"github.com/spf13/cobra"
)
@@ -21,33 +14,6 @@ const (
userEndpoint = "/cc/api/identity/list"
)
func GetTransforms() ([]sailpointsdk.Transform, error) {
apiClient := config.InitAPIClient()
transforms, _, err := sailpoint.PaginateWithDefaults[sailpointsdk.Transform](apiClient.V3.TransformsApi.GetTransformsList(context.TODO()))
if err != nil {
return nil, err
}
return transforms, nil
}
func ListTransforms() error {
transforms, err := GetTransforms()
if err != nil {
return err
}
table := tablewriter.NewWriter(os.Stdout)
table.SetHeader(transmodel.TransformColumns)
for _, v := range transforms {
table.Append([]string{*v.Id, v.Name})
}
table.Render()
return nil
}
func NewTransformCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "transform",

View File

@@ -9,6 +9,7 @@ import (
sailpointsdk "github.com/sailpoint-oss/golang-sdk/sdk-output/v3"
"github.com/sailpoint-oss/sailpoint-cli/internal/config"
"github.com/sailpoint-oss/sailpoint-cli/internal/sdk"
"github.com/spf13/cobra"
)
@@ -52,9 +53,9 @@ func newUpdateCmd() *cobra.Command {
transform := sailpointsdk.NewTransform(data["name"].(string), data["type"].(string), data["attributes"].(map[string]interface{}))
apiClient := config.InitAPIClient()
_, _, err := apiClient.V3.TransformsApi.UpdateTransform(context.TODO(), id).Transform(*transform).Execute()
_, resp, err := apiClient.V3.TransformsApi.UpdateTransform(context.TODO(), id).Transform(*transform).Execute()
if err != nil {
return err
return sdk.HandleSDKError(resp, err)
}
return nil

View File

@@ -1,36 +0,0 @@
// Copyright (c) 2021, SailPoint Technologies, Inc. All rights reserved.
package transform
import (
"bytes"
"io"
"net/http"
"testing"
"github.com/golang/mock/gomock"
"github.com/sailpoint-oss/sailpoint-cli/internal/mocks"
)
func TestNewUpdateCmd(t *testing.T) {
ctrl := gomock.NewController(t)
defer ctrl.Finish()
client := mocks.NewMockClient(ctrl)
client.EXPECT().
Put(gomock.Any(), gomock.Any(), "application/json", gomock.Any()).
Return(&http.Response{StatusCode: http.StatusOK, Body: io.NopCloser(bytes.NewReader([]byte("{}")))}, nil).
Times(1)
cmd := newUpdateCmd()
b := new(bytes.Buffer)
cmd.SetOut(b)
cmd.Flags().Set("file", "test_data/CreateTest.json")
cmd.PersistentFlags().StringP("transforms-endpoint", "e", transformsEndpoint, "Override transforms endpoint")
err := cmd.Execute()
if err != nil {
t.Fatalf("error execute cmd: %v", err)
}
}

View File

@@ -13,7 +13,7 @@ import (
"github.com/spf13/cobra"
)
func newTroubleshootCmd() *cobra.Command {
func NewTroubleshootCmd() *cobra.Command {
var output string
cmd := &cobra.Command{
Use: "troubleshoot",

View File

@@ -19,7 +19,7 @@ func NewVACmd() *cobra.Command {
cmd.AddCommand(
newCollectCmd(),
newTroubleshootCmd(),
// newTroubleshootCmd(),
newUpdateCmd(),
newParseCmd(),
)

18
go.mod
View File

@@ -11,10 +11,10 @@ require (
github.com/golang/mock v1.6.0
github.com/kr/pretty v0.3.1
github.com/logrusorgru/aurora v2.0.3+incompatible
github.com/mitchellh/mapstructure v1.5.0
github.com/olekukonko/tablewriter v0.0.5
github.com/pkg/sftp v1.13.5
github.com/sailpoint-oss/golang-sdk/sdk-output v0.0.0-20230120204531-6c873078c994
github.com/sailpoint-oss/golang-sdk/sdk-output/v3 v3.0.0-20230120204531-6c873078c994
github.com/sailpoint-oss/golang-sdk/sdk-output v0.0.0-20230222184213-c79ce7b7dd1d
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966
github.com/spf13/cobra v1.6.1
github.com/spf13/pflag v1.0.5
@@ -22,8 +22,8 @@ require (
github.com/vbauerster/mpb/v8 v8.1.4
golang.org/x/crypto v0.5.0
golang.org/x/exp v0.0.0-20230206171751-46f607a40771
golang.org/x/oauth2 v0.4.0
golang.org/x/term v0.4.0
golang.org/x/oauth2 v0.5.0
golang.org/x/term v0.5.0
gopkg.in/alessio/shellescape.v1 v1.0.0-20170105083845-52074bc9df61
gopkg.in/yaml.v2 v2.4.0
)
@@ -31,9 +31,6 @@ require (
require (
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
github.com/hashicorp/go-retryablehttp v0.7.2 // indirect
github.com/sailpoint-oss/golang-sdk/sdk-output/beta v0.0.0-20230120204531-6c873078c994
github.com/sailpoint-oss/golang-sdk/sdk-output/cc v0.0.0-20230120204531-6c873078c994 // indirect
github.com/sailpoint-oss/golang-sdk/sdk-output/v2 v2.0.0-20230120204531-6c873078c994 // indirect
)
require (
@@ -55,7 +52,6 @@ require (
github.com/mattn/go-isatty v0.0.17 // indirect
github.com/mattn/go-localereader v0.0.1 // indirect
github.com/mattn/go-runewidth v0.0.14 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/muesli/ansi v0.0.0-20221106050444-61f0cd9a192a // indirect
github.com/muesli/cancelreader v0.2.2 // indirect
github.com/muesli/reflow v0.3.0 // indirect
@@ -68,9 +64,9 @@ require (
github.com/spf13/cast v1.5.0 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/subosito/gotenv v1.4.2 // indirect
golang.org/x/net v0.5.0 // indirect
golang.org/x/sys v0.4.0 // indirect
golang.org/x/text v0.6.0 // indirect
golang.org/x/net v0.7.0 // indirect
golang.org/x/sys v0.5.0 // indirect
golang.org/x/text v0.7.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/protobuf v1.28.1 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect

15
go.sum
View File

@@ -214,6 +214,7 @@ github.com/muesli/termenv v0.13.0 h1:wK20DRpJdDX8b7Ek2QfhvqhRQFZ237RGRO0RQ/Iqdy0
github.com/muesli/termenv v0.13.0/go.mod h1:sP1+uffeLaEYpyOTb8pLCUctGcGLnoFjSn4YJK5e2bc=
github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec=
github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY=
github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8=
github.com/pelletier/go-toml/v2 v2.0.6 h1:nrzqCb7j9cDFj2coyLNLaZuJTLjWjlaz6nvTvIwycIU=
github.com/pelletier/go-toml/v2 v2.0.6/go.mod h1:eumQOmlWiOPt5WriQQqoM5y18pDHwha2N+QD+EUNTek=
github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA=
@@ -236,6 +237,10 @@ github.com/sahilm/fuzzy v0.1.0 h1:FzWGaw2Opqyu+794ZQ9SYifWv2EIXpwP4q8dY1kDAwI=
github.com/sahilm/fuzzy v0.1.0/go.mod h1:VFvziUEIMCrT6A6tw2RFIXPXXmzXbOsSHF0DOI8ZK9Y=
github.com/sailpoint-oss/golang-sdk/sdk-output v0.0.0-20230120204531-6c873078c994 h1:9HpM1do8JIuIsSgfZ/YYqdFgF/SezU+v722DmsywmJk=
github.com/sailpoint-oss/golang-sdk/sdk-output v0.0.0-20230120204531-6c873078c994/go.mod h1:/iJHc4Y3Dup+MXPOzb1loRglOAHY4G3Ok1JK3ThajTE=
github.com/sailpoint-oss/golang-sdk/sdk-output v0.0.0-20230222143841-2a8f6ce74a06 h1:orSjc6MueoDEkp6u476PX2rLVLDx/2MA/kjRfOKy33Y=
github.com/sailpoint-oss/golang-sdk/sdk-output v0.0.0-20230222143841-2a8f6ce74a06/go.mod h1:IjzpmvcjkXE6o53V2IBdU8AL3Td5a55pK1kNU1hGa94=
github.com/sailpoint-oss/golang-sdk/sdk-output v0.0.0-20230222184213-c79ce7b7dd1d h1:P2+wYNXgEZ8r8yW558HvEBkdS5wYKEq6PkRirL1ooT8=
github.com/sailpoint-oss/golang-sdk/sdk-output v0.0.0-20230222184213-c79ce7b7dd1d/go.mod h1:IjzpmvcjkXE6o53V2IBdU8AL3Td5a55pK1kNU1hGa94=
github.com/sailpoint-oss/golang-sdk/sdk-output/beta v0.0.0-20230120204531-6c873078c994 h1:tL/7+mKaaj2im3JQGKYlGee0L73uujsogUYgT27PqiQ=
github.com/sailpoint-oss/golang-sdk/sdk-output/beta v0.0.0-20230120204531-6c873078c994/go.mod h1:3wGDveZ8dcWM9GkW2E3WcYxBZsFOkLk+Cy8ezuJd/Io=
github.com/sailpoint-oss/golang-sdk/sdk-output/cc v0.0.0-20230120204531-6c873078c994 h1:bQ4rqQ6SsE7sP6fH8H3RkyDiwacffmv4WuAszMMDF8A=
@@ -365,6 +370,8 @@ golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96b
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/net v0.5.0 h1:GyT4nK/YDHSqa1c4753ouYCDajOYKTja9Xb/OHtgvSw=
golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws=
golang.org/x/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g=
golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
@@ -377,6 +384,8 @@ golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ
golang.org/x/oauth2 v0.0.0-20210323180902-22b0adad7558/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
golang.org/x/oauth2 v0.4.0 h1:NF0gk8LVPg1Ml7SSbGyySuoxdsXitj7TvgvuRxIMc/M=
golang.org/x/oauth2 v0.4.0/go.mod h1:RznEsdpjGAINPTOF0UH/t+xJ75L18YO3Ho6Pyn+uRec=
golang.org/x/oauth2 v0.5.0 h1:HuArIo48skDwlrvM3sEdHXElYslAMsf3KwRkkW4MC4s=
golang.org/x/oauth2 v0.5.0/go.mod h1:9/XBHVqLaWO3/BRHs5jbpYCnOZVjj5V0ndyaAM7KB4I=
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
@@ -434,10 +443,14 @@ golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBc
golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.4.0 h1:Zr2JFtRQNX3BCZ8YtxRE9hNJYC8J6I1MVbMg6owUp18=
golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU=
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/term v0.4.0 h1:O7UWfv5+A2qiuulQk30kVinPoMtoIPeVaKLEgLpVkvg=
golang.org/x/term v0.4.0/go.mod h1:9P2UbLfCdcvo3p/nzKvsmas4TnlujnuoV9hGgYzW1lQ=
golang.org/x/term v0.5.0 h1:n2a8QNdAb0sZNpU9R1ALUXBbY+w51fCQDN+7EdxNBsY=
golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
@@ -448,6 +461,8 @@ golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
golang.org/x/text v0.6.0 h1:3XmdazWV+ubf7QgHSTWeykHOci5oeekaGJBLkrkaw4k=
golang.org/x/text v0.6.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo=
golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=

View File

@@ -10,8 +10,6 @@ import (
"github.com/fatih/color"
sailpoint "github.com/sailpoint-oss/golang-sdk/sdk-output"
"github.com/sailpoint-oss/sailpoint-cli/internal/types"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
@@ -35,12 +33,21 @@ type Environment struct {
}
type CLIConfig struct {
//Standard Variables
CustomExportTemplatesPath string `mapstructure:"customexporttemplatespath"`
CustomSearchTemplatesPath string `mapstructure:"customsearchtemplatespath"`
Debug bool `mapstructure:"debug"`
AuthType string `mapstructure:"authtype"`
ActiveEnvironment string `mapstructure:"activeenvironment"`
Environments map[string]Environment
Environments map[string]Environment `mapstructure:"environments"`
//Pipline Variables
ClientID string `mapstructure:"clientid, omitempty"`
ClientSecret string `mapstructure:"clientsecret, omitempty"`
BaseURL string `mapstructure:"base_url, omitempty"`
AccessToken string `mapstructure:"accesstoken"`
Expiry time.Time `mapstructure:"expiry"`
}
func GetCustomSearchTemplatePath() string {
@@ -87,9 +94,11 @@ func SetActiveEnvironment(activeEnv string) {
viper.Set("activeenvironment", strings.ToLower(activeEnv))
}
func InitConfig() {
func InitConfig() error {
home, err := os.UserHomeDir()
cobra.CheckErr(err)
if err != nil {
return err
}
viper.AddConfigPath(filepath.Join(home, ".sailpoint"))
viper.SetConfigName("config")
@@ -110,13 +119,13 @@ func InitConfig() {
// IGNORE they may be using env vars
} else {
// Config file was found but another error was produced
cobra.CheckErr(err)
return err
}
}
return nil
}
func InitAPIClient() *sailpoint.APIClient {
var DevNull types.DevNull
token, err := GetAuthToken()
if err != nil && GetDebug() {
color.Yellow("unable to retrieve accesstoken: %s ", err)
@@ -124,8 +133,9 @@ func InitAPIClient() *sailpoint.APIClient {
configuration := sailpoint.NewConfiguration(sailpoint.ClientConfiguration{Token: token, BaseURL: GetBaseUrl()})
apiClient := sailpoint.NewAPIClient(configuration)
apiClient.V3.GetConfig().HTTPClient.Logger = DevNull
apiClient.Beta.GetConfig().HTTPClient.Logger = DevNull
// var DevNull types.DevNull
// apiClient.V3.GetConfig().HTTPClient.Logger = DevNull
// apiClient.Beta.GetConfig().HTTPClient.Logger = DevNull
return apiClient
}
@@ -149,15 +159,27 @@ func GetAuthToken() (string, error) {
return GetPatToken(), nil
}
case "oauth":
if GetOAuthTokenExpiry().After(time.Now()) {
return GetOAuthToken(), nil
return "", fmt.Errorf("oauth is not currently supported")
// if GetOAuthTokenExpiry().After(time.Now()) {
// return GetOAuthToken(), nil
// } else {
// err = OAuthLogin()
// if err != nil {
// return "", err
// }
// return GetOAuthToken(), nil
// }
case "pipeline":
if GetPipelineTokenExpiry().After(time.Now()) {
return GetPipelineToken(), nil
} else {
err = OAuthLogin()
err = PipelineLogin()
if err != nil {
return "", err
}
return GetOAuthToken(), nil
return GetPipelineToken(), nil
}
default:
return "", fmt.Errorf("invalid authtype configured")
@@ -230,29 +252,50 @@ func Validate() error {
return err
}
if config.Environments[config.ActiveEnvironment].BaseURL == "" {
return fmt.Errorf("environment is missing BaseURL")
}
if config.Environments[config.ActiveEnvironment].TenantURL == "" {
return fmt.Errorf("environment is missing TenantURL")
}
switch GetAuthType() {
case "pat":
if config.Environments[config.ActiveEnvironment].BaseURL == "" {
return fmt.Errorf("configured environment is missing BaseURL")
}
if config.Environments[config.ActiveEnvironment].Pat.ClientID == "" {
return fmt.Errorf("environment is missing PAT ClientID")
return fmt.Errorf("configured environment is missing PAT ClientID")
}
if config.Environments[config.ActiveEnvironment].Pat.ClientSecret == "" {
return fmt.Errorf("environment is missing PAT ClientSecret")
return fmt.Errorf("configured environment is missing PAT ClientSecret")
}
return nil
case "oauth":
return fmt.Errorf("oauth is not currently supported")
// if config.Environments[config.ActiveEnvironment].BaseURL == "" {
// return fmt.Errorf("configured environment is missing BaseURL")
// }
// if config.Environments[config.ActiveEnvironment].TenantURL == "" {
// return fmt.Errorf("configured environment is missing TenantURL")
// }
// return nil
case "pipeline":
if config.BaseURL == "" {
return fmt.Errorf("pipeline environment is missing SAIL_BASE_URL")
}
if config.ClientID == "" {
return fmt.Errorf("pipeline environment is missing SAIL_CLIENTID")
}
if config.ClientSecret == "" {
return fmt.Errorf("pipeline environment is missing SAIL_CLIENTSECRET")
}
return nil

View File

@@ -41,9 +41,9 @@ var (
)
const (
ClientID = "idn-support-portal-dev"
ClientID = "sailpoint-cli"
RedirectPort = "3000"
RedirectPath = "/callback/css-255"
RedirectPath = "/callback"
RedirectURL = "http://localhost:" + RedirectPort + RedirectPath
)
@@ -78,9 +78,7 @@ func CallbackHandler(w http.ResponseWriter, r *http.Request) {
SetOAuthTokenExpiry(tok.Expiry)
// show succes page
msg := "<p><strong>SailPoint CLI, OAuth Login Success!</strong></p>"
msg = msg + "<p>You are authenticated and can now return to the CLI.</p>"
fmt.Fprint(w, msg)
fmt.Fprint(w, OAuthSuccessPage)
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
defer cancel()

105
internal/config/pipeline.go Normal file
View File

@@ -0,0 +1,105 @@
package config
import (
"context"
"encoding/json"
"fmt"
"io"
"net/http"
"net/url"
"strings"
"time"
"github.com/spf13/viper"
)
func GetPipelineToken() string {
return viper.GetString("accesstoken")
}
func SetPipelineToken(token string) {
viper.Set("accesstoken", token)
}
func GetPipelineTokenExpiry() time.Time {
return viper.GetTime("expiry")
}
func SetPipelineTokenExpiry(expiry time.Time) {
viper.Set("expiry", expiry)
}
func GetPipelineClientID() string {
return viper.GetString("clientid")
}
func GetPipelineClientSecret() string {
return viper.GetString("clientsecret")
}
func SetPipelineClientID(ClientID string) {
viper.Set("clientid", ClientID)
}
func SetPipelineClientSecret(ClientSecret string) {
viper.Set("environments.%s.pat.clientsecret", ClientSecret)
}
func PipelineLogin() error {
config, err := GetConfig()
if err != nil {
return err
}
uri, err := url.Parse(GetTokenUrl())
if err != nil {
return err
}
query := &url.Values{}
query.Add("grant_type", "client_credentials")
uri.RawQuery = query.Encode()
data := &url.Values{}
data.Add("client_id", config.ClientID)
data.Add("client_secret", config.ClientSecret)
ctx := context.TODO()
req, err := http.NewRequestWithContext(ctx, http.MethodPost, uri.String(), strings.NewReader(data.Encode()))
if err != nil {
return err
}
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
client := http.Client{}
resp, err := client.Do(req)
if err != nil {
return err
}
defer func(Body io.ReadCloser) {
_ = Body.Close()
}(resp.Body)
if resp.StatusCode != http.StatusOK {
return fmt.Errorf("failed to retrieve access token. status %s", resp.Status)
}
raw, err := io.ReadAll(resp.Body)
if err != nil {
return err
}
var tResponse TokenResponse
err = json.Unmarshal(raw, &tResponse)
if err != nil {
return err
}
now := time.Now()
SetPipelineToken(tResponse.AccessToken)
SetPipelineTokenExpiry(now.Add(time.Second * time.Duration(tResponse.ExpiresIn)))
return nil
}

View File

@@ -0,0 +1,38 @@
package config
const OAuthSuccessPage = `
<!doctype html>
<meta charset="utf-8">
<title>Success: SailPoint CLI</title>
<style type="text/css">
body {
color: #1B1F23;
background: #F6F8FA;
font-size: 14px;
font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
line-height: 1.5;
max-width: 620px;
margin: 28px auto;
text-align: center;
}
h1 {
font-size: 24px;
margin-bottom: 0;
}
p {
margin-top: 0;
}
.box {
border: 1px solid #E1E4E8;
background: white;
padding: 24px;
margin: 28px;
}
</style>
<body>
<div class="box">
<h1>Successfully authenticated SailPoint CLI</h1>
<p>You may now close this tab and return to the terminal.</p>
</div>
</body>
`

46
internal/sdk/sdk.go Normal file
View File

@@ -0,0 +1,46 @@
package sdk
import (
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
)
type Message struct {
Locale string `json:"locale,omitempty"`
LocaleOrigin string `json:"localeOrigin,omitempty"`
Text string `json:"text,omitempty"`
}
type SDKResp struct {
DetailCode string `json:"detailCode,omitempty"`
TrackingID string `json:"trackingId,omitempty"`
Messages []Message `json:"messages,omitempty"`
Causes []interface{} `json:"causes,omitempty"`
}
func HandleSDKError(resp *http.Response, sdkErr error) error {
defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body)
if err != nil {
fmt.Println(err)
}
var formattedBody SDKResp
err = json.Unmarshal(body, &formattedBody)
if err != nil {
fmt.Println(err)
}
outputErr := fmt.Sprintf("%s\ndate: %s\nslpt-request-id: %s\nmsgs:\n", sdkErr, resp.Header["Date"][0], resp.Header["Slpt-Request-Id"][0])
if len(formattedBody.Messages) > 0 {
for _, v := range formattedBody.Messages {
outputErr = outputErr + fmt.Sprintf("%s\n", v.Text)
}
}
return fmt.Errorf(outputErr)
}

View File

@@ -31,9 +31,9 @@ func ParseIndicie(indicie string) (sailpointsdk.Index, error) {
return "*", fmt.Errorf("indicie provided is invalid")
}
func BuildSearch(searchQuery string, sort []string, indicies []string) (sailpointsdk.Search1, error) {
func BuildSearch(searchQuery string, sort []string, indicies []string) (sailpointsdk.Search, error) {
search := sailpointsdk.NewSearch1()
search := sailpointsdk.NewSearch()
search.Query = sailpointsdk.NewQuery()
search.Query.Query = &searchQuery
search.Sort = sort
@@ -52,11 +52,11 @@ func BuildSearch(searchQuery string, sort []string, indicies []string) (sailpoin
return *search, nil
}
func PerformSearch(apiClient sailpoint.APIClient, search sailpointsdk.Search1) (SearchResults, error) {
func PerformSearch(apiClient sailpoint.APIClient, search sailpointsdk.Search) (SearchResults, error) {
var SearchResults SearchResults
ctx := context.TODO()
resp, r, err := sailpoint.PaginateWithDefaults[map[string]interface{}](apiClient.V3.SearchApi.SearchPost(ctx).Search1(search))
resp, r, err := sailpoint.PaginateWithDefaults[map[string]interface{}](apiClient.V3.SearchApi.SearchPost(ctx).Search(search))
if err != nil {
fmt.Fprintf(os.Stderr, "Error: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)

View File

@@ -19,7 +19,7 @@ func DownloadExport(jobId string, fileName string, folderPath string) error {
apiClient := config.InitAPIClient()
for {
response, _, err := apiClient.Beta.SPConfigApi.SpConfigExportJobStatus(context.TODO(), jobId).Execute()
response, _, err := apiClient.Beta.SPConfigApi.ExportSpConfigJobStatus(context.TODO(), jobId).Execute()
if err != nil {
return err
}
@@ -30,7 +30,7 @@ func DownloadExport(jobId string, fileName string, folderPath string) error {
switch response.Status {
case "COMPLETE":
color.Green("Downloading Export Data")
export, _, err := apiClient.Beta.SPConfigApi.SpConfigExportDownload(context.TODO(), jobId).Execute()
export, _, err := apiClient.Beta.SPConfigApi.ExportSpConfigDownload(context.TODO(), jobId).Execute()
if err != nil {
return err
}

View File

@@ -20,7 +20,7 @@ type SearchTemplate struct {
Name string `json:"name"`
Description string `json:"description"`
Variables []Variable `json:"variables"`
SearchQuery sailpointsdk.Search1 `json:"searchQuery"`
SearchQuery sailpointsdk.Search `json:"searchQuery"`
Raw []byte
}

View File

@@ -0,0 +1,40 @@
package transform
import (
"context"
"os"
"github.com/olekukonko/tablewriter"
sailpoint "github.com/sailpoint-oss/golang-sdk/sdk-output"
sailpointsdk "github.com/sailpoint-oss/golang-sdk/sdk-output/v3"
transmodel "github.com/sailpoint-oss/sailpoint-cli/cmd/transform/model"
"github.com/sailpoint-oss/sailpoint-cli/internal/config"
"github.com/sailpoint-oss/sailpoint-cli/internal/sdk"
)
func GetTransforms() ([]sailpointsdk.Transform, error) {
apiClient := config.InitAPIClient()
transforms, resp, err := sailpoint.PaginateWithDefaults[sailpointsdk.Transform](apiClient.V3.TransformsApi.ListTransforms(context.TODO()))
if err != nil {
return transforms, sdk.HandleSDKError(resp, err)
}
return transforms, nil
}
func ListTransforms() error {
transforms, err := GetTransforms()
if err != nil {
return err
}
table := tablewriter.NewWriter(os.Stdout)
table.SetHeader(transmodel.TransformColumns)
for _, v := range transforms {
table.Append([]string{*v.Id, v.Name})
}
table.Render()
return nil
}

View File

@@ -12,7 +12,7 @@ import (
var rootCmd *cobra.Command
func init() {
config.InitConfig()
cobra.CheckErr(config.InitConfig())
rootCmd = root.NewRootCmd()
}

View File

@@ -1,21 +0,0 @@
MIT License
Copyright (c) 2022 SailPoint Technologies Holdings, Inc
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@@ -1,4 +1,4 @@
# Go API client for sailpointbetasdk
# Go API client for beta
Use these APIs to interact with the IdentityNow platform to achieve repeatable, automated processes with greater scalability. These APIs are in beta and are subject to change. We encourage you to join the SailPoint Developer Community forum at https://developer.sailpoint.com/discuss to connect with other developers using our APIs.
@@ -23,7 +23,7 @@ go get golang.org/x/net/context
Put the package under your project folder and add the following in import:
```golang
import sailpointbetasdk "github.com/GIT_USER_ID/GIT_REPO_ID"
import beta "github.com/GIT_USER_ID/GIT_REPO_ID"
```
To use a proxy, set the environment variable `HTTP_PROXY`:
@@ -41,7 +41,7 @@ Default configuration comes with `Servers` field that contains server objects as
For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`.
```golang
ctx := context.WithValue(context.Background(), sailpointbetasdk.ContextServerIndex, 1)
ctx := context.WithValue(context.Background(), beta.ContextServerIndex, 1)
```
### Templated Server URL
@@ -49,7 +49,7 @@ ctx := context.WithValue(context.Background(), sailpointbetasdk.ContextServerInd
Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`.
```golang
ctx := context.WithValue(context.Background(), sailpointbetasdk.ContextServerVariables, map[string]string{
ctx := context.WithValue(context.Background(), beta.ContextServerVariables, map[string]string{
"basePath": "v2",
})
```
@@ -63,10 +63,10 @@ An operation is uniquely identified by `"{classname}Service.{nickname}"` string.
Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps.
```golang
ctx := context.WithValue(context.Background(), sailpointbetasdk.ContextOperationServerIndices, map[string]int{
ctx := context.WithValue(context.Background(), beta.ContextOperationServerIndices, map[string]int{
"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), sailpointbetasdk.ContextOperationServerVariables, map[string]map[string]string{
ctx = context.WithValue(context.Background(), beta.ContextOperationServerVariables, map[string]map[string]string{
"{classname}Service.{nickname}": {
"port": "8443",
},
@@ -79,19 +79,19 @@ All URIs are relative to *https://sailpoint.api.identitynow.com/beta*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*AccessProfilesApi* | [**BulkDeleteAccessProfiles**](docs/AccessProfilesApi.md#bulkdeleteaccessprofiles) | **Post** /access-profiles/bulk-delete | Delete Access Profile(s)
*AccessProfilesApi* | [**CreateAccessProfile**](docs/AccessProfilesApi.md#createaccessprofile) | **Post** /access-profiles | Create an Access Profile
*AccessProfilesApi* | [**DeleteAccessProfile**](docs/AccessProfilesApi.md#deleteaccessprofile) | **Delete** /access-profiles/{id} | Delete the specified Access Profile
*AccessProfilesApi* | [**DeleteAccessProfilesInBulk**](docs/AccessProfilesApi.md#deleteaccessprofilesinbulk) | **Post** /access-profiles/bulk-delete | Delete Access Profile(s)
*AccessProfilesApi* | [**GetAccessProfile**](docs/AccessProfilesApi.md#getaccessprofile) | **Get** /access-profiles/{id} | Get an Access Profile
*AccessProfilesApi* | [**ListAccessProfileEntitlements**](docs/AccessProfilesApi.md#listaccessprofileentitlements) | **Get** /access-profiles/{id}/entitlements | List Access Profile&#39;s Entitlements
*AccessProfilesApi* | [**GetAccessProfileEntitlements**](docs/AccessProfilesApi.md#getaccessprofileentitlements) | **Get** /access-profiles/{id}/entitlements | List Access Profile&#39;s Entitlements
*AccessProfilesApi* | [**ListAccessProfiles**](docs/AccessProfilesApi.md#listaccessprofiles) | **Get** /access-profiles | List Access Profiles
*AccessProfilesApi* | [**PatchAccessProfile**](docs/AccessProfilesApi.md#patchaccessprofile) | **Patch** /access-profiles/{id} | Patch a specified Access Profile
*AccessRequestApprovalsApi* | [**ApprovalSummary**](docs/AccessRequestApprovalsApi.md#approvalsummary) | **Get** /access-request-approvals/approval-summary | Get the number of pending, approved and rejected access requests approvals
*AccessRequestApprovalsApi* | [**ApproveRequest**](docs/AccessRequestApprovalsApi.md#approverequest) | **Post** /access-request-approvals/{approvalId}/approve | Approves an access request approval.
*AccessRequestApprovalsApi* | [**ForwardRequest**](docs/AccessRequestApprovalsApi.md#forwardrequest) | **Post** /access-request-approvals/{approvalId}/forward | Forwards an access request approval to a new owner.
*AccessRequestApprovalsApi* | [**ApproveAccessRequest**](docs/AccessRequestApprovalsApi.md#approveaccessrequest) | **Post** /access-request-approvals/{approvalId}/approve | Approves an access request approval.
*AccessRequestApprovalsApi* | [**ForwardAccessRequest**](docs/AccessRequestApprovalsApi.md#forwardaccessrequest) | **Post** /access-request-approvals/{approvalId}/forward | Forwards an access request approval to a new owner.
*AccessRequestApprovalsApi* | [**GetAccessRequestApprovalSummary**](docs/AccessRequestApprovalsApi.md#getaccessrequestapprovalsummary) | **Get** /access-request-approvals/approval-summary | Get the number of pending, approved and rejected access requests approvals
*AccessRequestApprovalsApi* | [**ListCompletedApprovals**](docs/AccessRequestApprovalsApi.md#listcompletedapprovals) | **Get** /access-request-approvals/completed | Completed Access Request Approvals List
*AccessRequestApprovalsApi* | [**ListPendingApprovals**](docs/AccessRequestApprovalsApi.md#listpendingapprovals) | **Get** /access-request-approvals/pending | Pending Access Request Approvals List
*AccessRequestApprovalsApi* | [**RejectRequest**](docs/AccessRequestApprovalsApi.md#rejectrequest) | **Post** /access-request-approvals/{approvalId}/reject | Rejects an access request approval.
*AccessRequestApprovalsApi* | [**RejectAccessRequest**](docs/AccessRequestApprovalsApi.md#rejectaccessrequest) | **Post** /access-request-approvals/{approvalId}/reject | Rejects an access request approval.
*AccessRequestsApi* | [**CancelAccessRequest**](docs/AccessRequestsApi.md#cancelaccessrequest) | **Post** /access-requests/cancel | Cancel Access Request
*AccessRequestsApi* | [**CloseAccessRequest**](docs/AccessRequestsApi.md#closeaccessrequest) | **Post** /access-requests/close | Close Access Request
*AccessRequestsApi* | [**CreateAccessRequest**](docs/AccessRequestsApi.md#createaccessrequest) | **Post** /access-requests | Submit an Access Request
@@ -104,7 +104,11 @@ Class | Method | HTTP request | Description
*AccountsApi* | [**CreateAccount**](docs/AccountsApi.md#createaccount) | **Post** /accounts | Create Account
*AccountsApi* | [**DeleteAccount**](docs/AccountsApi.md#deleteaccount) | **Delete** /accounts/{id} | Delete Account
*AccountsApi* | [**DisableAccount**](docs/AccountsApi.md#disableaccount) | **Post** /accounts/{id}/disable | Disable Account
*AccountsApi* | [**DisableAccountForIdentity**](docs/AccountsApi.md#disableaccountforidentity) | **Post** /identities-accounts/{id}/disable | Disable IDN Account for Identity
*AccountsApi* | [**DisableAccountsForIdentities**](docs/AccountsApi.md#disableaccountsforidentities) | **Post** /identities-accounts/disable | Disable IDN Accounts for Identities
*AccountsApi* | [**EnableAccount**](docs/AccountsApi.md#enableaccount) | **Post** /accounts/{id}/enable | Enable Account
*AccountsApi* | [**EnableAccountForIdentity**](docs/AccountsApi.md#enableaccountforidentity) | **Post** /identities-accounts/{id}/enable | Enable IDN Account for Identity
*AccountsApi* | [**EnableAccountsForIdentities**](docs/AccountsApi.md#enableaccountsforidentities) | **Post** /identities-accounts/enable | Enable IDN Accounts for Identities
*AccountsApi* | [**GetAccount**](docs/AccountsApi.md#getaccount) | **Get** /accounts/{id} | Account Details
*AccountsApi* | [**GetAccountEntitlements**](docs/AccountsApi.md#getaccountentitlements) | **Get** /accounts/{id}/entitlements | Account Entitlements
*AccountsApi* | [**ListAccounts**](docs/AccountsApi.md#listaccounts) | **Get** /accounts | Accounts List
@@ -113,7 +117,6 @@ Class | Method | HTTP request | Description
*AccountsApi* | [**UnlockAccount**](docs/AccountsApi.md#unlockaccount) | **Post** /accounts/{id}/unlock | Unlock Account
*AccountsApi* | [**UpdateAccount**](docs/AccountsApi.md#updateaccount) | **Patch** /accounts/{id} | Update Account
*CertificationCampaignsApi* | [**ActivateCampaign**](docs/CertificationCampaignsApi.md#activatecampaign) | **Post** /campaigns/{id}/activate | Activate a Campaign
*CertificationCampaignsApi* | [**AdminReassign**](docs/CertificationCampaignsApi.md#adminreassign) | **Post** /campaigns/{id}/reassign | Reassign Certifications
*CertificationCampaignsApi* | [**CompleteCampaign**](docs/CertificationCampaignsApi.md#completecampaign) | **Post** /campaigns/{id}/complete | Complete a Campaign
*CertificationCampaignsApi* | [**CreateCampaign**](docs/CertificationCampaignsApi.md#createcampaign) | **Post** /campaigns | Create a campaign
*CertificationCampaignsApi* | [**CreateCampaignTemplate**](docs/CertificationCampaignsApi.md#createcampaigntemplate) | **Post** /campaign-templates | Create a Campaign Template
@@ -129,6 +132,7 @@ Class | Method | HTTP request | Description
*CertificationCampaignsApi* | [**GetCampaignTemplateSchedule**](docs/CertificationCampaignsApi.md#getcampaigntemplateschedule) | **Get** /campaign-templates/{id}/schedule | Gets a Campaign Template&#39;s Schedule
*CertificationCampaignsApi* | [**ListCampaignTemplates**](docs/CertificationCampaignsApi.md#listcampaigntemplates) | **Get** /campaign-templates | List Campaign Templates
*CertificationCampaignsApi* | [**PatchCampaignTemplate**](docs/CertificationCampaignsApi.md#patchcampaigntemplate) | **Patch** /campaign-templates/{id} | Update a Campaign Template
*CertificationCampaignsApi* | [**ReassignCampaign**](docs/CertificationCampaignsApi.md#reassigncampaign) | **Post** /campaigns/{id}/reassign | Reassign Certifications
*CertificationCampaignsApi* | [**RunCampaignRemediationScan**](docs/CertificationCampaignsApi.md#runcampaignremediationscan) | **Post** /campaigns/{id}/run-remediation-scan | Run Campaign Remediation Scan
*CertificationCampaignsApi* | [**RunCampaignReport**](docs/CertificationCampaignsApi.md#runcampaignreport) | **Post** /campaigns/{id}/run-report/{type} | Run Campaign Report
*CertificationCampaignsApi* | [**SetCampaignReportsConfig**](docs/CertificationCampaignsApi.md#setcampaignreportsconfig) | **Put** /campaigns/reports-configuration | Set Campaign Reports Configuration
@@ -137,7 +141,7 @@ Class | Method | HTTP request | Description
*CertificationsApi* | [**GetIdentityCertificationItemPermissions**](docs/CertificationsApi.md#getidentitycertificationitempermissions) | **Get** /certifications/{certificationId}/access-review-items/{itemId}/permissions | Permissions for Entitlement Certification Item
*CertificationsApi* | [**GetIdentityCertificationPendingTasks**](docs/CertificationsApi.md#getidentitycertificationpendingtasks) | **Get** /certifications/{id}/tasks-pending | Pending Certification Tasks
*CertificationsApi* | [**GetIdentityCertificationTaskStatus**](docs/CertificationsApi.md#getidentitycertificationtaskstatus) | **Get** /certifications/{id}/tasks/{taskId} | Certification Task Status
*CertificationsApi* | [**ListReviewers**](docs/CertificationsApi.md#listreviewers) | **Get** /certifications/{id}/reviewers | List of Reviewers for the certification
*CertificationsApi* | [**ListCertificationReviewers**](docs/CertificationsApi.md#listcertificationreviewers) | **Get** /certifications/{id}/reviewers | List of Reviewers for the certification
*CertificationsApi* | [**ReassignIdentityCertsAsync**](docs/CertificationsApi.md#reassignidentitycertsasync) | **Post** /certifications/{id}/reassign-async | Reassign Certifications Asynchronously
*ConnectorRuleManagementApi* | [**CreateConnectorRule**](docs/ConnectorRuleManagementApi.md#createconnectorrule) | **Post** /connector-rules | Create Connector Rule
*ConnectorRuleManagementApi* | [**DeleteConnectorRule**](docs/ConnectorRuleManagementApi.md#deleteconnectorrule) | **Delete** /connector-rules/{id} | Delete a Connector-Rule
@@ -149,39 +153,39 @@ Class | Method | HTTP request | Description
*CustomPasswordInstructionsApi* | [**CreateCustomPasswordInstructions**](docs/CustomPasswordInstructionsApi.md#createcustompasswordinstructions) | **Post** /custom-password-instructions | Create Custom Password Instructions
*CustomPasswordInstructionsApi* | [**DeleteCustomPasswordInstructions**](docs/CustomPasswordInstructionsApi.md#deletecustompasswordinstructions) | **Delete** /custom-password-instructions/{pageId} | Delete Custom Password Instructions by page ID
*CustomPasswordInstructionsApi* | [**GetCustomPasswordInstructions**](docs/CustomPasswordInstructionsApi.md#getcustompasswordinstructions) | **Get** /custom-password-instructions/{pageId} | Get Custom Password Instructions by Page ID
*EntitlementsApi* | [**EntitlementsBulkUpdate**](docs/EntitlementsApi.md#entitlementsbulkupdate) | **Post** /entitlements/bulk-update | Bulk update an entitlement list
*EntitlementsApi* | [**GetEntitlement**](docs/EntitlementsApi.md#getentitlement) | **Get** /entitlements/{id} | Get an Entitlement
*EntitlementsApi* | [**ListEntitlementChildren**](docs/EntitlementsApi.md#listentitlementchildren) | **Get** /entitlements/{id}/children | List of entitlements children
*EntitlementsApi* | [**ListEntitlementParents**](docs/EntitlementsApi.md#listentitlementparents) | **Get** /entitlements/{id}/parents | List of entitlements parents
*EntitlementsApi* | [**ListEntitlementchildren**](docs/EntitlementsApi.md#listentitlementchildren) | **Get** /entitlements/{id}/children | List of entitlements children
*EntitlementsApi* | [**ListEntitlements**](docs/EntitlementsApi.md#listentitlements) | **Get** /entitlements | Gets a list of entitlements.
*EntitlementsApi* | [**PatchEntitlement**](docs/EntitlementsApi.md#patchentitlement) | **Patch** /entitlements/{id} | Patch a specified Entitlement
*IAIAccessRequestRecommendationsApi* | [**AccessRequestRecommendations**](docs/IAIAccessRequestRecommendationsApi.md#accessrequestrecommendations) | **Get** /ai-access-request-recommendations | Identity Access Request Recommendations
*EntitlementsApi* | [**UpdateEntitlementsInBulk**](docs/EntitlementsApi.md#updateentitlementsinbulk) | **Post** /entitlements/bulk-update | Bulk update an entitlement list
*IAIAccessRequestRecommendationsApi* | [**AddAccessRequestRecommendationsIgnoredItem**](docs/IAIAccessRequestRecommendationsApi.md#addaccessrequestrecommendationsignoreditem) | **Post** /ai-access-request-recommendations/ignored-items | Notification of Ignored Access Request Recommendations
*IAIAccessRequestRecommendationsApi* | [**AddAccessRequestRecommendationsRequestedItem**](docs/IAIAccessRequestRecommendationsApi.md#addaccessrequestrecommendationsrequesteditem) | **Post** /ai-access-request-recommendations/requested-items | Notification of Requested Access Request Recommendations
*IAIAccessRequestRecommendationsApi* | [**AddAccessRequestRecommendationsViewedItem**](docs/IAIAccessRequestRecommendationsApi.md#addaccessrequestrecommendationsvieweditem) | **Post** /ai-access-request-recommendations/viewed-items | Notification of Viewed Access Request Recommendations
*IAIAccessRequestRecommendationsApi* | [**AddAccessRequestRecommendationsViewedItems**](docs/IAIAccessRequestRecommendationsApi.md#addaccessrequestrecommendationsvieweditems) | **Post** /ai-access-request-recommendations/viewed-items/bulk-create | Notification of Viewed Access Request Recommendations in Bulk
*IAIAccessRequestRecommendationsApi* | [**GetAccessRequestRecommendations**](docs/IAIAccessRequestRecommendationsApi.md#getaccessrequestrecommendations) | **Get** /ai-access-request-recommendations | Identity Access Request Recommendations
*IAIAccessRequestRecommendationsApi* | [**GetAccessRequestRecommendationsIgnoredItems**](docs/IAIAccessRequestRecommendationsApi.md#getaccessrequestrecommendationsignoreditems) | **Get** /ai-access-request-recommendations/ignored-items | List of Ignored Access Request Recommendations
*IAIAccessRequestRecommendationsApi* | [**GetAccessRequestRecommendationsRequestedItems**](docs/IAIAccessRequestRecommendationsApi.md#getaccessrequestrecommendationsrequesteditems) | **Get** /ai-access-request-recommendations/requested-items | List of Requested Access Request Recommendations
*IAIAccessRequestRecommendationsApi* | [**GetAccessRequestRecommendationsViewedItems**](docs/IAIAccessRequestRecommendationsApi.md#getaccessrequestrecommendationsvieweditems) | **Get** /ai-access-request-recommendations/viewed-items | List of Viewed Access Request Recommendations
*IAIAccessRequestRecommendationsApi* | [**GetMessageCatalogs**](docs/IAIAccessRequestRecommendationsApi.md#getmessagecatalogs) | **Get** /translation-catalogs/{catalog-id} | Get Message catalogs
*IAICommonAccessApi* | [**CommonAccessBulkUpdateStatus**](docs/IAICommonAccessApi.md#commonaccessbulkupdatestatus) | **Post** /common-access/update-status | Bulk update common access status
*IAICommonAccessApi* | [**CreateCommonAccess**](docs/IAICommonAccessApi.md#createcommonaccess) | **Post** /common-access | Create common access items
*IAICommonAccessApi* | [**GetCommonAccess**](docs/IAICommonAccessApi.md#getcommonaccess) | **Get** /common-access | Get a paginated list of common access
*IAICommonAccessApi* | [**UpdateCommonAccessStatusInBulk**](docs/IAICommonAccessApi.md#updatecommonaccessstatusinbulk) | **Post** /common-access/update-status | Bulk update common access status
*IAIOutliersApi* | [**ExportOutliersZip**](docs/IAIOutliersApi.md#exportoutlierszip) | **Get** /outliers/export | IAI Identity Outliers Export
*IAIOutliersApi* | [**GetLatestOutlierSnapshots**](docs/IAIOutliersApi.md#getlatestoutliersnapshots) | **Get** /outlier-summaries/latest | IAI Identity Outliers Latest Summary
*IAIOutliersApi* | [**GetOutlierSnapshots**](docs/IAIOutliersApi.md#getoutliersnapshots) | **Get** /outlier-summaries | IAI Identity Outliers Summary
*IAIOutliersApi* | [**GetOutliers**](docs/IAIOutliersApi.md#getoutliers) | **Get** /outliers | IAI Get Identity Outliers
*IAIOutliersApi* | [**GetOutliersContributingFeatures**](docs/IAIOutliersApi.md#getoutlierscontributingfeatures) | **Get** /outliers/{outlierId}/contributing-features | IAI Get an Identity Outlier&#39;s Contibuting Features
*IAIOutliersApi* | [**IgnoreOutliers**](docs/IAIOutliersApi.md#ignoreoutliers) | **Post** /outliers/ignore | IAI Identity Outliers Ignore
*IAIOutliersApi* | [**UnIgnoreOutliers**](docs/IAIOutliersApi.md#unignoreoutliers) | **Post** /outliers/unignore | IAI Identity Outliers Unignore
*IAIPeerGroupStrategiesApi* | [**GetOutliers**](docs/IAIPeerGroupStrategiesApi.md#getoutliers) | **Get** /peer-group-strategies/{strategy}/identity-outliers | Identity Outliers List
*IAIOutliersApi* | [**GetIdentityOutlierSnapshots**](docs/IAIOutliersApi.md#getidentityoutliersnapshots) | **Get** /outlier-summaries | IAI Identity Outliers Summary
*IAIOutliersApi* | [**GetIdentityOutliers**](docs/IAIOutliersApi.md#getidentityoutliers) | **Get** /outliers | IAI Get Identity Outliers
*IAIOutliersApi* | [**GetLatestIdentityOutlierSnapshots**](docs/IAIOutliersApi.md#getlatestidentityoutliersnapshots) | **Get** /outlier-summaries/latest | IAI Identity Outliers Latest Summary
*IAIOutliersApi* | [**GetPeerGroupOutliersContributingFeatures**](docs/IAIOutliersApi.md#getpeergroupoutlierscontributingfeatures) | **Get** /outliers/{outlierId}/contributing-features | IAI Get an Identity Outlier&#39;s Contibuting Features
*IAIOutliersApi* | [**IgnoreIdentityOutliers**](docs/IAIOutliersApi.md#ignoreidentityoutliers) | **Post** /outliers/ignore | IAI Identity Outliers Ignore
*IAIOutliersApi* | [**UnIgnoreIdentityOutliers**](docs/IAIOutliersApi.md#unignoreidentityoutliers) | **Post** /outliers/unignore | IAI Identity Outliers Unignore
*IAIPeerGroupStrategiesApi* | [**GetPeerGroupOutliers**](docs/IAIPeerGroupStrategiesApi.md#getpeergroupoutliers) | **Get** /peer-group-strategies/{strategy}/identity-outliers | Identity Outliers List
*IAIRecommendationsApi* | [**GetMessageCatalogs**](docs/IAIRecommendationsApi.md#getmessagecatalogs) | **Get** /translation-catalogs/{catalog-id} | Get Message catalogs
*IAIRecommendationsApi* | [**GetRecommendations**](docs/IAIRecommendationsApi.md#getrecommendations) | **Post** /recommendations/request | Returns a Recommendation Based on Object
*IAIRecommendationsApi* | [**GetRecommendationsConfig**](docs/IAIRecommendationsApi.md#getrecommendationsconfig) | **Get** /recommendations/config | Get certification recommendation config values
*IAIRecommendationsApi* | [**UpdateRecommendationsConfig**](docs/IAIRecommendationsApi.md#updaterecommendationsconfig) | **Put** /recommendations/config | Update certification recommendation config values
*IAIRoleMiningApi* | [**CreatePotentialRoleProvisionRequest**](docs/IAIRoleMiningApi.md#createpotentialroleprovisionrequest) | **Post** /role-mining-sessions/{sessionId}/potential-roles/{potentialRoleId}/provision | Create request to provision a potential role into an actual role.
*IAIRoleMiningApi* | [**CreateRoleMiningSessions**](docs/IAIRoleMiningApi.md#createroleminingsessions) | **Post** /role-mining-sessions | Create a role mining session
*IAIRoleMiningApi* | [**DownloadRoleMiningPotentialRoleZip**](docs/IAIRoleMiningApi.md#downloadroleminingpotentialrolezip) | **Get** /role-mining-sessions/{sessionId}/potential-roles/{potentialRoleId}/export-async/{exportId}/download | Export (download) details for a potential role in a role mining session
*IAIRoleMiningApi* | [**EditEntitlementsPotentialRole**](docs/IAIRoleMiningApi.md#editentitlementspotentialrole) | **Post** /role-mining-sessions/{sessionId}/potential-roles/{potentialRoleId}/edit-entitlements | Edit entitlements for a potential role to exclude some entitlements
*IAIRoleMiningApi* | [**ExportRoleMiningPotentialRole**](docs/IAIRoleMiningApi.md#exportroleminingpotentialrole) | **Get** /role-mining-sessions/{sessionId}/potential-roles/{potentialRoleId}/export | Export (download) details for a potential role in a role mining session
*IAIRoleMiningApi* | [**ExportRoleMiningPotentialRoleAsync**](docs/IAIRoleMiningApi.md#exportroleminingpotentialroleasync) | **Post** /role-mining-sessions/{sessionId}/potential-roles/{potentialRoleId}/export-async | Asynchronously export details for a potential role in a role mining session and upload to S3
*IAIRoleMiningApi* | [**ExportRoleMiningPotentialRoleStatus**](docs/IAIRoleMiningApi.md#exportroleminingpotentialrolestatus) | **Get** /role-mining-sessions/{sessionId}/potential-roles/{potentialRoleId}/export-async/{exportId} | Retrieve status of a potential role export job
@@ -189,22 +193,23 @@ Class | Method | HTTP request | Description
*IAIRoleMiningApi* | [**GetEntitlementsPotentialRole**](docs/IAIRoleMiningApi.md#getentitlementspotentialrole) | **Get** /role-mining-sessions/{sessionId}/potential-roles/{potentialRoleId}/entitlement-popularities | Retrieves entitlements for a potential role in a role mining session
*IAIRoleMiningApi* | [**GetExcludedEntitlementsPotentialRole**](docs/IAIRoleMiningApi.md#getexcludedentitlementspotentialrole) | **Get** /role-mining-sessions/{sessionId}/potential-roles/{potentialRoleId}/excluded-entitlements | Retrieves excluded entitlements for a potential role in a role mining session
*IAIRoleMiningApi* | [**GetIdentitiesPotentialRole**](docs/IAIRoleMiningApi.md#getidentitiespotentialrole) | **Get** /role-mining-sessions/{sessionId}/potential-roles/{potentialRoleId}/identities | Retrieves identities for a potential role in a role mining session
*IAIRoleMiningApi* | [**GetPotentialRole**](docs/IAIRoleMiningApi.md#getpotentialrole) | **Get** /role-mining-sessions/{sessionId}/potential-role-summaries/{potentialRoleId} | Retrieves a specific potential role
*IAIRoleMiningApi* | [**GetPotentialRoleApplications**](docs/IAIRoleMiningApi.md#getpotentialroleapplications) | **Get** /role-mining-sessions/{sessionId}/potential-role-summaries/{potentialRoleId}/applications | Retrieves the applications of a potential role for a role mining session
*IAIRoleMiningApi* | [**GetPotentialRoleSummaries**](docs/IAIRoleMiningApi.md#getpotentialrolesummaries) | **Get** /role-mining-sessions/{sessionId}/potential-role-summaries | Retrieves the potential role summaries for a role mining session
*IAIRoleMiningApi* | [**GetPotentialRoleSummary**](docs/IAIRoleMiningApi.md#getpotentialrolesummary) | **Get** /role-mining-sessions/{sessionId}/potential-role-summaries/{potentialRoleId} | Retrieves a specific potential role for a role mining session
*IAIRoleMiningApi* | [**GetPotentialRoleSummaries**](docs/IAIRoleMiningApi.md#getpotentialrolesummaries) | **Get** /role-mining-sessions/{sessionId}/potential-role-summaries | Retrieves all potential role summaries
*IAIRoleMiningApi* | [**GetRoleMiningSession**](docs/IAIRoleMiningApi.md#getroleminingsession) | **Get** /role-mining-sessions/{sessionId} | Get a role mining session
*IAIRoleMiningApi* | [**GetRoleMiningSessionStatus**](docs/IAIRoleMiningApi.md#getroleminingsessionstatus) | **Get** /role-mining-sessions/{sessionId}/status | Get role mining session status state
*IAIRoleMiningApi* | [**GetRoleMiningSessions**](docs/IAIRoleMiningApi.md#getroleminingsessions) | **Get** /role-mining-sessions | Retrieves all role mining sessions
*IAIRoleMiningApi* | [**PatchPotentialRole**](docs/IAIRoleMiningApi.md#patchpotentialrole) | **Patch** /role-mining-sessions/{sessionId}/potential-role-summaries/{potentialRoleId} | Update a potential role
*IAIRoleMiningApi* | [**PatchRoleMiningSession**](docs/IAIRoleMiningApi.md#patchroleminingsession) | **Patch** /role-mining-sessions/{sessionId} | Patch a role mining session
*IAIRoleMiningApi* | [**RoleMiningSessions**](docs/IAIRoleMiningApi.md#roleminingsessions) | **Post** /role-mining-sessions | Create a role mining session
*IAIRoleMiningApi* | [**UpdateEntitlementsPotentialRole**](docs/IAIRoleMiningApi.md#updateentitlementspotentialrole) | **Post** /role-mining-sessions/{sessionId}/potential-roles/{potentialRoleId}/edit-entitlements | Edit entitlements for a potential role to exclude some entitlements
*IdentitiesApi* | [**SynchronizeAttributesForIdentity**](docs/IdentitiesApi.md#synchronizeattributesforidentity) | **Post** /identities/{identityId}/synchronize-attributes | Attribute synchronization for single identity.
*IdentityHistoryApi* | [**CompareIdentitySnapshots**](docs/IdentityHistoryApi.md#compareidentitysnapshots) | **Get** /historical-identities/{id}/compare | Gets a difference of count for each access item types for the given identity between 2 snapshots
*IdentityHistoryApi* | [**CompareIdentitySnapshotsAccessType**](docs/IdentityHistoryApi.md#compareidentitysnapshotsaccesstype) | **Get** /historical-identities/{id}/compare/{access-type} | Gets a list of differences of specific accessType for the given identity between 2 snapshots
*IdentityHistoryApi* | [**GetEvents**](docs/IdentityHistoryApi.md#getevents) | **Get** /historical-identities/{id}/events | Lists all events for the given identity
*IdentityHistoryApi* | [**GetHistoricalIdentityEvents**](docs/IdentityHistoryApi.md#gethistoricalidentityevents) | **Get** /historical-identities/{id}/events | Lists all events for the given identity
*IdentityHistoryApi* | [**GetIdentity**](docs/IdentityHistoryApi.md#getidentity) | **Get** /historical-identities/{id} | Gets the most recent snapshot of a specific identity
*IdentityHistoryApi* | [**GetIdentitySnapshot**](docs/IdentityHistoryApi.md#getidentitysnapshot) | **Get** /historical-identities/{id}/snapshots/{date} | Gets an identity snapshot at a given date
*IdentityHistoryApi* | [**GetIdentitySnapshotSummary**](docs/IdentityHistoryApi.md#getidentitysnapshotsummary) | **Get** /historical-identities/{id}/snapshot-summary | Gets the summary for the event count for a specific identity
*IdentityHistoryApi* | [**GetStartDate**](docs/IdentityHistoryApi.md#getstartdate) | **Get** /historical-identities/{id}/start-date | Gets the start date of the identity
*IdentityHistoryApi* | [**GetIdentityStartDate**](docs/IdentityHistoryApi.md#getidentitystartdate) | **Get** /historical-identities/{id}/start-date | Gets the start date of the identity
*IdentityHistoryApi* | [**ListIdentities**](docs/IdentityHistoryApi.md#listidentities) | **Get** /historical-identities | Lists all the identities
*IdentityHistoryApi* | [**ListIdentityAccessItems**](docs/IdentityHistoryApi.md#listidentityaccessitems) | **Get** /historical-identities/{id}/access-items | Gets a list of access items for the identity filtered by item type
*IdentityHistoryApi* | [**ListIdentitySnapshotAccessItems**](docs/IdentityHistoryApi.md#listidentitysnapshotaccessitems) | **Get** /historical-identities/{id}/snapshots/{date}/access-items | Gets the list of identity access items at a given date filterd by item type
@@ -225,47 +230,47 @@ Class | Method | HTTP request | Description
*MFAConfigurationApi* | [**GetMFAConfig**](docs/MFAConfigurationApi.md#getmfaconfig) | **Get** /mfa/{method}/config | Get configuration of a MFA method
*MFAConfigurationApi* | [**SetMFAConfig**](docs/MFAConfigurationApi.md#setmfaconfig) | **Put** /mfa/{method}/config | Set configuration of a MFA method
*MFAConfigurationApi* | [**TestMFAConfig**](docs/MFAConfigurationApi.md#testmfaconfig) | **Get** /mfa/{method}/test | Test configuration of a MFA method
*ManagedClientsApi* | [**GetClientStatus**](docs/ManagedClientsApi.md#getclientstatus) | **Get** /managed-clients/{id}/status | Get a specified Managed Client Status.
*ManagedClientsApi* | [**UpdateStatus**](docs/ManagedClientsApi.md#updatestatus) | **Post** /managed-clients/{id}/status | Handle a status request from a client
*ManagedClientsApi* | [**GetManagedClientStatus**](docs/ManagedClientsApi.md#getmanagedclientstatus) | **Get** /managed-clients/{id}/status | Get a specified Managed Client Status.
*ManagedClientsApi* | [**UpdateManagedClientStatus**](docs/ManagedClientsApi.md#updatemanagedclientstatus) | **Post** /managed-clients/{id}/status | Handle a status request from a client
*ManagedClustersApi* | [**GetClientLogConfiguration**](docs/ManagedClustersApi.md#getclientlogconfiguration) | **Get** /managed-clusters/{id}/log-config | get ManagedCluster Log Configuration for a specified cluster
*ManagedClustersApi* | [**GetManagedCluster**](docs/ManagedClustersApi.md#getmanagedcluster) | **Get** /managed-clusters/{id} | Get a specified ManagedCluster.
*ManagedClustersApi* | [**GetManagedClusters**](docs/ManagedClustersApi.md#getmanagedclusters) | **Get** /managed-clusters | Retrieve all Managed Clusters.
*ManagedClustersApi* | [**UpdateClientLogConfiguration**](docs/ManagedClustersApi.md#updateclientlogconfiguration) | **Put** /managed-clusters/{id}/log-config | Update log configuration for a specified cluster.
*NonEmployeeLifecycleManagementApi* | [**CreateSchemaAttribute**](docs/NonEmployeeLifecycleManagementApi.md#createschemaattribute) | **Post** /non-employee-sources/{sourceId}/schema-attributes | Create a new Schema Attribute for Non-Employee Source
*NonEmployeeLifecycleManagementApi* | [**DeleteSchemaAttribute**](docs/NonEmployeeLifecycleManagementApi.md#deleteschemaattribute) | **Delete** /non-employee-sources/{sourceId}/schema-attributes/{attributeId} | Delete a Schema Attribute for Non-Employee Source
*NonEmployeeLifecycleManagementApi* | [**DeleteSchemaAttributes**](docs/NonEmployeeLifecycleManagementApi.md#deleteschemaattributes) | **Delete** /non-employee-sources/{sourceId}/schema-attributes | Delete all custom schema attributes for Non-Employee Source
*NonEmployeeLifecycleManagementApi* | [**GetSchemaAttribute**](docs/NonEmployeeLifecycleManagementApi.md#getschemaattribute) | **Get** /non-employee-sources/{sourceId}/schema-attributes/{attributeId} | Get Schema Attribute Non-Employee Source
*NonEmployeeLifecycleManagementApi* | [**GetSchemaAttributes**](docs/NonEmployeeLifecycleManagementApi.md#getschemaattributes) | **Get** /non-employee-sources/{sourceId}/schema-attributes | List Schema Attributes Non-Employee Source
*NonEmployeeLifecycleManagementApi* | [**NonEmployeeApprovalGet**](docs/NonEmployeeLifecycleManagementApi.md#nonemployeeapprovalget) | **Get** /non-employee-approvals/{id} | Get a non-employee approval item detail
*NonEmployeeLifecycleManagementApi* | [**NonEmployeeApprovalList**](docs/NonEmployeeLifecycleManagementApi.md#nonemployeeapprovallist) | **Get** /non-employee-approvals | Get List of Non-Employee Approval Requests
*NonEmployeeLifecycleManagementApi* | [**NonEmployeeApprovalSummary**](docs/NonEmployeeLifecycleManagementApi.md#nonemployeeapprovalsummary) | **Get** /non-employee-approvals/summary/{requested-for} | Get Summary of Non-Employee Approval Requests
*NonEmployeeLifecycleManagementApi* | [**NonEmployeeApproveRequest**](docs/NonEmployeeLifecycleManagementApi.md#nonemployeeapproverequest) | **Post** /non-employee-approvals/{id}/approve | Approve a Non-Employee Request
*NonEmployeeLifecycleManagementApi* | [**NonEmployeeBulkUploadStatus**](docs/NonEmployeeLifecycleManagementApi.md#nonemployeebulkuploadstatus) | **Get** /non-employee-sources/{id}/non-employee-bulk-upload/status | Obtain the status of bulk upload on the source
*NonEmployeeLifecycleManagementApi* | [**NonEmployeeExportSourceSchemaTemplate**](docs/NonEmployeeLifecycleManagementApi.md#nonemployeeexportsourceschematemplate) | **Get** /non-employee-sources/{id}/schema-attributes-template/download | Exports Source Schema Template
*NonEmployeeLifecycleManagementApi* | [**NonEmployeeRecordBulkDelete**](docs/NonEmployeeLifecycleManagementApi.md#nonemployeerecordbulkdelete) | **Post** /non-employee-records/bulk-delete | Delete Multiple Non-Employee Records
*NonEmployeeLifecycleManagementApi* | [**NonEmployeeRecordCreation**](docs/NonEmployeeLifecycleManagementApi.md#nonemployeerecordcreation) | **Post** /non-employee-records | Create Non-Employee Record
*NonEmployeeLifecycleManagementApi* | [**NonEmployeeRecordDelete**](docs/NonEmployeeLifecycleManagementApi.md#nonemployeerecorddelete) | **Delete** /non-employee-records/{id} | Delete Non-Employee Record
*NonEmployeeLifecycleManagementApi* | [**NonEmployeeRecordGet**](docs/NonEmployeeLifecycleManagementApi.md#nonemployeerecordget) | **Get** /non-employee-records/{id} | Get a Non-Employee Record
*NonEmployeeLifecycleManagementApi* | [**NonEmployeeRecordList**](docs/NonEmployeeLifecycleManagementApi.md#nonemployeerecordlist) | **Get** /non-employee-records | List Non-Employee Records
*NonEmployeeLifecycleManagementApi* | [**NonEmployeeRecordPatch**](docs/NonEmployeeLifecycleManagementApi.md#nonemployeerecordpatch) | **Patch** /non-employee-records/{id} | Patch Non-Employee Record
*NonEmployeeLifecycleManagementApi* | [**NonEmployeeRecordUpdate**](docs/NonEmployeeLifecycleManagementApi.md#nonemployeerecordupdate) | **Put** /non-employee-records/{id} | Update Non-Employee Record
*NonEmployeeLifecycleManagementApi* | [**NonEmployeeRecordsBulkUpload**](docs/NonEmployeeLifecycleManagementApi.md#nonemployeerecordsbulkupload) | **Post** /non-employee-sources/{id}/non-employee-bulk-upload | Imports, or Updates, Non-Employee Records
*NonEmployeeLifecycleManagementApi* | [**NonEmployeeRecordsExport**](docs/NonEmployeeLifecycleManagementApi.md#nonemployeerecordsexport) | **Get** /non-employee-sources/{id}/non-employees/download | Exports Non-Employee Records to CSV
*NonEmployeeLifecycleManagementApi* | [**NonEmployeeRejectRequest**](docs/NonEmployeeLifecycleManagementApi.md#nonemployeerejectrequest) | **Post** /non-employee-approvals/{id}/reject | Reject a Non-Employee Request
*NonEmployeeLifecycleManagementApi* | [**NonEmployeeRequestCreation**](docs/NonEmployeeLifecycleManagementApi.md#nonemployeerequestcreation) | **Post** /non-employee-requests | Create Non-Employee Request
*NonEmployeeLifecycleManagementApi* | [**NonEmployeeRequestDeletion**](docs/NonEmployeeLifecycleManagementApi.md#nonemployeerequestdeletion) | **Delete** /non-employee-requests/{id} | Delete Non-Employee Request
*NonEmployeeLifecycleManagementApi* | [**NonEmployeeRequestGet**](docs/NonEmployeeLifecycleManagementApi.md#nonemployeerequestget) | **Get** /non-employee-requests/{id} | Get a Non-Employee Request
*NonEmployeeLifecycleManagementApi* | [**NonEmployeeRequestList**](docs/NonEmployeeLifecycleManagementApi.md#nonemployeerequestlist) | **Get** /non-employee-requests | List Non-Employee Requests
*NonEmployeeLifecycleManagementApi* | [**NonEmployeeRequestSummaryGet**](docs/NonEmployeeLifecycleManagementApi.md#nonemployeerequestsummaryget) | **Get** /non-employee-requests/summary/{requested-for} | Get Summary of Non-Employee Requests
*NonEmployeeLifecycleManagementApi* | [**NonEmployeeSourceDelete**](docs/NonEmployeeLifecycleManagementApi.md#nonemployeesourcedelete) | **Delete** /non-employee-sources/{sourceId} | Delete Non-Employee Source
*NonEmployeeLifecycleManagementApi* | [**NonEmployeeSourceGet**](docs/NonEmployeeLifecycleManagementApi.md#nonemployeesourceget) | **Get** /non-employee-sources/{sourceId} | Get a Non-Employee Source
*NonEmployeeLifecycleManagementApi* | [**NonEmployeeSourcePatch**](docs/NonEmployeeLifecycleManagementApi.md#nonemployeesourcepatch) | **Patch** /non-employee-sources/{sourceId} | Patch a Non-Employee Source
*NonEmployeeLifecycleManagementApi* | [**NonEmployeeSourcesCreation**](docs/NonEmployeeLifecycleManagementApi.md#nonemployeesourcescreation) | **Post** /non-employee-sources | Create Non-Employee Source
*NonEmployeeLifecycleManagementApi* | [**NonEmployeeSourcesList**](docs/NonEmployeeLifecycleManagementApi.md#nonemployeesourceslist) | **Get** /non-employee-sources | List Non-Employee Sources
*NonEmployeeLifecycleManagementApi* | [**PatchSchemaAttribute**](docs/NonEmployeeLifecycleManagementApi.md#patchschemaattribute) | **Patch** /non-employee-sources/{sourceId}/schema-attributes/{attributeId} | Patch a Schema Attribute for Non-Employee Source
*NotificationsApi* | [**BulkDeleteNotificationTemplates**](docs/NotificationsApi.md#bulkdeletenotificationtemplates) | **Post** /notification-templates/bulk-delete | Bulk Delete Notification Templates
*NonEmployeeLifecycleManagementApi* | [**ApproveNonEmployeeRequest**](docs/NonEmployeeLifecycleManagementApi.md#approvenonemployeerequest) | **Post** /non-employee-approvals/{id}/approve | Approve a Non-Employee Request
*NonEmployeeLifecycleManagementApi* | [**CreateNonEmployeeRecord**](docs/NonEmployeeLifecycleManagementApi.md#createnonemployeerecord) | **Post** /non-employee-records | Create Non-Employee Record
*NonEmployeeLifecycleManagementApi* | [**CreateNonEmployeeRequest**](docs/NonEmployeeLifecycleManagementApi.md#createnonemployeerequest) | **Post** /non-employee-requests | Create Non-Employee Request
*NonEmployeeLifecycleManagementApi* | [**CreateNonEmployeeSource**](docs/NonEmployeeLifecycleManagementApi.md#createnonemployeesource) | **Post** /non-employee-sources | Create Non-Employee Source
*NonEmployeeLifecycleManagementApi* | [**CreateNonEmployeeSourceSchemaAttributes**](docs/NonEmployeeLifecycleManagementApi.md#createnonemployeesourceschemaattributes) | **Post** /non-employee-sources/{sourceId}/schema-attributes | Create a new Schema Attribute for Non-Employee Source
*NonEmployeeLifecycleManagementApi* | [**DeleteNonEmployeeRecord**](docs/NonEmployeeLifecycleManagementApi.md#deletenonemployeerecord) | **Delete** /non-employee-records/{id} | Delete Non-Employee Record
*NonEmployeeLifecycleManagementApi* | [**DeleteNonEmployeeRecordInBulk**](docs/NonEmployeeLifecycleManagementApi.md#deletenonemployeerecordinbulk) | **Post** /non-employee-records/bulk-delete | Delete Multiple Non-Employee Records
*NonEmployeeLifecycleManagementApi* | [**DeleteNonEmployeeRequest**](docs/NonEmployeeLifecycleManagementApi.md#deletenonemployeerequest) | **Delete** /non-employee-requests/{id} | Delete Non-Employee Request
*NonEmployeeLifecycleManagementApi* | [**DeleteNonEmployeeSchemaAttribute**](docs/NonEmployeeLifecycleManagementApi.md#deletenonemployeeschemaattribute) | **Delete** /non-employee-sources/{sourceId}/schema-attributes/{attributeId} | Delete a Schema Attribute for Non-Employee Source
*NonEmployeeLifecycleManagementApi* | [**DeleteNonEmployeeSource**](docs/NonEmployeeLifecycleManagementApi.md#deletenonemployeesource) | **Delete** /non-employee-sources/{sourceId} | Delete Non-Employee Source
*NonEmployeeLifecycleManagementApi* | [**DeleteNonEmployeeSourceSchemaAttributes**](docs/NonEmployeeLifecycleManagementApi.md#deletenonemployeesourceschemaattributes) | **Delete** /non-employee-sources/{sourceId}/schema-attributes | Delete all custom schema attributes for Non-Employee Source
*NonEmployeeLifecycleManagementApi* | [**ExportNonEmployeeRecords**](docs/NonEmployeeLifecycleManagementApi.md#exportnonemployeerecords) | **Get** /non-employee-sources/{id}/non-employees/download | Exports Non-Employee Records to CSV
*NonEmployeeLifecycleManagementApi* | [**ExportNonEmployeeSourceSchemaTemplate**](docs/NonEmployeeLifecycleManagementApi.md#exportnonemployeesourceschematemplate) | **Get** /non-employee-sources/{id}/schema-attributes-template/download | Exports Source Schema Template
*NonEmployeeLifecycleManagementApi* | [**GetNonEmployeeApproval**](docs/NonEmployeeLifecycleManagementApi.md#getnonemployeeapproval) | **Get** /non-employee-approvals/{id} | Get a non-employee approval item detail
*NonEmployeeLifecycleManagementApi* | [**GetNonEmployeeApprovalSummary**](docs/NonEmployeeLifecycleManagementApi.md#getnonemployeeapprovalsummary) | **Get** /non-employee-approvals/summary/{requested-for} | Get Summary of Non-Employee Approval Requests
*NonEmployeeLifecycleManagementApi* | [**GetNonEmployeeBulkUploadStatus**](docs/NonEmployeeLifecycleManagementApi.md#getnonemployeebulkuploadstatus) | **Get** /non-employee-sources/{id}/non-employee-bulk-upload/status | Obtain the status of bulk upload on the source
*NonEmployeeLifecycleManagementApi* | [**GetNonEmployeeRecord**](docs/NonEmployeeLifecycleManagementApi.md#getnonemployeerecord) | **Get** /non-employee-records/{id} | Get a Non-Employee Record
*NonEmployeeLifecycleManagementApi* | [**GetNonEmployeeRequest**](docs/NonEmployeeLifecycleManagementApi.md#getnonemployeerequest) | **Get** /non-employee-requests/{id} | Get a Non-Employee Request
*NonEmployeeLifecycleManagementApi* | [**GetNonEmployeeRequestSummary**](docs/NonEmployeeLifecycleManagementApi.md#getnonemployeerequestsummary) | **Get** /non-employee-requests/summary/{requested-for} | Get Summary of Non-Employee Requests
*NonEmployeeLifecycleManagementApi* | [**GetNonEmployeeSchemaAttribute**](docs/NonEmployeeLifecycleManagementApi.md#getnonemployeeschemaattribute) | **Get** /non-employee-sources/{sourceId}/schema-attributes/{attributeId} | Get Schema Attribute Non-Employee Source
*NonEmployeeLifecycleManagementApi* | [**GetNonEmployeeSource**](docs/NonEmployeeLifecycleManagementApi.md#getnonemployeesource) | **Get** /non-employee-sources/{sourceId} | Get a Non-Employee Source
*NonEmployeeLifecycleManagementApi* | [**GetNonEmployeeSourceSchemaAttributes**](docs/NonEmployeeLifecycleManagementApi.md#getnonemployeesourceschemaattributes) | **Get** /non-employee-sources/{sourceId}/schema-attributes | List Schema Attributes Non-Employee Source
*NonEmployeeLifecycleManagementApi* | [**ListNonEmployeeApproval**](docs/NonEmployeeLifecycleManagementApi.md#listnonemployeeapproval) | **Get** /non-employee-approvals | Get List of Non-Employee Approval Requests
*NonEmployeeLifecycleManagementApi* | [**ListNonEmployeeRecords**](docs/NonEmployeeLifecycleManagementApi.md#listnonemployeerecords) | **Get** /non-employee-records | List Non-Employee Records
*NonEmployeeLifecycleManagementApi* | [**ListNonEmployeeRequests**](docs/NonEmployeeLifecycleManagementApi.md#listnonemployeerequests) | **Get** /non-employee-requests | List Non-Employee Requests
*NonEmployeeLifecycleManagementApi* | [**ListNonEmployeeSources**](docs/NonEmployeeLifecycleManagementApi.md#listnonemployeesources) | **Get** /non-employee-sources | List Non-Employee Sources
*NonEmployeeLifecycleManagementApi* | [**PatchNonEmployeeRecord**](docs/NonEmployeeLifecycleManagementApi.md#patchnonemployeerecord) | **Patch** /non-employee-records/{id} | Patch Non-Employee Record
*NonEmployeeLifecycleManagementApi* | [**PatchNonEmployeeSchemaAttribute**](docs/NonEmployeeLifecycleManagementApi.md#patchnonemployeeschemaattribute) | **Patch** /non-employee-sources/{sourceId}/schema-attributes/{attributeId} | Patch a Schema Attribute for Non-Employee Source
*NonEmployeeLifecycleManagementApi* | [**PatchNonEmployeeSource**](docs/NonEmployeeLifecycleManagementApi.md#patchnonemployeesource) | **Patch** /non-employee-sources/{sourceId} | Patch a Non-Employee Source
*NonEmployeeLifecycleManagementApi* | [**RejectNonEmployeeRequest**](docs/NonEmployeeLifecycleManagementApi.md#rejectnonemployeerequest) | **Post** /non-employee-approvals/{id}/reject | Reject a Non-Employee Request
*NonEmployeeLifecycleManagementApi* | [**UpdateNonEmployeeRecord**](docs/NonEmployeeLifecycleManagementApi.md#updatenonemployeerecord) | **Put** /non-employee-records/{id} | Update Non-Employee Record
*NonEmployeeLifecycleManagementApi* | [**UploadNonEmployeeRecordsInBulk**](docs/NonEmployeeLifecycleManagementApi.md#uploadnonemployeerecordsinbulk) | **Post** /non-employee-sources/{id}/non-employee-bulk-upload | Imports, or Updates, Non-Employee Records
*NotificationsApi* | [**CreateNotificationTemplate**](docs/NotificationsApi.md#createnotificationtemplate) | **Post** /notification-templates | Create Notification Template
*NotificationsApi* | [**CreateVerifiedFromAddress**](docs/NotificationsApi.md#createverifiedfromaddress) | **Post** /verified-from-addresses | Create Verified From Address
*NotificationsApi* | [**DeleteNotificationTemplatesInBulk**](docs/NotificationsApi.md#deletenotificationtemplatesinbulk) | **Post** /notification-templates/bulk-delete | Bulk Delete Notification Templates
*NotificationsApi* | [**DeleteVerifiedFromAddress**](docs/NotificationsApi.md#deleteverifiedfromaddress) | **Delete** /verified-from-addresses/{id} | Delete Verified From Address
*NotificationsApi* | [**GetDkimAttributes**](docs/NotificationsApi.md#getdkimattributes) | **Get** /dkim-attributes/{identities} | Get DKIM Attributes
*NotificationsApi* | [**GetNotificationPreference**](docs/NotificationsApi.md#getnotificationpreference) | **Get** /notification-preferences/{key} | Get Notification Preferences for tenant.
@@ -292,9 +297,9 @@ Class | Method | HTTP request | Description
*PasswordDictionaryApi* | [**GetPasswordDictionaryFileStatus**](docs/PasswordDictionaryApi.md#getpassworddictionaryfilestatus) | **Head** /password-dictionary | Get Password Dictionary Status
*PasswordDictionaryApi* | [**UpdatePasswordDictionary**](docs/PasswordDictionaryApi.md#updatepassworddictionary) | **Put** /password-dictionary | Update Password Dictionary
*PasswordManagementApi* | [**GenerateDigitToken**](docs/PasswordManagementApi.md#generatedigittoken) | **Post** /generate-password-reset-token/digit | Generate a digit token
*PasswordManagementApi* | [**GetPasswordChangeStatus**](docs/PasswordManagementApi.md#getpasswordchangestatus) | **Get** /password-change-status/{id} | Get Password Change Request Status
*PasswordManagementApi* | [**GetIdentityPasswordChangeStatus**](docs/PasswordManagementApi.md#getidentitypasswordchangestatus) | **Get** /password-change-status/{id} | Get Password Change Request Status
*PasswordManagementApi* | [**QueryPasswordInfo**](docs/PasswordManagementApi.md#querypasswordinfo) | **Post** /query-password-info | Query Password Info
*PasswordManagementApi* | [**SetPassword**](docs/PasswordManagementApi.md#setpassword) | **Post** /set-password | Set Identity&#39;s Password
*PasswordManagementApi* | [**SetIdentityPassword**](docs/PasswordManagementApi.md#setidentitypassword) | **Post** /set-password | Set Identity&#39;s Password
*PasswordSyncGroupsApi* | [**CreatePasswordSyncGroup**](docs/PasswordSyncGroupsApi.md#createpasswordsyncgroup) | **Post** /password-sync-groups | Create Password Sync Group
*PasswordSyncGroupsApi* | [**DeletePasswordSyncGroup**](docs/PasswordSyncGroupsApi.md#deletepasswordsyncgroup) | **Delete** /password-sync-groups/{id} | Delete Password Sync Group by ID
*PasswordSyncGroupsApi* | [**GetPasswordSyncGroup**](docs/PasswordSyncGroupsApi.md#getpasswordsyncgroup) | **Get** /password-sync-groups/{id} | Get Password Sync Group by ID
@@ -307,6 +312,7 @@ Class | Method | HTTP request | Description
*PublicIdentitiesConfigApi* | [**GetPublicIdentityConfig**](docs/PublicIdentitiesConfigApi.md#getpublicidentityconfig) | **Get** /public-identities-config | Get Public Identity Config
*PublicIdentitiesConfigApi* | [**UpdatePublicIdentityConfig**](docs/PublicIdentitiesConfigApi.md#updatepublicidentityconfig) | **Put** /public-identities-config | Update Public Identity Config
*RequestableObjectsApi* | [**ListRequestableObjects**](docs/RequestableObjectsApi.md#listrequestableobjects) | **Get** /requestable-objects | Requestable Objects List
*RoleInsightsApi* | [**CreateRoleInsightRequests**](docs/RoleInsightsApi.md#createroleinsightrequests) | **Post** /role-insights/requests | A request to generate insights for roles
*RoleInsightsApi* | [**DownloadRoleInsightsEntitlementsChanges**](docs/RoleInsightsApi.md#downloadroleinsightsentitlementschanges) | **Get** /role-insights/{insightId}/entitlement-changes/download | Download entitlement insights for a role
*RoleInsightsApi* | [**GetEntitlementChangesIdentities**](docs/RoleInsightsApi.md#getentitlementchangesidentities) | **Get** /role-insights/{insightId}/entitlement-changes/{entitlementId}/identities | Get identities for a suggested entitlement (for a role)
*RoleInsightsApi* | [**GetRoleInsight**](docs/RoleInsightsApi.md#getroleinsight) | **Get** /role-insights/{insightId} | Get a single role insight
@@ -315,7 +321,6 @@ Class | Method | HTTP request | Description
*RoleInsightsApi* | [**GetRoleInsightsEntitlementsChanges**](docs/RoleInsightsApi.md#getroleinsightsentitlementschanges) | **Get** /role-insights/{insightId}/entitlement-changes | Get entitlement insights for a role
*RoleInsightsApi* | [**GetRoleInsightsRequests**](docs/RoleInsightsApi.md#getroleinsightsrequests) | **Get** /role-insights/requests/{id} | Returns the metadata for a request in order to generate insights for roles.
*RoleInsightsApi* | [**GetRoleInsightsSummary**](docs/RoleInsightsApi.md#getroleinsightssummary) | **Get** /role-insights/summary | Get role insights summary information
*RoleInsightsApi* | [**RoleInsightsRequests**](docs/RoleInsightsApi.md#roleinsightsrequests) | **Post** /role-insights/requests | A request to generate insights for roles
*RolesApi* | [**CreateRole**](docs/RolesApi.md#createrole) | **Post** /roles | Create a Role
*RolesApi* | [**DeleteRole**](docs/RolesApi.md#deleterole) | **Delete** /roles/{id} | Delete a Role
*RolesApi* | [**GetRole**](docs/RolesApi.md#getrole) | **Get** /roles/{id} | Get a Role
@@ -323,37 +328,37 @@ Class | Method | HTTP request | Description
*RolesApi* | [**ListRoles**](docs/RolesApi.md#listroles) | **Get** /roles | List Roles
*RolesApi* | [**PatchRole**](docs/RolesApi.md#patchrole) | **Patch** /roles/{id} | Patch a specified Role
*SODPolicyApi* | [**CreateSodPolicy**](docs/SODPolicyApi.md#createsodpolicy) | **Post** /sod-policies | Create SOD Policy
*SODPolicyApi* | [**DeleteSodPolicyById**](docs/SODPolicyApi.md#deletesodpolicybyid) | **Delete** /sod-policies/{id} | Delete SOD Policy by ID
*SODPolicyApi* | [**DeleteSodPolicyScheduleById**](docs/SODPolicyApi.md#deletesodpolicyschedulebyid) | **Delete** /sod-policies/{id}/schedule | Delete SOD Policy Schedule
*SODPolicyApi* | [**DeleteSodPolicy**](docs/SODPolicyApi.md#deletesodpolicy) | **Delete** /sod-policies/{id} | Delete SOD Policy by ID
*SODPolicyApi* | [**DeleteSodPolicySchedule**](docs/SODPolicyApi.md#deletesodpolicyschedule) | **Delete** /sod-policies/{id}/schedule | Delete SOD Policy Schedule
*SODPolicyApi* | [**DownloadCustomViolationReport**](docs/SODPolicyApi.md#downloadcustomviolationreport) | **Get** /sod-violation-report/{reportResultId}/download/{fileName} | Download custom violation report
*SODPolicyApi* | [**DownloadDefaultViolationReport**](docs/SODPolicyApi.md#downloaddefaultviolationreport) | **Get** /sod-violation-report/{reportResultId}/download | Download violation report
*SODPolicyApi* | [**GetSodAllReportRunStatus**](docs/SODPolicyApi.md#getsodallreportrunstatus) | **Get** /sod-violation-report | Get multi-report run task status
*SODPolicyApi* | [**GetSodPolicyById**](docs/SODPolicyApi.md#getsodpolicybyid) | **Get** /sod-policies/{id} | Get SOD Policy By ID
*SODPolicyApi* | [**GetSodPolicyScheduleById**](docs/SODPolicyApi.md#getsodpolicyschedulebyid) | **Get** /sod-policies/{id}/schedule | Get SOD Policy Schedule
*SODPolicyApi* | [**GetSodPolicy**](docs/SODPolicyApi.md#getsodpolicy) | **Get** /sod-policies/{id} | Get SOD Policy By ID
*SODPolicyApi* | [**GetSodPolicySchedule**](docs/SODPolicyApi.md#getsodpolicyschedule) | **Get** /sod-policies/{id}/schedule | Get SOD Policy Schedule
*SODPolicyApi* | [**GetSodViolationReportRunStatus**](docs/SODPolicyApi.md#getsodviolationreportrunstatus) | **Get** /sod-violation-report-status/{reportResultId} | Get violation report run status
*SODPolicyApi* | [**GetSodViolationReportStatus**](docs/SODPolicyApi.md#getsodviolationreportstatus) | **Get** /sod-policies/{id}/violation-report | Get SOD violation report status
*SODPolicyApi* | [**ListSodPolicies**](docs/SODPolicyApi.md#listsodpolicies) | **Get** /sod-policies | List SOD Policies
*SODPolicyApi* | [**PatchSodPolicy**](docs/SODPolicyApi.md#patchsodpolicy) | **Patch** /sod-policies/{id} | Update a SOD Policy
*SODPolicyApi* | [**RunAllPoliciesForOrg**](docs/SODPolicyApi.md#runallpoliciesfororg) | **Post** /sod-violation-report/run | Runs all policies for Org.
*SODPolicyApi* | [**RunSodAllPoliciesForOrg**](docs/SODPolicyApi.md#runsodallpoliciesfororg) | **Post** /sod-violation-report/run | Runs all policies for Org.
*SODPolicyApi* | [**RunSodPolicy**](docs/SODPolicyApi.md#runsodpolicy) | **Post** /sod-policies/{id}/violation-report/run | Runs SOD Policy Violation Report
*SODPolicyApi* | [**UpdatePolicyById**](docs/SODPolicyApi.md#updatepolicybyid) | **Put** /sod-policies/{id} | Update SOD Policy By ID
*SODPolicyApi* | [**UpdatePolicyScheduleById**](docs/SODPolicyApi.md#updatepolicyschedulebyid) | **Put** /sod-policies/{id}/schedule | Update SOD Policy schedule
*SODViolationsApi* | [**PredictViolations**](docs/SODViolationsApi.md#predictviolations) | **Post** /sod-violations/predict | Predict SOD violations for the given identity if they were granted the given access.
*SPConfigApi* | [**SpConfigExport**](docs/SPConfigApi.md#spconfigexport) | **Post** /sp-config/export | Initiates Configuration Objects Export Job.
*SPConfigApi* | [**SpConfigExportDownload**](docs/SPConfigApi.md#spconfigexportdownload) | **Get** /sp-config/export/{id}/download | Download Result of Export Job
*SPConfigApi* | [**SpConfigExportJobStatus**](docs/SPConfigApi.md#spconfigexportjobstatus) | **Get** /sp-config/export/{id} | Get Status of Export Job
*SPConfigApi* | [**SpConfigImport**](docs/SPConfigApi.md#spconfigimport) | **Post** /sp-config/import | Initiates Configuration Objects Import Job.
*SPConfigApi* | [**SpConfigImportDownload**](docs/SPConfigApi.md#spconfigimportdownload) | **Get** /sp-config/import/{id}/download | Download Result of Import Job
*SPConfigApi* | [**SpConfigImportJobStatus**](docs/SPConfigApi.md#spconfigimportjobstatus) | **Get** /sp-config/import/{id} | Get Status of Import Job
*SPConfigApi* | [**SpConfigObjects**](docs/SPConfigApi.md#spconfigobjects) | **Get** /sp-config/config-objects | Get Config Object details
*SODPolicyApi* | [**UpdatePolicySchedule**](docs/SODPolicyApi.md#updatepolicyschedule) | **Put** /sod-policies/{id}/schedule | Update SOD Policy schedule
*SODPolicyApi* | [**UpdateSodPolicy**](docs/SODPolicyApi.md#updatesodpolicy) | **Put** /sod-policies/{id} | Update SOD Policy By ID
*SODViolationsApi* | [**PredictSodViolations**](docs/SODViolationsApi.md#predictsodviolations) | **Post** /sod-violations/predict | Predict SOD violations for the given identity if they were granted the given access.
*SPConfigApi* | [**ExportSpConfig**](docs/SPConfigApi.md#exportspconfig) | **Post** /sp-config/export | Initiates Configuration Objects Export Job.
*SPConfigApi* | [**ExportSpConfigDownload**](docs/SPConfigApi.md#exportspconfigdownload) | **Get** /sp-config/export/{id}/download | Download Result of Export Job
*SPConfigApi* | [**ExportSpConfigJobStatus**](docs/SPConfigApi.md#exportspconfigjobstatus) | **Get** /sp-config/export/{id} | Get Status of Export Job
*SPConfigApi* | [**ImportSpConfig**](docs/SPConfigApi.md#importspconfig) | **Post** /sp-config/import | Initiates Configuration Objects Import Job.
*SPConfigApi* | [**ImportSpConfigDownload**](docs/SPConfigApi.md#importspconfigdownload) | **Get** /sp-config/import/{id}/download | Download Result of Import Job
*SPConfigApi* | [**ImportSpConfigJobStatus**](docs/SPConfigApi.md#importspconfigjobstatus) | **Get** /sp-config/import/{id} | Get Status of Import Job
*SPConfigApi* | [**ListSpConfigObjects**](docs/SPConfigApi.md#listspconfigobjects) | **Get** /sp-config/config-objects | Get Config Object details
*SearchAttributeConfigurationApi* | [**CreateSearchAttributeConfig**](docs/SearchAttributeConfigurationApi.md#createsearchattributeconfig) | **Post** /accounts/search-attribute-config | Configure/create extended search attributes in IdentityNow.
*SearchAttributeConfigurationApi* | [**DeleteSearchAttributeConfig**](docs/SearchAttributeConfigurationApi.md#deletesearchattributeconfig) | **Delete** /accounts/search-attribute-config/{name} | Delete an extended search attribute in IdentityNow.
*SearchAttributeConfigurationApi* | [**GetSearchAttributeConfig**](docs/SearchAttributeConfigurationApi.md#getsearchattributeconfig) | **Get** /accounts/search-attribute-config | Retrieve a list of extended search attributes in IdentityNow.
*SearchAttributeConfigurationApi* | [**GetSingleSearchAttributeConfig**](docs/SearchAttributeConfigurationApi.md#getsinglesearchattributeconfig) | **Get** /accounts/search-attribute-config/{name} | Get the details of a specific extended search attribute in IdentityNow.
*SearchAttributeConfigurationApi* | [**PatchSearchAttributeConfig**](docs/SearchAttributeConfigurationApi.md#patchsearchattributeconfig) | **Patch** /accounts/search-attribute-config/{name} | Update the details of a specific extended search attribute in IdentityNow.
*SegmentsApi* | [**CreateSegment**](docs/SegmentsApi.md#createsegment) | **Post** /segments | Create Segment
*SegmentsApi* | [**DeleteSegmentById**](docs/SegmentsApi.md#deletesegmentbyid) | **Delete** /segments/{id} | Delete Segment by ID
*SegmentsApi* | [**GetSegmentById**](docs/SegmentsApi.md#getsegmentbyid) | **Get** /segments/{id} | Get a Segment by its ID
*SegmentsApi* | [**DeleteSegment**](docs/SegmentsApi.md#deletesegment) | **Delete** /segments/{id} | Delete Segment by ID
*SegmentsApi* | [**GetSegment**](docs/SegmentsApi.md#getsegment) | **Get** /segments/{id} | Get a Segment by its ID
*SegmentsApi* | [**ListSegments**](docs/SegmentsApi.md#listsegments) | **Get** /segments | List Segments
*SegmentsApi* | [**PatchSegment**](docs/SegmentsApi.md#patchsegment) | **Patch** /segments/{id} | Update a Segment
*ServiceDeskIntegrationApi* | [**CreateServiceDeskIntegration**](docs/ServiceDeskIntegrationApi.md#createservicedeskintegration) | **Post** /service-desk-integrations | Create a new Service Desk integration
@@ -364,75 +369,75 @@ Class | Method | HTTP request | Description
*ServiceDeskIntegrationApi* | [**GetServiceDeskIntegrationTypes**](docs/ServiceDeskIntegrationApi.md#getservicedeskintegrationtypes) | **Get** /service-desk-integrations/types | Service Desk Integration Types List.
*ServiceDeskIntegrationApi* | [**GetStatusCheckDetails**](docs/ServiceDeskIntegrationApi.md#getstatuscheckdetails) | **Get** /service-desk-integrations/status-check-configuration | Get the time check configuration of queued SDIM tickets
*ServiceDeskIntegrationApi* | [**PatchServiceDeskIntegration**](docs/ServiceDeskIntegrationApi.md#patchservicedeskintegration) | **Patch** /service-desk-integrations/{id} | Service Desk Integration Update - PATCH
*ServiceDeskIntegrationApi* | [**UpdateManagedClientStatusCheckDetails**](docs/ServiceDeskIntegrationApi.md#updatemanagedclientstatuscheckdetails) | **Put** /service-desk-integrations/status-check-configuration | Update the time check configuration of queued SDIM tickets
*ServiceDeskIntegrationApi* | [**UpdateServiceDeskIntegration**](docs/ServiceDeskIntegrationApi.md#updateservicedeskintegration) | **Put** /service-desk-integrations/{id} | Update a Service Desk integration by ID
*ServiceDeskIntegrationApi* | [**UpdateStatusCheckDetails**](docs/ServiceDeskIntegrationApi.md#updatestatuscheckdetails) | **Put** /service-desk-integrations/status-check-configuration | Update the time check configuration of queued SDIM tickets
*SourcesApi* | [**BulkUpdateProvisioningPolicies**](docs/SourcesApi.md#bulkupdateprovisioningpolicies) | **Post** /sources/{sourceId}/provisioning-policies/bulk-update | Bulk Update Provisioning Policies
*SourcesApi* | [**CheckConnection**](docs/SourcesApi.md#checkconnection) | **Post** /sources/{sourceId}/connector/check-connection | Check connection for the source connector.
*SourcesApi* | [**CreateProvisioningPolicy**](docs/SourcesApi.md#createprovisioningpolicy) | **Post** /sources/{sourceId}/provisioning-policies | Create Provisioning Policy
*SourcesApi* | [**CreateSchema**](docs/SourcesApi.md#createschema) | **Post** /sources/{sourceId}/schemas | Creates a new Schema on the specified Source in IdentityNow.
*SourcesApi* | [**CreateSource**](docs/SourcesApi.md#createsource) | **Post** /sources | Creates a source in IdentityNow.
*SourcesApi* | [**CreateSourceSchema**](docs/SourcesApi.md#createsourceschema) | **Post** /sources/{sourceId}/schemas | Creates a new Schema on the specified Source in IdentityNow.
*SourcesApi* | [**DeleteProvisioningPolicy**](docs/SourcesApi.md#deleteprovisioningpolicy) | **Delete** /sources/{sourceId}/provisioning-policies/{usageType} | Delete Provisioning Policy by UsageType
*SourcesApi* | [**DeleteSchema**](docs/SourcesApi.md#deleteschema) | **Delete** /sources/{sourceId}/schemas/{schemaId} | Delete Source Schema by ID
*SourcesApi* | [**DeleteSource**](docs/SourcesApi.md#deletesource) | **Delete** /sources/{id} | Delete Source by ID
*SourcesApi* | [**DeleteSourceSchema**](docs/SourcesApi.md#deletesourceschema) | **Delete** /sources/{sourceId}/schemas/{schemaId} | Delete Source Schema by ID
*SourcesApi* | [**DownloadSourceAccountsSchema**](docs/SourcesApi.md#downloadsourceaccountsschema) | **Get** /sources/{id}/schemas/accounts | Downloads source accounts schema template
*SourcesApi* | [**DownloadSourceEntitlementsSchema**](docs/SourcesApi.md#downloadsourceentitlementsschema) | **Get** /sources/{id}/schemas/entitlements | Downloads source entitlements schema template
*SourcesApi* | [**GetProvisioningPolicy**](docs/SourcesApi.md#getprovisioningpolicy) | **Get** /sources/{sourceId}/provisioning-policies/{usageType} | Get Provisioning Policy by UsageType
*SourcesApi* | [**GetSchema**](docs/SourcesApi.md#getschema) | **Get** /sources/{sourceId}/schemas/{schemaId} | Get Source Schema by ID
*SourcesApi* | [**GetSource**](docs/SourcesApi.md#getsource) | **Get** /sources/{id} | Get Source by ID
*SourcesApi* | [**GetSourceAttrSyncConfig**](docs/SourcesApi.md#getsourceattrsyncconfig) | **Get** /sources/{id}/attribute-sync-config | Attribute Sync Config
*SourcesApi* | [**GetSourceConfig**](docs/SourcesApi.md#getsourceconfig) | **Get** /sources/{id}/connectors/source-config | Gets source config with language translations
*SourcesApi* | [**GetSourceSchema**](docs/SourcesApi.md#getsourceschema) | **Get** /sources/{sourceId}/schemas/{schemaId} | Get Source Schema by ID
*SourcesApi* | [**ListProvisioningPolicies**](docs/SourcesApi.md#listprovisioningpolicies) | **Get** /sources/{sourceId}/provisioning-policies | Lists ProvisioningPolicies
*SourcesApi* | [**ListSchemas**](docs/SourcesApi.md#listschemas) | **Get** /sources/{sourceId}/schemas | Lists the Schemas that exist on the specified Source in IdentityNow.
*SourcesApi* | [**ListSourceSchemas**](docs/SourcesApi.md#listsourceschemas) | **Get** /sources/{sourceId}/schemas | Lists the Schemas that exist on the specified Source in IdentityNow.
*SourcesApi* | [**ListSources**](docs/SourcesApi.md#listsources) | **Get** /sources | Lists all sources in IdentityNow.
*SourcesApi* | [**PeekResourceObjects**](docs/SourcesApi.md#peekresourceobjects) | **Post** /sources/{sourceId}/connector/peek-resource-objects | Peek resource objects from the source connector
*SourcesApi* | [**PingCluster**](docs/SourcesApi.md#pingcluster) | **Post** /sources/{sourceId}/connector/ping-cluster | Ping cluster for the source connector
*SourcesApi* | [**PutProvisioningPolicy**](docs/SourcesApi.md#putprovisioningpolicy) | **Put** /sources/{sourceId}/provisioning-policies/{usageType} | Update Provisioning Policy by UsageType
*SourcesApi* | [**PutSource**](docs/SourcesApi.md#putsource) | **Put** /sources/{id} | Update Source (Full)
*SourcesApi* | [**PutSourceAttrSyncConfig**](docs/SourcesApi.md#putsourceattrsyncconfig) | **Put** /sources/{id}/attribute-sync-config | Update Attribute Sync Config
*SourcesApi* | [**ReplaceProvisioningPolicy**](docs/SourcesApi.md#replaceprovisioningpolicy) | **Put** /sources/{sourceId}/provisioning-policies/{usageType} | Update Provisioning Policy by UsageType
*SourcesApi* | [**ReplaceSchema**](docs/SourcesApi.md#replaceschema) | **Put** /sources/{sourceId}/schemas/{schemaId} | Update Source Schema (Full)
*SourcesApi* | [**ReplaceSource**](docs/SourcesApi.md#replacesource) | **Put** /sources/{id} | Update Source (Full)
*SourcesApi* | [**SynchronizeAttributesForSource**](docs/SourcesApi.md#synchronizeattributesforsource) | **Post** /sources/{id}/synchronize-attributes | Synchronize single source attributes.
*SourcesApi* | [**TestConfiguration**](docs/SourcesApi.md#testconfiguration) | **Post** /sources/{sourceId}/connector/test-configuration | Test configuration for the source connector
*SourcesApi* | [**PutSourceSchema**](docs/SourcesApi.md#putsourceschema) | **Put** /sources/{sourceId}/schemas/{schemaId} | Update Source Schema (Full)
*SourcesApi* | [**SyncAttributesForSource**](docs/SourcesApi.md#syncattributesforsource) | **Post** /sources/{id}/synchronize-attributes | Synchronize single source attributes.
*SourcesApi* | [**TestSourceConfiguration**](docs/SourcesApi.md#testsourceconfiguration) | **Post** /sources/{sourceId}/connector/test-configuration | Test configuration for the source connector
*SourcesApi* | [**TestSourceConnection**](docs/SourcesApi.md#testsourceconnection) | **Post** /sources/{sourceId}/connector/check-connection | Check connection for the source connector.
*SourcesApi* | [**UpdateProvisioningPoliciesInBulk**](docs/SourcesApi.md#updateprovisioningpoliciesinbulk) | **Post** /sources/{sourceId}/provisioning-policies/bulk-update | Bulk Update Provisioning Policies
*SourcesApi* | [**UpdateProvisioningPolicy**](docs/SourcesApi.md#updateprovisioningpolicy) | **Patch** /sources/{sourceId}/provisioning-policies/{usageType} | Partial update of Provisioning Policy
*SourcesApi* | [**UpdateSchema**](docs/SourcesApi.md#updateschema) | **Patch** /sources/{sourceId}/schemas/{schemaId} | Update Source Schema (Partial)
*SourcesApi* | [**UpdateSource**](docs/SourcesApi.md#updatesource) | **Patch** /sources/{id} | Update Source (Partial)
*SourcesApi* | [**UploadConnectorFile**](docs/SourcesApi.md#uploadconnectorfile) | **Post** /sources/{sourceId}/upload-connector-file | Upload connector file to source
*SourcesApi* | [**UpdateSourceSchema**](docs/SourcesApi.md#updatesourceschema) | **Patch** /sources/{sourceId}/schemas/{schemaId} | Update Source Schema (Partial)
*SourcesApi* | [**UploadSourceAccountsSchema**](docs/SourcesApi.md#uploadsourceaccountsschema) | **Post** /sources/{id}/schemas/accounts | Uploads source accounts schema template
*SourcesApi* | [**UploadSourceConnectorFile**](docs/SourcesApi.md#uploadsourceconnectorfile) | **Post** /sources/{sourceId}/upload-connector-file | Upload connector file to source
*SourcesApi* | [**UploadSourceEntitlementsSchema**](docs/SourcesApi.md#uploadsourceentitlementsschema) | **Post** /sources/{id}/schemas/entitlements | Uploads source entitlements schema template
*TaggedObjectsApi* | [**AddTagToObject**](docs/TaggedObjectsApi.md#addtagtoobject) | **Post** /tagged-objects | Add Tag to Object
*TaggedObjectsApi* | [**AddTagsToManyObjects**](docs/TaggedObjectsApi.md#addtagstomanyobjects) | **Post** /tagged-objects/bulk-add | Tag Multiple Objects
*TaggedObjectsApi* | [**DeleteTaggedObjectByTypeAndId**](docs/TaggedObjectsApi.md#deletetaggedobjectbytypeandid) | **Delete** /tagged-objects/{type}/{id} | Delete Tagged Object
*TaggedObjectsApi* | [**GetTaggedObjectByTypeAndId**](docs/TaggedObjectsApi.md#gettaggedobjectbytypeandid) | **Get** /tagged-objects/{type}/{id} | Get Tagged Object
*TaggedObjectsApi* | [**DeleteTaggedObject**](docs/TaggedObjectsApi.md#deletetaggedobject) | **Delete** /tagged-objects/{type}/{id} | Delete Tagged Object
*TaggedObjectsApi* | [**GetTaggedObject**](docs/TaggedObjectsApi.md#gettaggedobject) | **Get** /tagged-objects/{type}/{id} | Get Tagged Object
*TaggedObjectsApi* | [**ListTaggedObjects**](docs/TaggedObjectsApi.md#listtaggedobjects) | **Get** /tagged-objects | List Tagged Objects
*TaggedObjectsApi* | [**ListTaggedObjectsByType**](docs/TaggedObjectsApi.md#listtaggedobjectsbytype) | **Get** /tagged-objects/{type} | List Tagged Objects
*TaggedObjectsApi* | [**RemoveTagsToManyObject**](docs/TaggedObjectsApi.md#removetagstomanyobject) | **Post** /tagged-objects/bulk-remove | Remove Tags from Multiple Objects
*TaggedObjectsApi* | [**UpdateTaggedObjectByTypeAndId**](docs/TaggedObjectsApi.md#updatetaggedobjectbytypeandid) | **Put** /tagged-objects/{type}/{id} | Update Tagged Object
*TaggedObjectsApi* | [**UpdateTaggedObject**](docs/TaggedObjectsApi.md#updatetaggedobject) | **Put** /tagged-objects/{type}/{id} | Update Tagged Object
*TransformsApi* | [**CreateTransform**](docs/TransformsApi.md#createtransform) | **Post** /transforms | Create transform
*TransformsApi* | [**DeleteTransform**](docs/TransformsApi.md#deletetransform) | **Delete** /transforms/{id} | Delete a transform
*TransformsApi* | [**GetTransform**](docs/TransformsApi.md#gettransform) | **Get** /transforms/{id} | Transform by ID
*TransformsApi* | [**GetTransformsList**](docs/TransformsApi.md#gettransformslist) | **Get** /transforms | List transforms
*TransformsApi* | [**ListTransforms**](docs/TransformsApi.md#listtransforms) | **Get** /transforms | List transforms
*TransformsApi* | [**UpdateTransform**](docs/TransformsApi.md#updatetransform) | **Put** /transforms/{id} | Update a transform
*TriggersApi* | [**CompleteInvocation**](docs/TriggersApi.md#completeinvocation) | **Post** /trigger-invocations/{id}/complete | Complete Trigger Invocation
*TriggersApi* | [**CompleteTriggerInvocation**](docs/TriggersApi.md#completetriggerinvocation) | **Post** /trigger-invocations/{id}/complete | Complete Trigger Invocation
*TriggersApi* | [**CreateSubscription**](docs/TriggersApi.md#createsubscription) | **Post** /trigger-subscriptions | Create a Subscription
*TriggersApi* | [**DeleteSubscription**](docs/TriggersApi.md#deletesubscription) | **Delete** /trigger-subscriptions/{id} | Delete a Subscription
*TriggersApi* | [**ListInvocationStatus**](docs/TriggersApi.md#listinvocationstatus) | **Get** /trigger-invocations/status | List Latest Invocation Statuses
*TriggersApi* | [**ListSubscriptions**](docs/TriggersApi.md#listsubscriptions) | **Get** /trigger-subscriptions | List Subscriptions
*TriggersApi* | [**ListTriggerInvocationStatus**](docs/TriggersApi.md#listtriggerinvocationstatus) | **Get** /trigger-invocations/status | List Latest Invocation Statuses
*TriggersApi* | [**ListTriggers**](docs/TriggersApi.md#listtriggers) | **Get** /triggers | List Triggers
*TriggersApi* | [**PatchSubscription**](docs/TriggersApi.md#patchsubscription) | **Patch** /trigger-subscriptions/{id} | Patch a Subscription
*TriggersApi* | [**StartTestInvocation**](docs/TriggersApi.md#starttestinvocation) | **Post** /trigger-invocations/test | Start a Test Invocation
*TriggersApi* | [**StartTestTriggerInvocation**](docs/TriggersApi.md#starttesttriggerinvocation) | **Post** /trigger-invocations/test | Start a Test Invocation
*TriggersApi* | [**UpdateSubscription**](docs/TriggersApi.md#updatesubscription) | **Put** /trigger-subscriptions/{id} | Update a Subscription
*TriggersApi* | [**ValidateFilter**](docs/TriggersApi.md#validatefilter) | **Post** /trigger-subscriptions/validate-filter | Validate a Subscription Filter
*TriggersApi* | [**ValidateSubscriptionFilter**](docs/TriggersApi.md#validatesubscriptionfilter) | **Post** /trigger-subscriptions/validate-filter | Validate a Subscription Filter
*WorkItemsApi* | [**ApproveApprovalItem**](docs/WorkItemsApi.md#approveapprovalitem) | **Post** /work-items/{id}/approve/{approvalItemId} | Approve an Approval Item
*WorkItemsApi* | [**BulkApproveApprovalItem**](docs/WorkItemsApi.md#bulkapproveapprovalitem) | **Post** /work-items/bulk-approve/{id} | Bulk approve Approval Items
*WorkItemsApi* | [**BulkRejectApprovalItem**](docs/WorkItemsApi.md#bulkrejectapprovalitem) | **Post** /work-items/bulk-reject/{id} | Bulk reject Approval Items
*WorkItemsApi* | [**ApproveApprovalItemsInBulk**](docs/WorkItemsApi.md#approveapprovalitemsinbulk) | **Post** /work-items/bulk-approve/{id} | Bulk approve Approval Items
*WorkItemsApi* | [**CompleteWorkItem**](docs/WorkItemsApi.md#completeworkitem) | **Post** /work-items/{id} | Complete a Work Item
*WorkItemsApi* | [**CompletedWorkItems**](docs/WorkItemsApi.md#completedworkitems) | **Get** /work-items/completed | Completed Work Items
*WorkItemsApi* | [**CountCompletedWorkItems**](docs/WorkItemsApi.md#countcompletedworkitems) | **Get** /work-items/count/completed | Count Completed Work Items
*WorkItemsApi* | [**CountWorkItems**](docs/WorkItemsApi.md#countworkitems) | **Get** /work-items/count | Count Work Items
*WorkItemsApi* | [**GetWorkItems**](docs/WorkItemsApi.md#getworkitems) | **Get** /work-items/{id} | Get a Work Item
*WorkItemsApi* | [**GetCompletedWorkItems**](docs/WorkItemsApi.md#getcompletedworkitems) | **Get** /work-items/completed | Completed Work Items
*WorkItemsApi* | [**GetCountCompletedWorkItems**](docs/WorkItemsApi.md#getcountcompletedworkitems) | **Get** /work-items/count/completed | Count Completed Work Items
*WorkItemsApi* | [**GetCountWorkItems**](docs/WorkItemsApi.md#getcountworkitems) | **Get** /work-items/count | Count Work Items
*WorkItemsApi* | [**GetWorkItem**](docs/WorkItemsApi.md#getworkitem) | **Get** /work-items/{id} | Get a Work Item
*WorkItemsApi* | [**GetWorkItemsSummary**](docs/WorkItemsApi.md#getworkitemssummary) | **Get** /work-items/summary | Work Items Summary
*WorkItemsApi* | [**ListWorkItems**](docs/WorkItemsApi.md#listworkitems) | **Get** /work-items | List Work Items
*WorkItemsApi* | [**RejectApprovalItem**](docs/WorkItemsApi.md#rejectapprovalitem) | **Post** /work-items/{id}/reject/{approvalItemId} | Reject an Approval Item
*WorkItemsApi* | [**RejectApprovalItemsInBulk**](docs/WorkItemsApi.md#rejectapprovalitemsinbulk) | **Post** /work-items/bulk-reject/{id} | Bulk reject Approval Items
*WorkItemsApi* | [**SubmitAccountSelection**](docs/WorkItemsApi.md#submitaccountselection) | **Post** /work-items/{id}/submit-account-selection | Submit Account Selections
*WorkItemsApi* | [**SummaryWorkItems**](docs/WorkItemsApi.md#summaryworkitems) | **Get** /work-items/summary | Work Items Summary
*WorkflowsApi* | [**CancelWorkflowExecution**](docs/WorkflowsApi.md#cancelworkflowexecution) | **Post** /workflow-executions/{id}/cancel | Cancel Workflow Execution by ID
*WorkflowsApi* | [**CreateWorkflow**](docs/WorkflowsApi.md#createworkflow) | **Post** /workflows | Create Workflow
*WorkflowsApi* | [**DeleteWorkflow**](docs/WorkflowsApi.md#deleteworkflow) | **Delete** /workflows/{id} | Delete Workflow By Id
@@ -469,6 +474,7 @@ Class | Method | HTTP request | Description
- [AccessItemRemoved](docs/AccessItemRemoved.md)
- [AccessItemRoleResponse](docs/AccessItemRoleResponse.md)
- [AccessProfile](docs/AccessProfile.md)
- [AccessProfileApprovalScheme](docs/AccessProfileApprovalScheme.md)
- [AccessProfileBulkDeleteRequest](docs/AccessProfileBulkDeleteRequest.md)
- [AccessProfileBulkDeleteResponse](docs/AccessProfileBulkDeleteResponse.md)
- [AccessProfileRef](docs/AccessProfileRef.md)
@@ -524,7 +530,6 @@ Class | Method | HTTP request | Description
- [ApprovalItems](docs/ApprovalItems.md)
- [ApprovalReminderAndEscalationConfig](docs/ApprovalReminderAndEscalationConfig.md)
- [ApprovalScheme](docs/ApprovalScheme.md)
- [ApprovalScheme1](docs/ApprovalScheme1.md)
- [ApprovalSchemeForRole](docs/ApprovalSchemeForRole.md)
- [ApprovalStatus](docs/ApprovalStatus.md)
- [ApprovalStatusDto](docs/ApprovalStatusDto.md)
@@ -543,6 +548,7 @@ Class | Method | HTTP request | Description
- [BaseReferenceDto1](docs/BaseReferenceDto1.md)
- [BasicAuthConfig](docs/BasicAuthConfig.md)
- [BearerTokenAuthConfig](docs/BearerTokenAuthConfig.md)
- [BulkIdentitiesAccountsResponse](docs/BulkIdentitiesAccountsResponse.md)
- [BulkTaggedObject](docs/BulkTaggedObject.md)
- [Campaign](docs/Campaign.md)
- [CampaignActivated](docs/CampaignActivated.md)
@@ -604,6 +610,7 @@ Class | Method | HTTP request | Description
- [CreateWorkflowRequest](docs/CreateWorkflowRequest.md)
- [CustomPasswordInstruction](docs/CustomPasswordInstruction.md)
- [DeleteCampaignsRequest](docs/DeleteCampaignsRequest.md)
- [DeleteNonEmployeeRecordInBulkRequest](docs/DeleteNonEmployeeRecordInBulkRequest.md)
- [DeleteSource202Response](docs/DeleteSource202Response.md)
- [DkimAttributesDto](docs/DkimAttributesDto.md)
- [DomainAddressDto](docs/DomainAddressDto.md)
@@ -649,13 +656,14 @@ Class | Method | HTTP request | Description
- [FullcampaignAllOfSourceOwnerCampaignInfo](docs/FullcampaignAllOfSourceOwnerCampaignInfo.md)
- [FullcampaignAllOfSourcesWithOrphanEntitlements](docs/FullcampaignAllOfSourcesWithOrphanEntitlements.md)
- [GetActiveCampaigns200ResponseInner](docs/GetActiveCampaigns200ResponseInner.md)
- [GetEvents200ResponseInner](docs/GetEvents200ResponseInner.md)
- [GetHistoricalIdentityEvents200ResponseInner](docs/GetHistoricalIdentityEvents200ResponseInner.md)
- [GetOAuthClientResponse](docs/GetOAuthClientResponse.md)
- [GetPersonalAccessTokenResponse](docs/GetPersonalAccessTokenResponse.md)
- [GrantType](docs/GrantType.md)
- [HttpAuthenticationType](docs/HttpAuthenticationType.md)
- [HttpConfig](docs/HttpConfig.md)
- [HttpDispatchMode](docs/HttpDispatchMode.md)
- [IdentitiesAccountsBulkRequest](docs/IdentitiesAccountsBulkRequest.md)
- [IdentityAttributeConfig](docs/IdentityAttributeConfig.md)
- [IdentityAttributeConfig1](docs/IdentityAttributeConfig1.md)
- [IdentityAttributePreview](docs/IdentityAttributePreview.md)
@@ -691,6 +699,7 @@ Class | Method | HTTP request | Description
- [IdentityWithNewAccess](docs/IdentityWithNewAccess.md)
- [IdentityWithNewAccessAccessRefsInner](docs/IdentityWithNewAccessAccessRefsInner.md)
- [ImportOptions](docs/ImportOptions.md)
- [ImportSpConfigRequest](docs/ImportSpConfigRequest.md)
- [Invocation](docs/Invocation.md)
- [InvocationStatus](docs/InvocationStatus.md)
- [InvocationStatusType](docs/InvocationStatusType.md)
@@ -738,8 +747,6 @@ Class | Method | HTTP request | Description
- [NonEmployeeBulkUploadStatus](docs/NonEmployeeBulkUploadStatus.md)
- [NonEmployeeIdnUserRequest](docs/NonEmployeeIdnUserRequest.md)
- [NonEmployeeRecord](docs/NonEmployeeRecord.md)
- [NonEmployeeRecordBulkDeleteRequest](docs/NonEmployeeRecordBulkDeleteRequest.md)
- [NonEmployeeRecordsBulkUploadRequest](docs/NonEmployeeRecordsBulkUploadRequest.md)
- [NonEmployeeRejectApprovalDecision](docs/NonEmployeeRejectApprovalDecision.md)
- [NonEmployeeRequest](docs/NonEmployeeRequest.md)
- [NonEmployeeRequestAllOf](docs/NonEmployeeRequestAllOf.md)
@@ -781,6 +788,7 @@ Class | Method | HTTP request | Description
- [PasswordOrgConfig](docs/PasswordOrgConfig.md)
- [PasswordStatus](docs/PasswordStatus.md)
- [PasswordSyncGroup](docs/PasswordSyncGroup.md)
- [PatchPotentialRoleRequestInner](docs/PatchPotentialRoleRequestInner.md)
- [PeerGroupMember](docs/PeerGroupMember.md)
- [PendingApproval](docs/PendingApproval.md)
- [PendingApprovalAction](docs/PendingApprovalAction.md)
@@ -869,9 +877,9 @@ Class | Method | HTTP request | Description
- [RoleMiningPotentialRoleProvisionState](docs/RoleMiningPotentialRoleProvisionState.md)
- [RoleMiningPotentialRoleRef](docs/RoleMiningPotentialRoleRef.md)
- [RoleMiningPotentialRoleSummary](docs/RoleMiningPotentialRoleSummary.md)
- [RoleMiningPotentialRoleSummaryDistribution](docs/RoleMiningPotentialRoleSummaryDistribution.md)
- [RoleMiningRoleType](docs/RoleMiningRoleType.md)
- [RoleMiningSessionDto](docs/RoleMiningSessionDto.md)
- [RoleMiningSessionParametersDto](docs/RoleMiningSessionParametersDto.md)
- [RoleMiningSessionResponse](docs/RoleMiningSessionResponse.md)
- [RoleMiningSessionScope](docs/RoleMiningSessionScope.md)
- [RoleMiningSessionStatus](docs/RoleMiningSessionStatus.md)
@@ -938,7 +946,6 @@ Class | Method | HTTP request | Description
- [SourceSyncPayload](docs/SourceSyncPayload.md)
- [SourceUpdated](docs/SourceUpdated.md)
- [SpConfigExportResults](docs/SpConfigExportResults.md)
- [SpConfigImportRequest](docs/SpConfigImportRequest.md)
- [SpConfigImportResults](docs/SpConfigImportResults.md)
- [SpConfigJob](docs/SpConfigJob.md)
- [SpConfigMessage](docs/SpConfigMessage.md)
@@ -1050,6 +1057,7 @@ Class | Method | HTTP request | Description
- [TriggerOutputAccessRequestPreApproval](docs/TriggerOutputAccessRequestPreApproval.md)
- [TriggerType](docs/TriggerType.md)
- [UpdatePasswordDictionaryRequest](docs/UpdatePasswordDictionaryRequest.md)
- [UploadNonEmployeeRecordsInBulkRequest](docs/UploadNonEmployeeRecordsInBulkRequest.md)
- [UsageType](docs/UsageType.md)
- [V3ConnectorDto](docs/V3ConnectorDto.md)
- [VAClusterStatusChangeEvent](docs/VAClusterStatusChangeEvent.md)

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"
@@ -23,174 +23,6 @@ import (
// AccessProfilesApiService AccessProfilesApi service
type AccessProfilesApiService service
type ApiBulkDeleteAccessProfilesRequest struct {
ctx context.Context
ApiService *AccessProfilesApiService
accessProfileBulkDeleteRequest *AccessProfileBulkDeleteRequest
}
func (r ApiBulkDeleteAccessProfilesRequest) AccessProfileBulkDeleteRequest(accessProfileBulkDeleteRequest AccessProfileBulkDeleteRequest) ApiBulkDeleteAccessProfilesRequest {
r.accessProfileBulkDeleteRequest = &accessProfileBulkDeleteRequest
return r
}
func (r ApiBulkDeleteAccessProfilesRequest) Execute() (*AccessProfileBulkDeleteResponse, *http.Response, error) {
return r.ApiService.BulkDeleteAccessProfilesExecute(r)
}
/*
BulkDeleteAccessProfiles Delete Access Profile(s)
This API initiates a bulk deletion of one or more Access Profiles.
By default, if any of the indicated Access Profiles are in use, no deletions will be performed and the **inUse** field of the response indicates the usages that must be removed first. If the request field **bestEffortOnly** is **true**, however, usages are reported in the **inUse** response field but all other indicated Access Profiles will be deleted.
A token with API, ORG_ADMIN, SOURCE_ADMIN, or SOURCE_SUBADMIN authority is required to call this API. In addition, a SOURCE_SUBADMIN may only use this API to delete Access Profiles which are associated with Sources they are able to administer.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiBulkDeleteAccessProfilesRequest
*/
func (a *AccessProfilesApiService) BulkDeleteAccessProfiles(ctx context.Context) ApiBulkDeleteAccessProfilesRequest {
return ApiBulkDeleteAccessProfilesRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
// @return AccessProfileBulkDeleteResponse
func (a *AccessProfilesApiService) BulkDeleteAccessProfilesExecute(r ApiBulkDeleteAccessProfilesRequest) (*AccessProfileBulkDeleteResponse, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *AccessProfileBulkDeleteResponse
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AccessProfilesApiService.BulkDeleteAccessProfiles")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/access-profiles/bulk-delete"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if r.accessProfileBulkDeleteRequest == nil {
return localVarReturnValue, nil, reportError("accessProfileBulkDeleteRequest is required and must be specified")
}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{"application/json"}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
if localVarHTTPContentType != "" {
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := []string{"application/json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
localVarPostBody = r.accessProfileBulkDeleteRequest
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return localVarReturnValue, nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
return localVarReturnValue, localVarHTTPResponse, err
}
localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body.Close()
localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody))
if err != nil {
return localVarReturnValue, localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 400 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 401 {
var v ListAccessProfiles401Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 403 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 429 {
var v ListAccessProfiles429Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 500 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: err.Error(),
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiCreateAccessProfileRequest struct {
ctx context.Context
ApiService *AccessProfilesApiService
@@ -518,6 +350,174 @@ func (a *AccessProfilesApiService) DeleteAccessProfileExecute(r ApiDeleteAccessP
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiDeleteAccessProfilesInBulkRequest struct {
ctx context.Context
ApiService *AccessProfilesApiService
accessProfileBulkDeleteRequest *AccessProfileBulkDeleteRequest
}
func (r ApiDeleteAccessProfilesInBulkRequest) AccessProfileBulkDeleteRequest(accessProfileBulkDeleteRequest AccessProfileBulkDeleteRequest) ApiDeleteAccessProfilesInBulkRequest {
r.accessProfileBulkDeleteRequest = &accessProfileBulkDeleteRequest
return r
}
func (r ApiDeleteAccessProfilesInBulkRequest) Execute() (*AccessProfileBulkDeleteResponse, *http.Response, error) {
return r.ApiService.DeleteAccessProfilesInBulkExecute(r)
}
/*
DeleteAccessProfilesInBulk Delete Access Profile(s)
This API initiates a bulk deletion of one or more Access Profiles.
By default, if any of the indicated Access Profiles are in use, no deletions will be performed and the **inUse** field of the response indicates the usages that must be removed first. If the request field **bestEffortOnly** is **true**, however, usages are reported in the **inUse** response field but all other indicated Access Profiles will be deleted.
A token with API, ORG_ADMIN, SOURCE_ADMIN, or SOURCE_SUBADMIN authority is required to call this API. In addition, a SOURCE_SUBADMIN may only use this API to delete Access Profiles which are associated with Sources they are able to administer.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiDeleteAccessProfilesInBulkRequest
*/
func (a *AccessProfilesApiService) DeleteAccessProfilesInBulk(ctx context.Context) ApiDeleteAccessProfilesInBulkRequest {
return ApiDeleteAccessProfilesInBulkRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
// @return AccessProfileBulkDeleteResponse
func (a *AccessProfilesApiService) DeleteAccessProfilesInBulkExecute(r ApiDeleteAccessProfilesInBulkRequest) (*AccessProfileBulkDeleteResponse, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *AccessProfileBulkDeleteResponse
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AccessProfilesApiService.DeleteAccessProfilesInBulk")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/access-profiles/bulk-delete"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if r.accessProfileBulkDeleteRequest == nil {
return localVarReturnValue, nil, reportError("accessProfileBulkDeleteRequest is required and must be specified")
}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{"application/json"}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
if localVarHTTPContentType != "" {
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := []string{"application/json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
localVarPostBody = r.accessProfileBulkDeleteRequest
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return localVarReturnValue, nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
return localVarReturnValue, localVarHTTPResponse, err
}
localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body.Close()
localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody))
if err != nil {
return localVarReturnValue, localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 400 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 401 {
var v ListAccessProfiles401Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 403 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 429 {
var v ListAccessProfiles429Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 500 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: err.Error(),
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiGetAccessProfileRequest struct {
ctx context.Context
ApiService *AccessProfilesApiService
@@ -677,7 +677,7 @@ func (a *AccessProfilesApiService) GetAccessProfileExecute(r ApiGetAccessProfile
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiListAccessProfileEntitlementsRequest struct {
type ApiGetAccessProfileEntitlementsRequest struct {
ctx context.Context
ApiService *AccessProfilesApiService
id string
@@ -689,41 +689,41 @@ type ApiListAccessProfileEntitlementsRequest struct {
}
// Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiListAccessProfileEntitlementsRequest) Limit(limit int32) ApiListAccessProfileEntitlementsRequest {
func (r ApiGetAccessProfileEntitlementsRequest) Limit(limit int32) ApiGetAccessProfileEntitlementsRequest {
r.limit = &limit
return r
}
// Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiListAccessProfileEntitlementsRequest) Offset(offset int32) ApiListAccessProfileEntitlementsRequest {
func (r ApiGetAccessProfileEntitlementsRequest) Offset(offset int32) ApiGetAccessProfileEntitlementsRequest {
r.offset = &offset
return r
}
// If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count&#x3D;true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiListAccessProfileEntitlementsRequest) Count(count bool) ApiListAccessProfileEntitlementsRequest {
func (r ApiGetAccessProfileEntitlementsRequest) Count(count bool) ApiGetAccessProfileEntitlementsRequest {
r.count = &count
return r
}
// Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following Entitlement fields and operators: **id**: *eq, in* **name**: *eq, sw* **attribute**: *eq, sw* **value**: *eq, sw* **created, modified**: *gt, lt, ge, le* **owner.id**: *eq, in* **source.id**: *eq, in*
func (r ApiListAccessProfileEntitlementsRequest) Filters(filters string) ApiListAccessProfileEntitlementsRequest {
func (r ApiGetAccessProfileEntitlementsRequest) Filters(filters string) ApiGetAccessProfileEntitlementsRequest {
r.filters = &filters
return r
}
// Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, attribute, value, created, modified**
func (r ApiListAccessProfileEntitlementsRequest) Sorters(sorters string) ApiListAccessProfileEntitlementsRequest {
func (r ApiGetAccessProfileEntitlementsRequest) Sorters(sorters string) ApiGetAccessProfileEntitlementsRequest {
r.sorters = &sorters
return r
}
func (r ApiListAccessProfileEntitlementsRequest) Execute() ([]Entitlement, *http.Response, error) {
return r.ApiService.ListAccessProfileEntitlementsExecute(r)
func (r ApiGetAccessProfileEntitlementsRequest) Execute() ([]Entitlement, *http.Response, error) {
return r.ApiService.GetAccessProfileEntitlementsExecute(r)
}
/*
ListAccessProfileEntitlements List Access Profile's Entitlements
GetAccessProfileEntitlements List Access Profile's Entitlements
This API lists the Entitlements associated with a given Access Profile
@@ -731,10 +731,10 @@ A token with API, ORG_ADMIN, SOURCE_ADMIN, or SOURCE_SUBADMIN authority is requi
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id ID of the containing Access Profile
@return ApiListAccessProfileEntitlementsRequest
@return ApiGetAccessProfileEntitlementsRequest
*/
func (a *AccessProfilesApiService) ListAccessProfileEntitlements(ctx context.Context, id string) ApiListAccessProfileEntitlementsRequest {
return ApiListAccessProfileEntitlementsRequest{
func (a *AccessProfilesApiService) GetAccessProfileEntitlements(ctx context.Context, id string) ApiGetAccessProfileEntitlementsRequest {
return ApiGetAccessProfileEntitlementsRequest{
ApiService: a,
ctx: ctx,
id: id,
@@ -743,7 +743,7 @@ func (a *AccessProfilesApiService) ListAccessProfileEntitlements(ctx context.Con
// Execute executes the request
// @return []Entitlement
func (a *AccessProfilesApiService) ListAccessProfileEntitlementsExecute(r ApiListAccessProfileEntitlementsRequest) ([]Entitlement, *http.Response, error) {
func (a *AccessProfilesApiService) GetAccessProfileEntitlementsExecute(r ApiGetAccessProfileEntitlementsRequest) ([]Entitlement, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -751,7 +751,7 @@ func (a *AccessProfilesApiService) ListAccessProfileEntitlementsExecute(r ApiLis
localVarReturnValue []Entitlement
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AccessProfilesApiService.ListAccessProfileEntitlements")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AccessProfilesApiService.GetAccessProfileEntitlements")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"
@@ -23,180 +23,7 @@ import (
// AccessRequestApprovalsApiService AccessRequestApprovalsApi service
type AccessRequestApprovalsApiService service
type ApiApprovalSummaryRequest struct {
ctx context.Context
ApiService *AccessRequestApprovalsApiService
ownerId *string
fromDate *string
}
// The id of the owner or approver identity of the approvals. If present, the value returns approval summary for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN user can also fetch all the approvals in the org, when owner-id is not used. * Non ORG_ADMIN users can only specify *me* or pass their own identity ID value.
func (r ApiApprovalSummaryRequest) OwnerId(ownerId string) ApiApprovalSummaryRequest {
r.ownerId = &ownerId
return r
}
// From date is the date and time from which the results will be shown. It should be in a valid ISO-8601 format example: from-date&#x3D;2020-03-19T19:59:11Z
func (r ApiApprovalSummaryRequest) FromDate(fromDate string) ApiApprovalSummaryRequest {
r.fromDate = &fromDate
return r
}
func (r ApiApprovalSummaryRequest) Execute() (*ApprovalSummary, *http.Response, error) {
return r.ApiService.ApprovalSummaryExecute(r)
}
/*
ApprovalSummary Get the number of pending, approved and rejected access requests approvals
This endpoint returns the number of pending, approved and rejected access requests approvals. See "owner-id" query parameter below for authorization info.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiApprovalSummaryRequest
*/
func (a *AccessRequestApprovalsApiService) ApprovalSummary(ctx context.Context) ApiApprovalSummaryRequest {
return ApiApprovalSummaryRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
// @return ApprovalSummary
func (a *AccessRequestApprovalsApiService) ApprovalSummaryExecute(r ApiApprovalSummaryRequest) (*ApprovalSummary, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *ApprovalSummary
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AccessRequestApprovalsApiService.ApprovalSummary")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/access-request-approvals/approval-summary"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if r.ownerId != nil {
localVarQueryParams.Add("owner-id", parameterToString(*r.ownerId, ""))
}
if r.fromDate != nil {
localVarQueryParams.Add("from-date", parameterToString(*r.fromDate, ""))
}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
if localVarHTTPContentType != "" {
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := []string{"application/json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return localVarReturnValue, nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
return localVarReturnValue, localVarHTTPResponse, err
}
localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body.Close()
localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody))
if err != nil {
return localVarReturnValue, localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 400 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 401 {
var v ListAccessProfiles401Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 403 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 429 {
var v ListAccessProfiles429Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 500 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: err.Error(),
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiApproveRequestRequest struct {
type ApiApproveAccessRequestRequest struct {
ctx context.Context
ApiService *AccessRequestApprovalsApiService
approvalId string
@@ -204,26 +31,26 @@ type ApiApproveRequestRequest struct {
}
// Reviewer&#39;s comment.
func (r ApiApproveRequestRequest) CommentDto(commentDto CommentDto) ApiApproveRequestRequest {
func (r ApiApproveAccessRequestRequest) CommentDto(commentDto CommentDto) ApiApproveAccessRequestRequest {
r.commentDto = &commentDto
return r
}
func (r ApiApproveRequestRequest) Execute() (map[string]interface{}, *http.Response, error) {
return r.ApiService.ApproveRequestExecute(r)
func (r ApiApproveAccessRequestRequest) Execute() (map[string]interface{}, *http.Response, error) {
return r.ApiService.ApproveAccessRequestExecute(r)
}
/*
ApproveRequest Approves an access request approval.
ApproveAccessRequest Approves an access request approval.
This endpoint approves an access request approval. Only the owner of the approval and ORG_ADMIN users are allowed to perform this action.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param approvalId The id of the approval.
@return ApiApproveRequestRequest
@return ApiApproveAccessRequestRequest
*/
func (a *AccessRequestApprovalsApiService) ApproveRequest(ctx context.Context, approvalId string) ApiApproveRequestRequest {
return ApiApproveRequestRequest{
func (a *AccessRequestApprovalsApiService) ApproveAccessRequest(ctx context.Context, approvalId string) ApiApproveAccessRequestRequest {
return ApiApproveAccessRequestRequest{
ApiService: a,
ctx: ctx,
approvalId: approvalId,
@@ -232,7 +59,7 @@ func (a *AccessRequestApprovalsApiService) ApproveRequest(ctx context.Context, a
// Execute executes the request
// @return map[string]interface{}
func (a *AccessRequestApprovalsApiService) ApproveRequestExecute(r ApiApproveRequestRequest) (map[string]interface{}, *http.Response, error) {
func (a *AccessRequestApprovalsApiService) ApproveAccessRequestExecute(r ApiApproveAccessRequestRequest) (map[string]interface{}, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
@@ -240,7 +67,7 @@ func (a *AccessRequestApprovalsApiService) ApproveRequestExecute(r ApiApproveReq
localVarReturnValue map[string]interface{}
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AccessRequestApprovalsApiService.ApproveRequest")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AccessRequestApprovalsApiService.ApproveAccessRequest")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -362,7 +189,7 @@ func (a *AccessRequestApprovalsApiService) ApproveRequestExecute(r ApiApproveReq
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiForwardRequestRequest struct {
type ApiForwardAccessRequestRequest struct {
ctx context.Context
ApiService *AccessRequestApprovalsApiService
approvalId string
@@ -370,26 +197,26 @@ type ApiForwardRequestRequest struct {
}
// Information about the forwarded approval.
func (r ApiForwardRequestRequest) ForwardApprovalDto(forwardApprovalDto ForwardApprovalDto) ApiForwardRequestRequest {
func (r ApiForwardAccessRequestRequest) ForwardApprovalDto(forwardApprovalDto ForwardApprovalDto) ApiForwardAccessRequestRequest {
r.forwardApprovalDto = &forwardApprovalDto
return r
}
func (r ApiForwardRequestRequest) Execute() (map[string]interface{}, *http.Response, error) {
return r.ApiService.ForwardRequestExecute(r)
func (r ApiForwardAccessRequestRequest) Execute() (map[string]interface{}, *http.Response, error) {
return r.ApiService.ForwardAccessRequestExecute(r)
}
/*
ForwardRequest Forwards an access request approval to a new owner.
ForwardAccessRequest Forwards an access request approval to a new owner.
This endpoint forwards an access request approval. Only the owner of the approval and ORG_ADMIN users are allowed to perform this action.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param approvalId The id of the approval.
@return ApiForwardRequestRequest
@return ApiForwardAccessRequestRequest
*/
func (a *AccessRequestApprovalsApiService) ForwardRequest(ctx context.Context, approvalId string) ApiForwardRequestRequest {
return ApiForwardRequestRequest{
func (a *AccessRequestApprovalsApiService) ForwardAccessRequest(ctx context.Context, approvalId string) ApiForwardAccessRequestRequest {
return ApiForwardAccessRequestRequest{
ApiService: a,
ctx: ctx,
approvalId: approvalId,
@@ -398,7 +225,7 @@ func (a *AccessRequestApprovalsApiService) ForwardRequest(ctx context.Context, a
// Execute executes the request
// @return map[string]interface{}
func (a *AccessRequestApprovalsApiService) ForwardRequestExecute(r ApiForwardRequestRequest) (map[string]interface{}, *http.Response, error) {
func (a *AccessRequestApprovalsApiService) ForwardAccessRequestExecute(r ApiForwardAccessRequestRequest) (map[string]interface{}, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
@@ -406,7 +233,7 @@ func (a *AccessRequestApprovalsApiService) ForwardRequestExecute(r ApiForwardReq
localVarReturnValue map[string]interface{}
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AccessRequestApprovalsApiService.ForwardRequest")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AccessRequestApprovalsApiService.ForwardAccessRequest")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -542,6 +369,179 @@ func (a *AccessRequestApprovalsApiService) ForwardRequestExecute(r ApiForwardReq
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiGetAccessRequestApprovalSummaryRequest struct {
ctx context.Context
ApiService *AccessRequestApprovalsApiService
ownerId *string
fromDate *string
}
// The id of the owner or approver identity of the approvals. If present, the value returns approval summary for the specified identity. * ORG_ADMIN users can call this with any identity ID value. * ORG_ADMIN user can also fetch all the approvals in the org, when owner-id is not used. * Non ORG_ADMIN users can only specify *me* or pass their own identity ID value.
func (r ApiGetAccessRequestApprovalSummaryRequest) OwnerId(ownerId string) ApiGetAccessRequestApprovalSummaryRequest {
r.ownerId = &ownerId
return r
}
// From date is the date and time from which the results will be shown. It should be in a valid ISO-8601 format example: from-date&#x3D;2020-03-19T19:59:11Z
func (r ApiGetAccessRequestApprovalSummaryRequest) FromDate(fromDate string) ApiGetAccessRequestApprovalSummaryRequest {
r.fromDate = &fromDate
return r
}
func (r ApiGetAccessRequestApprovalSummaryRequest) Execute() (*ApprovalSummary, *http.Response, error) {
return r.ApiService.GetAccessRequestApprovalSummaryExecute(r)
}
/*
GetAccessRequestApprovalSummary Get the number of pending, approved and rejected access requests approvals
This endpoint returns the number of pending, approved and rejected access requests approvals. See "owner-id" query parameter below for authorization info.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetAccessRequestApprovalSummaryRequest
*/
func (a *AccessRequestApprovalsApiService) GetAccessRequestApprovalSummary(ctx context.Context) ApiGetAccessRequestApprovalSummaryRequest {
return ApiGetAccessRequestApprovalSummaryRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
// @return ApprovalSummary
func (a *AccessRequestApprovalsApiService) GetAccessRequestApprovalSummaryExecute(r ApiGetAccessRequestApprovalSummaryRequest) (*ApprovalSummary, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *ApprovalSummary
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AccessRequestApprovalsApiService.GetAccessRequestApprovalSummary")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/access-request-approvals/approval-summary"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if r.ownerId != nil {
localVarQueryParams.Add("owner-id", parameterToString(*r.ownerId, ""))
}
if r.fromDate != nil {
localVarQueryParams.Add("from-date", parameterToString(*r.fromDate, ""))
}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
if localVarHTTPContentType != "" {
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := []string{"application/json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return localVarReturnValue, nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
return localVarReturnValue, localVarHTTPResponse, err
}
localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body.Close()
localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody))
if err != nil {
return localVarReturnValue, localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 400 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 401 {
var v ListAccessProfiles401Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 403 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 429 {
var v ListAccessProfiles429Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 500 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: err.Error(),
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiListCompletedApprovalsRequest struct {
ctx context.Context
ApiService *AccessRequestApprovalsApiService
@@ -946,7 +946,7 @@ func (a *AccessRequestApprovalsApiService) ListPendingApprovalsExecute(r ApiList
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiRejectRequestRequest struct {
type ApiRejectAccessRequestRequest struct {
ctx context.Context
ApiService *AccessRequestApprovalsApiService
approvalId string
@@ -954,26 +954,26 @@ type ApiRejectRequestRequest struct {
}
// Reviewer&#39;s comment.
func (r ApiRejectRequestRequest) CommentDto(commentDto CommentDto) ApiRejectRequestRequest {
func (r ApiRejectAccessRequestRequest) CommentDto(commentDto CommentDto) ApiRejectAccessRequestRequest {
r.commentDto = &commentDto
return r
}
func (r ApiRejectRequestRequest) Execute() (map[string]interface{}, *http.Response, error) {
return r.ApiService.RejectRequestExecute(r)
func (r ApiRejectAccessRequestRequest) Execute() (map[string]interface{}, *http.Response, error) {
return r.ApiService.RejectAccessRequestExecute(r)
}
/*
RejectRequest Rejects an access request approval.
RejectAccessRequest Rejects an access request approval.
This endpoint rejects an access request approval. Only the owner of the approval and admin users are allowed to perform this action.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param approvalId The id of the approval.
@return ApiRejectRequestRequest
@return ApiRejectAccessRequestRequest
*/
func (a *AccessRequestApprovalsApiService) RejectRequest(ctx context.Context, approvalId string) ApiRejectRequestRequest {
return ApiRejectRequestRequest{
func (a *AccessRequestApprovalsApiService) RejectAccessRequest(ctx context.Context, approvalId string) ApiRejectAccessRequestRequest {
return ApiRejectAccessRequestRequest{
ApiService: a,
ctx: ctx,
approvalId: approvalId,
@@ -982,7 +982,7 @@ func (a *AccessRequestApprovalsApiService) RejectRequest(ctx context.Context, ap
// Execute executes the request
// @return map[string]interface{}
func (a *AccessRequestApprovalsApiService) RejectRequestExecute(r ApiRejectRequestRequest) (map[string]interface{}, *http.Response, error) {
func (a *AccessRequestApprovalsApiService) RejectAccessRequestExecute(r ApiRejectAccessRequestRequest) (map[string]interface{}, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
@@ -990,7 +990,7 @@ func (a *AccessRequestApprovalsApiService) RejectRequestExecute(r ApiRejectReque
localVarReturnValue map[string]interface{}
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AccessRequestApprovalsApiService.RejectRequest")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AccessRequestApprovalsApiService.RejectAccessRequest")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"
@@ -537,6 +537,338 @@ func (a *AccountsApiService) DisableAccountExecute(r ApiDisableAccountRequest) (
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiDisableAccountForIdentityRequest struct {
ctx context.Context
ApiService *AccountsApiService
id string
}
func (r ApiDisableAccountForIdentityRequest) Execute() (map[string]interface{}, *http.Response, error) {
return r.ApiService.DisableAccountForIdentityExecute(r)
}
/*
DisableAccountForIdentity Disable IDN Account for Identity
This API submits a task to disable IDN account for a single identity.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The identity id.
@return ApiDisableAccountForIdentityRequest
*/
func (a *AccountsApiService) DisableAccountForIdentity(ctx context.Context, id string) ApiDisableAccountForIdentityRequest {
return ApiDisableAccountForIdentityRequest{
ApiService: a,
ctx: ctx,
id: id,
}
}
// Execute executes the request
// @return map[string]interface{}
func (a *AccountsApiService) DisableAccountForIdentityExecute(r ApiDisableAccountForIdentityRequest) (map[string]interface{}, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue map[string]interface{}
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AccountsApiService.DisableAccountForIdentity")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/identities-accounts/{id}/disable"
localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1)
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
if localVarHTTPContentType != "" {
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := []string{"application/json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return localVarReturnValue, nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
return localVarReturnValue, localVarHTTPResponse, err
}
localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body.Close()
localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody))
if err != nil {
return localVarReturnValue, localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 400 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 401 {
var v ListAccessProfiles401Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 403 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 404 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 429 {
var v ListAccessProfiles429Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 500 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: err.Error(),
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiDisableAccountsForIdentitiesRequest struct {
ctx context.Context
ApiService *AccountsApiService
identitiesAccountsBulkRequest *IdentitiesAccountsBulkRequest
}
func (r ApiDisableAccountsForIdentitiesRequest) IdentitiesAccountsBulkRequest(identitiesAccountsBulkRequest IdentitiesAccountsBulkRequest) ApiDisableAccountsForIdentitiesRequest {
r.identitiesAccountsBulkRequest = &identitiesAccountsBulkRequest
return r
}
func (r ApiDisableAccountsForIdentitiesRequest) Execute() ([]BulkIdentitiesAccountsResponse, *http.Response, error) {
return r.ApiService.DisableAccountsForIdentitiesExecute(r)
}
/*
DisableAccountsForIdentities Disable IDN Accounts for Identities
This API submits tasks to disable IDN account for each identity provided in the request body.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiDisableAccountsForIdentitiesRequest
*/
func (a *AccountsApiService) DisableAccountsForIdentities(ctx context.Context) ApiDisableAccountsForIdentitiesRequest {
return ApiDisableAccountsForIdentitiesRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
// @return []BulkIdentitiesAccountsResponse
func (a *AccountsApiService) DisableAccountsForIdentitiesExecute(r ApiDisableAccountsForIdentitiesRequest) ([]BulkIdentitiesAccountsResponse, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue []BulkIdentitiesAccountsResponse
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AccountsApiService.DisableAccountsForIdentities")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/identities-accounts/disable"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if r.identitiesAccountsBulkRequest == nil {
return localVarReturnValue, nil, reportError("identitiesAccountsBulkRequest is required and must be specified")
}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{"application/json"}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
if localVarHTTPContentType != "" {
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := []string{"application/json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
localVarPostBody = r.identitiesAccountsBulkRequest
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return localVarReturnValue, nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
return localVarReturnValue, localVarHTTPResponse, err
}
localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body.Close()
localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody))
if err != nil {
return localVarReturnValue, localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 400 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 401 {
var v ListAccessProfiles401Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 403 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 429 {
var v ListAccessProfiles429Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 500 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: err.Error(),
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiEnableAccountRequest struct {
ctx context.Context
ApiService *AccountsApiService
@@ -717,6 +1049,338 @@ func (a *AccountsApiService) EnableAccountExecute(r ApiEnableAccountRequest) (*A
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiEnableAccountForIdentityRequest struct {
ctx context.Context
ApiService *AccountsApiService
id string
}
func (r ApiEnableAccountForIdentityRequest) Execute() (map[string]interface{}, *http.Response, error) {
return r.ApiService.EnableAccountForIdentityExecute(r)
}
/*
EnableAccountForIdentity Enable IDN Account for Identity
This API submits a task to enable IDN account for a single identity.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The identity id.
@return ApiEnableAccountForIdentityRequest
*/
func (a *AccountsApiService) EnableAccountForIdentity(ctx context.Context, id string) ApiEnableAccountForIdentityRequest {
return ApiEnableAccountForIdentityRequest{
ApiService: a,
ctx: ctx,
id: id,
}
}
// Execute executes the request
// @return map[string]interface{}
func (a *AccountsApiService) EnableAccountForIdentityExecute(r ApiEnableAccountForIdentityRequest) (map[string]interface{}, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue map[string]interface{}
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AccountsApiService.EnableAccountForIdentity")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/identities-accounts/{id}/enable"
localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1)
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
if localVarHTTPContentType != "" {
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := []string{"application/json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return localVarReturnValue, nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
return localVarReturnValue, localVarHTTPResponse, err
}
localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body.Close()
localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody))
if err != nil {
return localVarReturnValue, localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 400 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 401 {
var v ListAccessProfiles401Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 403 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 404 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 429 {
var v ListAccessProfiles429Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 500 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: err.Error(),
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiEnableAccountsForIdentitiesRequest struct {
ctx context.Context
ApiService *AccountsApiService
identitiesAccountsBulkRequest *IdentitiesAccountsBulkRequest
}
func (r ApiEnableAccountsForIdentitiesRequest) IdentitiesAccountsBulkRequest(identitiesAccountsBulkRequest IdentitiesAccountsBulkRequest) ApiEnableAccountsForIdentitiesRequest {
r.identitiesAccountsBulkRequest = &identitiesAccountsBulkRequest
return r
}
func (r ApiEnableAccountsForIdentitiesRequest) Execute() ([]BulkIdentitiesAccountsResponse, *http.Response, error) {
return r.ApiService.EnableAccountsForIdentitiesExecute(r)
}
/*
EnableAccountsForIdentities Enable IDN Accounts for Identities
This API submits tasks to enable IDN account for each identity provided in the request body.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiEnableAccountsForIdentitiesRequest
*/
func (a *AccountsApiService) EnableAccountsForIdentities(ctx context.Context) ApiEnableAccountsForIdentitiesRequest {
return ApiEnableAccountsForIdentitiesRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
// @return []BulkIdentitiesAccountsResponse
func (a *AccountsApiService) EnableAccountsForIdentitiesExecute(r ApiEnableAccountsForIdentitiesRequest) ([]BulkIdentitiesAccountsResponse, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue []BulkIdentitiesAccountsResponse
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AccountsApiService.EnableAccountsForIdentities")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/identities-accounts/enable"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if r.identitiesAccountsBulkRequest == nil {
return localVarReturnValue, nil, reportError("identitiesAccountsBulkRequest is required and must be specified")
}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{"application/json"}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
if localVarHTTPContentType != "" {
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := []string{"application/json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
localVarPostBody = r.identitiesAccountsBulkRequest
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return localVarReturnValue, nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
return localVarReturnValue, localVarHTTPResponse, err
}
localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body.Close()
localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody))
if err != nil {
return localVarReturnValue, localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 400 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 401 {
var v ListAccessProfiles401Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 403 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 429 {
var v ListAccessProfiles429Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 500 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: err.Error(),
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiGetAccountRequest struct {
ctx context.Context
ApiService *AccountsApiService

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"
@@ -201,185 +201,6 @@ func (a *CertificationCampaignsApiService) ActivateCampaignExecute(r ApiActivate
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiAdminReassignRequest struct {
ctx context.Context
ApiService *CertificationCampaignsApiService
id string
adminReviewReassign *AdminReviewReassign
}
func (r ApiAdminReassignRequest) AdminReviewReassign(adminReviewReassign AdminReviewReassign) ApiAdminReassignRequest {
r.adminReviewReassign = &adminReviewReassign
return r
}
func (r ApiAdminReassignRequest) Execute() (*CertificationTask, *http.Response, error) {
return r.ApiService.AdminReassignExecute(r)
}
/*
AdminReassign Reassign Certifications
This API reassigns the specified certifications from one identity to another. A token with ORG_ADMIN or CERT_ADMIN authority is required to call this API.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The certification campaign ID
@return ApiAdminReassignRequest
*/
func (a *CertificationCampaignsApiService) AdminReassign(ctx context.Context, id string) ApiAdminReassignRequest {
return ApiAdminReassignRequest{
ApiService: a,
ctx: ctx,
id: id,
}
}
// Execute executes the request
// @return CertificationTask
func (a *CertificationCampaignsApiService) AdminReassignExecute(r ApiAdminReassignRequest) (*CertificationTask, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CertificationTask
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CertificationCampaignsApiService.AdminReassign")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/campaigns/{id}/reassign"
localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1)
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if r.adminReviewReassign == nil {
return localVarReturnValue, nil, reportError("adminReviewReassign is required and must be specified")
}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{"application/json"}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
if localVarHTTPContentType != "" {
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := []string{"application/json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
localVarPostBody = r.adminReviewReassign
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return localVarReturnValue, nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
return localVarReturnValue, localVarHTTPResponse, err
}
localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body.Close()
localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody))
if err != nil {
return localVarReturnValue, localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 400 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 401 {
var v ListAccessProfiles401Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 403 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 404 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 429 {
var v ListAccessProfiles429Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 500 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: err.Error(),
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiCompleteCampaignRequest struct {
ctx context.Context
ApiService *CertificationCampaignsApiService
@@ -981,6 +802,17 @@ func (a *CertificationCampaignsApiService) DeleteCampaignTemplateExecute(r ApiDe
body: localVarBody,
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 400 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 404 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
@@ -2294,6 +2126,17 @@ func (a *CertificationCampaignsApiService) GetCampaignTemplateExecute(r ApiGetCa
body: localVarBody,
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 400 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 401 {
var v ListAccessProfiles401Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
@@ -2728,7 +2571,7 @@ type ApiPatchCampaignTemplateRequest struct {
requestBody *[]map[string]interface{}
}
// A list of campaign update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * ownerRef * deadlineDuration * campaign (all fields that are allowed during create)
// A list of campaign update operations according to the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. The following fields are patchable: * name * description * deadlineDuration * campaign (all fields that are allowed during create)
func (r ApiPatchCampaignTemplateRequest) RequestBody(requestBody []map[string]interface{}) ApiPatchCampaignTemplateRequest {
r.requestBody = &requestBody
return r
@@ -2901,6 +2744,185 @@ func (a *CertificationCampaignsApiService) PatchCampaignTemplateExecute(r ApiPat
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiReassignCampaignRequest struct {
ctx context.Context
ApiService *CertificationCampaignsApiService
id string
adminReviewReassign *AdminReviewReassign
}
func (r ApiReassignCampaignRequest) AdminReviewReassign(adminReviewReassign AdminReviewReassign) ApiReassignCampaignRequest {
r.adminReviewReassign = &adminReviewReassign
return r
}
func (r ApiReassignCampaignRequest) Execute() (*CertificationTask, *http.Response, error) {
return r.ApiService.ReassignCampaignExecute(r)
}
/*
ReassignCampaign Reassign Certifications
This API reassigns the specified certifications from one identity to another. A token with ORG_ADMIN or CERT_ADMIN authority is required to call this API.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The certification campaign ID
@return ApiReassignCampaignRequest
*/
func (a *CertificationCampaignsApiService) ReassignCampaign(ctx context.Context, id string) ApiReassignCampaignRequest {
return ApiReassignCampaignRequest{
ApiService: a,
ctx: ctx,
id: id,
}
}
// Execute executes the request
// @return CertificationTask
func (a *CertificationCampaignsApiService) ReassignCampaignExecute(r ApiReassignCampaignRequest) (*CertificationTask, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *CertificationTask
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CertificationCampaignsApiService.ReassignCampaign")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/campaigns/{id}/reassign"
localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1)
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if r.adminReviewReassign == nil {
return localVarReturnValue, nil, reportError("adminReviewReassign is required and must be specified")
}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{"application/json"}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
if localVarHTTPContentType != "" {
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := []string{"application/json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
localVarPostBody = r.adminReviewReassign
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return localVarReturnValue, nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
return localVarReturnValue, localVarHTTPResponse, err
}
localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body.Close()
localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody))
if err != nil {
return localVarReturnValue, localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 400 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 401 {
var v ListAccessProfiles401Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 403 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 404 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 429 {
var v ListAccessProfiles429Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 500 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: err.Error(),
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiRunCampaignRemediationScanRequest struct {
ctx context.Context
ApiService *CertificationCampaignsApiService

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"
@@ -575,7 +575,7 @@ func (a *CertificationsApiService) GetIdentityCertificationTaskStatusExecute(r A
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiListReviewersRequest struct {
type ApiListCertificationReviewersRequest struct {
ctx context.Context
ApiService *CertificationsApiService
id string
@@ -587,50 +587,50 @@ type ApiListReviewersRequest struct {
}
// Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiListReviewersRequest) Limit(limit int32) ApiListReviewersRequest {
func (r ApiListCertificationReviewersRequest) Limit(limit int32) ApiListCertificationReviewersRequest {
r.limit = &limit
return r
}
// Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiListReviewersRequest) Offset(offset int32) ApiListReviewersRequest {
func (r ApiListCertificationReviewersRequest) Offset(offset int32) ApiListCertificationReviewersRequest {
r.offset = &offset
return r
}
// If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count&#x3D;true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiListReviewersRequest) Count(count bool) ApiListReviewersRequest {
func (r ApiListCertificationReviewersRequest) Count(count bool) ApiListCertificationReviewersRequest {
r.count = &count
return r
}
// Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators (Filtering is done by reviewer&#39;s fields): **id**: *eq, in* **name**: *eq, sw* **email**: *eq, sw*
func (r ApiListReviewersRequest) Filters(filters string) ApiListReviewersRequest {
func (r ApiListCertificationReviewersRequest) Filters(filters string) ApiListCertificationReviewersRequest {
r.filters = &filters
return r
}
// Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, email**
func (r ApiListReviewersRequest) Sorters(sorters string) ApiListReviewersRequest {
func (r ApiListCertificationReviewersRequest) Sorters(sorters string) ApiListCertificationReviewersRequest {
r.sorters = &sorters
return r
}
func (r ApiListReviewersRequest) Execute() ([]IdentityReferenceWithNameAndEmail, *http.Response, error) {
return r.ApiService.ListReviewersExecute(r)
func (r ApiListCertificationReviewersRequest) Execute() ([]IdentityReferenceWithNameAndEmail, *http.Response, error) {
return r.ApiService.ListCertificationReviewersExecute(r)
}
/*
ListReviewers List of Reviewers for the certification
ListCertificationReviewers List of Reviewers for the certification
This API returns a list of reviewers for the certification. A token with ORG_ADMIN or CERT_ADMIN authority is required to call this API. Reviewers for this certification can also call this API.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The certification ID
@return ApiListReviewersRequest
@return ApiListCertificationReviewersRequest
*/
func (a *CertificationsApiService) ListReviewers(ctx context.Context, id string) ApiListReviewersRequest {
return ApiListReviewersRequest{
func (a *CertificationsApiService) ListCertificationReviewers(ctx context.Context, id string) ApiListCertificationReviewersRequest {
return ApiListCertificationReviewersRequest{
ApiService: a,
ctx: ctx,
id: id,
@@ -639,7 +639,7 @@ func (a *CertificationsApiService) ListReviewers(ctx context.Context, id string)
// Execute executes the request
// @return []IdentityReferenceWithNameAndEmail
func (a *CertificationsApiService) ListReviewersExecute(r ApiListReviewersRequest) ([]IdentityReferenceWithNameAndEmail, *http.Response, error) {
func (a *CertificationsApiService) ListCertificationReviewersExecute(r ApiListCertificationReviewersRequest) ([]IdentityReferenceWithNameAndEmail, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -647,7 +647,7 @@ func (a *CertificationsApiService) ListReviewersExecute(r ApiListReviewersReques
localVarReturnValue []IdentityReferenceWithNameAndEmail
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CertificationsApiService.ListReviewers")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CertificationsApiService.ListCertificationReviewers")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"
@@ -23,165 +23,6 @@ import (
// EntitlementsApiService EntitlementsApi service
type EntitlementsApiService service
type ApiEntitlementsBulkUpdateRequest struct {
ctx context.Context
ApiService *EntitlementsApiService
entitlementBulkUpdateRequest *EntitlementBulkUpdateRequest
}
func (r ApiEntitlementsBulkUpdateRequest) EntitlementBulkUpdateRequest(entitlementBulkUpdateRequest EntitlementBulkUpdateRequest) ApiEntitlementsBulkUpdateRequest {
r.entitlementBulkUpdateRequest = &entitlementBulkUpdateRequest
return r
}
func (r ApiEntitlementsBulkUpdateRequest) Execute() (*http.Response, error) {
return r.ApiService.EntitlementsBulkUpdateExecute(r)
}
/*
EntitlementsBulkUpdate Bulk update an entitlement list
This API applies an update to every entitlement of the list.
The number of entitlements to update is limited to 50 items maximum.
The JsonPatch update follows the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. allowed operations : **{ "op": "replace", "path": "/privileged", "value": boolean }** **{ "op": "replace", "path": "/requestable","value": boolean }**
A token with ORG_ADMIN or API authority is required to call this API.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiEntitlementsBulkUpdateRequest
*/
func (a *EntitlementsApiService) EntitlementsBulkUpdate(ctx context.Context) ApiEntitlementsBulkUpdateRequest {
return ApiEntitlementsBulkUpdateRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
func (a *EntitlementsApiService) EntitlementsBulkUpdateExecute(r ApiEntitlementsBulkUpdateRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EntitlementsApiService.EntitlementsBulkUpdate")
if err != nil {
return nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/entitlements/bulk-update"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if r.entitlementBulkUpdateRequest == nil {
return nil, reportError("entitlementBulkUpdateRequest is required and must be specified")
}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{"application/json"}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
if localVarHTTPContentType != "" {
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := []string{"application/json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
localVarPostBody = r.entitlementBulkUpdateRequest
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
return localVarHTTPResponse, err
}
localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body.Close()
localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody))
if err != nil {
return localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 400 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 401 {
var v ListAccessProfiles401Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 403 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 429 {
var v ListAccessProfiles429Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 500 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
}
return localVarHTTPResponse, newErr
}
return localVarHTTPResponse, nil
}
type ApiGetEntitlementRequest struct {
ctx context.Context
ApiService *EntitlementsApiService
@@ -350,6 +191,204 @@ func (a *EntitlementsApiService) GetEntitlementExecute(r ApiGetEntitlementReques
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiListEntitlementChildrenRequest struct {
ctx context.Context
ApiService *EntitlementsApiService
id string
limit *int32
offset *int32
count *bool
}
// Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiListEntitlementChildrenRequest) Limit(limit int32) ApiListEntitlementChildrenRequest {
r.limit = &limit
return r
}
// Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiListEntitlementChildrenRequest) Offset(offset int32) ApiListEntitlementChildrenRequest {
r.offset = &offset
return r
}
// If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count&#x3D;true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiListEntitlementChildrenRequest) Count(count bool) ApiListEntitlementChildrenRequest {
r.count = &count
return r
}
func (r ApiListEntitlementChildrenRequest) Execute() ([]Entitlement, *http.Response, error) {
return r.ApiService.ListEntitlementChildrenExecute(r)
}
/*
ListEntitlementChildren List of entitlements children
This API returns a list of all child entitlements of a given entitlement.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id Entitlement Id
@return ApiListEntitlementChildrenRequest
*/
func (a *EntitlementsApiService) ListEntitlementChildren(ctx context.Context, id string) ApiListEntitlementChildrenRequest {
return ApiListEntitlementChildrenRequest{
ApiService: a,
ctx: ctx,
id: id,
}
}
// Execute executes the request
// @return []Entitlement
func (a *EntitlementsApiService) ListEntitlementChildrenExecute(r ApiListEntitlementChildrenRequest) ([]Entitlement, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue []Entitlement
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EntitlementsApiService.ListEntitlementChildren")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/entitlements/{id}/children"
localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1)
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if r.limit != nil {
localVarQueryParams.Add("limit", parameterToString(*r.limit, ""))
}
if r.offset != nil {
localVarQueryParams.Add("offset", parameterToString(*r.offset, ""))
}
if r.count != nil {
localVarQueryParams.Add("count", parameterToString(*r.count, ""))
}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
if localVarHTTPContentType != "" {
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := []string{"application/json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return localVarReturnValue, nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
return localVarReturnValue, localVarHTTPResponse, err
}
localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body.Close()
localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody))
if err != nil {
return localVarReturnValue, localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 400 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 401 {
var v ListAccessProfiles401Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 403 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 404 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 429 {
var v ListAccessProfiles429Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 500 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: err.Error(),
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiListEntitlementParentsRequest struct {
ctx context.Context
ApiService *EntitlementsApiService
@@ -548,204 +587,6 @@ func (a *EntitlementsApiService) ListEntitlementParentsExecute(r ApiListEntitlem
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiListEntitlementchildrenRequest struct {
ctx context.Context
ApiService *EntitlementsApiService
id string
limit *int32
offset *int32
count *bool
}
// Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiListEntitlementchildrenRequest) Limit(limit int32) ApiListEntitlementchildrenRequest {
r.limit = &limit
return r
}
// Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiListEntitlementchildrenRequest) Offset(offset int32) ApiListEntitlementchildrenRequest {
r.offset = &offset
return r
}
// If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count&#x3D;true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiListEntitlementchildrenRequest) Count(count bool) ApiListEntitlementchildrenRequest {
r.count = &count
return r
}
func (r ApiListEntitlementchildrenRequest) Execute() ([]Entitlement, *http.Response, error) {
return r.ApiService.ListEntitlementchildrenExecute(r)
}
/*
ListEntitlementchildren List of entitlements children
This API returns a list of all child entitlements of a given entitlement.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id Entitlement Id
@return ApiListEntitlementchildrenRequest
*/
func (a *EntitlementsApiService) ListEntitlementchildren(ctx context.Context, id string) ApiListEntitlementchildrenRequest {
return ApiListEntitlementchildrenRequest{
ApiService: a,
ctx: ctx,
id: id,
}
}
// Execute executes the request
// @return []Entitlement
func (a *EntitlementsApiService) ListEntitlementchildrenExecute(r ApiListEntitlementchildrenRequest) ([]Entitlement, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue []Entitlement
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EntitlementsApiService.ListEntitlementchildren")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/entitlements/{id}/children"
localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1)
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if r.limit != nil {
localVarQueryParams.Add("limit", parameterToString(*r.limit, ""))
}
if r.offset != nil {
localVarQueryParams.Add("offset", parameterToString(*r.offset, ""))
}
if r.count != nil {
localVarQueryParams.Add("count", parameterToString(*r.count, ""))
}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
if localVarHTTPContentType != "" {
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := []string{"application/json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return localVarReturnValue, nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
return localVarReturnValue, localVarHTTPResponse, err
}
localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body.Close()
localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody))
if err != nil {
return localVarReturnValue, localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 400 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 401 {
var v ListAccessProfiles401Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 403 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 404 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 429 {
var v ListAccessProfiles429Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 500 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: err.Error(),
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiListEntitlementsRequest struct {
ctx context.Context
ApiService *EntitlementsApiService
@@ -1172,3 +1013,162 @@ func (a *EntitlementsApiService) PatchEntitlementExecute(r ApiPatchEntitlementRe
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiUpdateEntitlementsInBulkRequest struct {
ctx context.Context
ApiService *EntitlementsApiService
entitlementBulkUpdateRequest *EntitlementBulkUpdateRequest
}
func (r ApiUpdateEntitlementsInBulkRequest) EntitlementBulkUpdateRequest(entitlementBulkUpdateRequest EntitlementBulkUpdateRequest) ApiUpdateEntitlementsInBulkRequest {
r.entitlementBulkUpdateRequest = &entitlementBulkUpdateRequest
return r
}
func (r ApiUpdateEntitlementsInBulkRequest) Execute() (*http.Response, error) {
return r.ApiService.UpdateEntitlementsInBulkExecute(r)
}
/*
UpdateEntitlementsInBulk Bulk update an entitlement list
This API applies an update to every entitlement of the list.
The number of entitlements to update is limited to 50 items maximum.
The JsonPatch update follows the [JSON Patch](https://tools.ietf.org/html/rfc6902) standard. allowed operations : **{ "op": "replace", "path": "/privileged", "value": boolean }** **{ "op": "replace", "path": "/requestable","value": boolean }**
A token with ORG_ADMIN or API authority is required to call this API.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiUpdateEntitlementsInBulkRequest
*/
func (a *EntitlementsApiService) UpdateEntitlementsInBulk(ctx context.Context) ApiUpdateEntitlementsInBulkRequest {
return ApiUpdateEntitlementsInBulkRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
func (a *EntitlementsApiService) UpdateEntitlementsInBulkExecute(r ApiUpdateEntitlementsInBulkRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "EntitlementsApiService.UpdateEntitlementsInBulk")
if err != nil {
return nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/entitlements/bulk-update"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if r.entitlementBulkUpdateRequest == nil {
return nil, reportError("entitlementBulkUpdateRequest is required and must be specified")
}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{"application/json"}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
if localVarHTTPContentType != "" {
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := []string{"application/json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
localVarPostBody = r.entitlementBulkUpdateRequest
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
return localVarHTTPResponse, err
}
localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body.Close()
localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody))
if err != nil {
return localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 400 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 401 {
var v ListAccessProfiles401Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 403 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 429 {
var v ListAccessProfiles429Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 500 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
}
return localVarHTTPResponse, newErr
}
return localVarHTTPResponse, nil
}

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"
@@ -23,229 +23,6 @@ import (
// IAIAccessRequestRecommendationsApiService IAIAccessRequestRecommendationsApi service
type IAIAccessRequestRecommendationsApiService service
type ApiAccessRequestRecommendationsRequest struct {
ctx context.Context
ApiService *IAIAccessRequestRecommendationsApiService
identityId *string
limit *int32
offset *int32
count *bool
includeTranslationMessages *bool
filters *string
sorters *string
}
// Get access request recommendations for an identityId. *me* indicates the current user.
func (r ApiAccessRequestRecommendationsRequest) IdentityId(identityId string) ApiAccessRequestRecommendationsRequest {
r.identityId = &identityId
return r
}
// Max number of results to return.
func (r ApiAccessRequestRecommendationsRequest) Limit(limit int32) ApiAccessRequestRecommendationsRequest {
r.limit = &limit
return r
}
// Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiAccessRequestRecommendationsRequest) Offset(offset int32) ApiAccessRequestRecommendationsRequest {
r.offset = &offset
return r
}
// If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count&#x3D;true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiAccessRequestRecommendationsRequest) Count(count bool) ApiAccessRequestRecommendationsRequest {
r.count = &count
return r
}
// If *true* it will populate a list of translation messages in the response.
func (r ApiAccessRequestRecommendationsRequest) IncludeTranslationMessages(includeTranslationMessages bool) ApiAccessRequestRecommendationsRequest {
r.includeTranslationMessages = &includeTranslationMessages
return r
}
// Filter recommendations using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **access.name**: *co* **access.type**: *eq, in* **access.description**: *co*
func (r ApiAccessRequestRecommendationsRequest) Filters(filters string) ApiAccessRequestRecommendationsRequest {
r.filters = &filters
return r
}
// Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.name, access.type** By default the recommendations are sorted by highest confidence first.
func (r ApiAccessRequestRecommendationsRequest) Sorters(sorters string) ApiAccessRequestRecommendationsRequest {
r.sorters = &sorters
return r
}
func (r ApiAccessRequestRecommendationsRequest) Execute() ([]AccessRequestRecommendationItemDetail, *http.Response, error) {
return r.ApiService.AccessRequestRecommendationsExecute(r)
}
/*
AccessRequestRecommendations Identity Access Request Recommendations
This API returns the access request recommendations for the specified identity. The default identity is *me* which indicates the current user.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiAccessRequestRecommendationsRequest
*/
func (a *IAIAccessRequestRecommendationsApiService) AccessRequestRecommendations(ctx context.Context) ApiAccessRequestRecommendationsRequest {
return ApiAccessRequestRecommendationsRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
// @return []AccessRequestRecommendationItemDetail
func (a *IAIAccessRequestRecommendationsApiService) AccessRequestRecommendationsExecute(r ApiAccessRequestRecommendationsRequest) ([]AccessRequestRecommendationItemDetail, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue []AccessRequestRecommendationItemDetail
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IAIAccessRequestRecommendationsApiService.AccessRequestRecommendations")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/ai-access-request-recommendations"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if r.identityId != nil {
localVarQueryParams.Add("identity-id", parameterToString(*r.identityId, ""))
}
if r.limit != nil {
localVarQueryParams.Add("limit", parameterToString(*r.limit, ""))
}
if r.offset != nil {
localVarQueryParams.Add("offset", parameterToString(*r.offset, ""))
}
if r.count != nil {
localVarQueryParams.Add("count", parameterToString(*r.count, ""))
}
if r.includeTranslationMessages != nil {
localVarQueryParams.Add("include-translation-messages", parameterToString(*r.includeTranslationMessages, ""))
}
if r.filters != nil {
localVarQueryParams.Add("filters", parameterToString(*r.filters, ""))
}
if r.sorters != nil {
localVarQueryParams.Add("sorters", parameterToString(*r.sorters, ""))
}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
if localVarHTTPContentType != "" {
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := []string{"application/json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return localVarReturnValue, nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
return localVarReturnValue, localVarHTTPResponse, err
}
localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body.Close()
localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody))
if err != nil {
return localVarReturnValue, localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 400 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 401 {
var v ListAccessProfiles401Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 403 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 429 {
var v ListAccessProfiles429Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 500 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: err.Error(),
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiAddAccessRequestRecommendationsIgnoredItemRequest struct {
ctx context.Context
ApiService *IAIAccessRequestRecommendationsApiService
@@ -906,6 +683,229 @@ func (a *IAIAccessRequestRecommendationsApiService) AddAccessRequestRecommendati
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiGetAccessRequestRecommendationsRequest struct {
ctx context.Context
ApiService *IAIAccessRequestRecommendationsApiService
identityId *string
limit *int32
offset *int32
count *bool
includeTranslationMessages *bool
filters *string
sorters *string
}
// Get access request recommendations for an identityId. *me* indicates the current user.
func (r ApiGetAccessRequestRecommendationsRequest) IdentityId(identityId string) ApiGetAccessRequestRecommendationsRequest {
r.identityId = &identityId
return r
}
// Max number of results to return.
func (r ApiGetAccessRequestRecommendationsRequest) Limit(limit int32) ApiGetAccessRequestRecommendationsRequest {
r.limit = &limit
return r
}
// Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiGetAccessRequestRecommendationsRequest) Offset(offset int32) ApiGetAccessRequestRecommendationsRequest {
r.offset = &offset
return r
}
// If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count&#x3D;true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiGetAccessRequestRecommendationsRequest) Count(count bool) ApiGetAccessRequestRecommendationsRequest {
r.count = &count
return r
}
// If *true* it will populate a list of translation messages in the response.
func (r ApiGetAccessRequestRecommendationsRequest) IncludeTranslationMessages(includeTranslationMessages bool) ApiGetAccessRequestRecommendationsRequest {
r.includeTranslationMessages = &includeTranslationMessages
return r
}
// Filter recommendations using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **access.name**: *co* **access.type**: *eq, in* **access.description**: *co*
func (r ApiGetAccessRequestRecommendationsRequest) Filters(filters string) ApiGetAccessRequestRecommendationsRequest {
r.filters = &filters
return r
}
// Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **access.name, access.type** By default the recommendations are sorted by highest confidence first.
func (r ApiGetAccessRequestRecommendationsRequest) Sorters(sorters string) ApiGetAccessRequestRecommendationsRequest {
r.sorters = &sorters
return r
}
func (r ApiGetAccessRequestRecommendationsRequest) Execute() ([]AccessRequestRecommendationItemDetail, *http.Response, error) {
return r.ApiService.GetAccessRequestRecommendationsExecute(r)
}
/*
GetAccessRequestRecommendations Identity Access Request Recommendations
This API returns the access request recommendations for the specified identity. The default identity is *me* which indicates the current user.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetAccessRequestRecommendationsRequest
*/
func (a *IAIAccessRequestRecommendationsApiService) GetAccessRequestRecommendations(ctx context.Context) ApiGetAccessRequestRecommendationsRequest {
return ApiGetAccessRequestRecommendationsRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
// @return []AccessRequestRecommendationItemDetail
func (a *IAIAccessRequestRecommendationsApiService) GetAccessRequestRecommendationsExecute(r ApiGetAccessRequestRecommendationsRequest) ([]AccessRequestRecommendationItemDetail, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue []AccessRequestRecommendationItemDetail
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IAIAccessRequestRecommendationsApiService.GetAccessRequestRecommendations")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/ai-access-request-recommendations"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if r.identityId != nil {
localVarQueryParams.Add("identity-id", parameterToString(*r.identityId, ""))
}
if r.limit != nil {
localVarQueryParams.Add("limit", parameterToString(*r.limit, ""))
}
if r.offset != nil {
localVarQueryParams.Add("offset", parameterToString(*r.offset, ""))
}
if r.count != nil {
localVarQueryParams.Add("count", parameterToString(*r.count, ""))
}
if r.includeTranslationMessages != nil {
localVarQueryParams.Add("include-translation-messages", parameterToString(*r.includeTranslationMessages, ""))
}
if r.filters != nil {
localVarQueryParams.Add("filters", parameterToString(*r.filters, ""))
}
if r.sorters != nil {
localVarQueryParams.Add("sorters", parameterToString(*r.sorters, ""))
}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
if localVarHTTPContentType != "" {
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := []string{"application/json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return localVarReturnValue, nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
return localVarReturnValue, localVarHTTPResponse, err
}
localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body.Close()
localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody))
if err != nil {
return localVarReturnValue, localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 400 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 401 {
var v ListAccessProfiles401Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 403 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 429 {
var v ListAccessProfiles429Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 500 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: err.Error(),
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiGetAccessRequestRecommendationsIgnoredItemsRequest struct {
ctx context.Context
ApiService *IAIAccessRequestRecommendationsApiService

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"
@@ -22,171 +22,6 @@ import (
// IAICommonAccessApiService IAICommonAccessApi service
type IAICommonAccessApiService service
type ApiCommonAccessBulkUpdateStatusRequest struct {
ctx context.Context
ApiService *IAICommonAccessApiService
commonAccessIDStatus *[]CommonAccessIDStatus
}
// Confirm or deny in bulk the common access ids that are (or aren&#39;t) common access
func (r ApiCommonAccessBulkUpdateStatusRequest) CommonAccessIDStatus(commonAccessIDStatus []CommonAccessIDStatus) ApiCommonAccessBulkUpdateStatusRequest {
r.commonAccessIDStatus = &commonAccessIDStatus
return r
}
func (r ApiCommonAccessBulkUpdateStatusRequest) Execute() (map[string]interface{}, *http.Response, error) {
return r.ApiService.CommonAccessBulkUpdateStatusExecute(r)
}
/*
CommonAccessBulkUpdateStatus Bulk update common access status
This submits an update request to the common access application. At this time there are no parameters. Requires authorization scope of iai:access-modeling:update
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCommonAccessBulkUpdateStatusRequest
*/
func (a *IAICommonAccessApiService) CommonAccessBulkUpdateStatus(ctx context.Context) ApiCommonAccessBulkUpdateStatusRequest {
return ApiCommonAccessBulkUpdateStatusRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
// @return map[string]interface{}
func (a *IAICommonAccessApiService) CommonAccessBulkUpdateStatusExecute(r ApiCommonAccessBulkUpdateStatusRequest) (map[string]interface{}, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue map[string]interface{}
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IAICommonAccessApiService.CommonAccessBulkUpdateStatus")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/common-access/update-status"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if r.commonAccessIDStatus == nil {
return localVarReturnValue, nil, reportError("commonAccessIDStatus is required and must be specified")
}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{"application/json"}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
if localVarHTTPContentType != "" {
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := []string{"application/json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
localVarPostBody = r.commonAccessIDStatus
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return localVarReturnValue, nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
return localVarReturnValue, localVarHTTPResponse, err
}
localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body.Close()
localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody))
if err != nil {
return localVarReturnValue, localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 400 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 401 {
var v ListAccessProfiles401Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 403 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 429 {
var v ListAccessProfiles429Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 500 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: err.Error(),
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiCreateCommonAccessRequest struct {
ctx context.Context
ApiService *IAICommonAccessApiService
@@ -542,3 +377,168 @@ func (a *IAICommonAccessApiService) GetCommonAccessExecute(r ApiGetCommonAccessR
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiUpdateCommonAccessStatusInBulkRequest struct {
ctx context.Context
ApiService *IAICommonAccessApiService
commonAccessIDStatus *[]CommonAccessIDStatus
}
// Confirm or deny in bulk the common access ids that are (or aren&#39;t) common access
func (r ApiUpdateCommonAccessStatusInBulkRequest) CommonAccessIDStatus(commonAccessIDStatus []CommonAccessIDStatus) ApiUpdateCommonAccessStatusInBulkRequest {
r.commonAccessIDStatus = &commonAccessIDStatus
return r
}
func (r ApiUpdateCommonAccessStatusInBulkRequest) Execute() (map[string]interface{}, *http.Response, error) {
return r.ApiService.UpdateCommonAccessStatusInBulkExecute(r)
}
/*
UpdateCommonAccessStatusInBulk Bulk update common access status
This submits an update request to the common access application. At this time there are no parameters. Requires authorization scope of iai:access-modeling:update
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiUpdateCommonAccessStatusInBulkRequest
*/
func (a *IAICommonAccessApiService) UpdateCommonAccessStatusInBulk(ctx context.Context) ApiUpdateCommonAccessStatusInBulkRequest {
return ApiUpdateCommonAccessStatusInBulkRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
// @return map[string]interface{}
func (a *IAICommonAccessApiService) UpdateCommonAccessStatusInBulkExecute(r ApiUpdateCommonAccessStatusInBulkRequest) (map[string]interface{}, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue map[string]interface{}
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IAICommonAccessApiService.UpdateCommonAccessStatusInBulk")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/common-access/update-status"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if r.commonAccessIDStatus == nil {
return localVarReturnValue, nil, reportError("commonAccessIDStatus is required and must be specified")
}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{"application/json"}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
if localVarHTTPContentType != "" {
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := []string{"application/json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
localVarPostBody = r.commonAccessIDStatus
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return localVarReturnValue, nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
return localVarReturnValue, localVarHTTPResponse, err
}
localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body.Close()
localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody))
if err != nil {
return localVarReturnValue, localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 400 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 401 {
var v ListAccessProfiles401Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 403 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 429 {
var v ListAccessProfiles429Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 500 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: err.Error(),
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
return localVarReturnValue, localVarHTTPResponse, nil
}

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"
@@ -188,171 +188,7 @@ func (a *IAIOutliersApiService) ExportOutliersZipExecute(r ApiExportOutliersZipR
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiGetLatestOutlierSnapshotsRequest struct {
ctx context.Context
ApiService *IAIOutliersApiService
type_ *string
}
// Type of the identity outliers snapshot to filter on
func (r ApiGetLatestOutlierSnapshotsRequest) Type_(type_ string) ApiGetLatestOutlierSnapshotsRequest {
r.type_ = &type_
return r
}
func (r ApiGetLatestOutlierSnapshotsRequest) Execute() ([]LatestOutlierSummary, *http.Response, error) {
return r.ApiService.GetLatestOutlierSnapshotsExecute(r)
}
/*
GetLatestOutlierSnapshots IAI Identity Outliers Latest Summary
This API returns a most recent snapshot of each outlier type, each containing: the number of identities that customer has, the number of outliers, and the type of outlier
Requires authorization scope of 'iai:outliers-management:read'
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetLatestOutlierSnapshotsRequest
*/
func (a *IAIOutliersApiService) GetLatestOutlierSnapshots(ctx context.Context) ApiGetLatestOutlierSnapshotsRequest {
return ApiGetLatestOutlierSnapshotsRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
// @return []LatestOutlierSummary
func (a *IAIOutliersApiService) GetLatestOutlierSnapshotsExecute(r ApiGetLatestOutlierSnapshotsRequest) ([]LatestOutlierSummary, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue []LatestOutlierSummary
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IAIOutliersApiService.GetLatestOutlierSnapshots")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/outlier-summaries/latest"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if r.type_ != nil {
localVarQueryParams.Add("type", parameterToString(*r.type_, ""))
}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
if localVarHTTPContentType != "" {
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := []string{"application/json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return localVarReturnValue, nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
return localVarReturnValue, localVarHTTPResponse, err
}
localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body.Close()
localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody))
if err != nil {
return localVarReturnValue, localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 400 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 401 {
var v ListAccessProfiles401Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 403 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 429 {
var v ListAccessProfiles429Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 500 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: err.Error(),
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiGetOutlierSnapshotsRequest struct {
type ApiGetIdentityOutlierSnapshotsRequest struct {
ctx context.Context
ApiService *IAIOutliersApiService
limit *int32
@@ -363,50 +199,50 @@ type ApiGetOutlierSnapshotsRequest struct {
}
// Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiGetOutlierSnapshotsRequest) Limit(limit int32) ApiGetOutlierSnapshotsRequest {
func (r ApiGetIdentityOutlierSnapshotsRequest) Limit(limit int32) ApiGetIdentityOutlierSnapshotsRequest {
r.limit = &limit
return r
}
// Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiGetOutlierSnapshotsRequest) Offset(offset int32) ApiGetOutlierSnapshotsRequest {
func (r ApiGetIdentityOutlierSnapshotsRequest) Offset(offset int32) ApiGetIdentityOutlierSnapshotsRequest {
r.offset = &offset
return r
}
// Type of the identity outliers snapshot to filter on
func (r ApiGetOutlierSnapshotsRequest) Type_(type_ string) ApiGetOutlierSnapshotsRequest {
func (r ApiGetIdentityOutlierSnapshotsRequest) Type_(type_ string) ApiGetIdentityOutlierSnapshotsRequest {
r.type_ = &type_
return r
}
// Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following field and operators: **snapshotDate**: *ge, le*
func (r ApiGetOutlierSnapshotsRequest) Filters(filters string) ApiGetOutlierSnapshotsRequest {
func (r ApiGetIdentityOutlierSnapshotsRequest) Filters(filters string) ApiGetIdentityOutlierSnapshotsRequest {
r.filters = &filters
return r
}
// Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following field: **snapshotDate**
func (r ApiGetOutlierSnapshotsRequest) Sorters(sorters string) ApiGetOutlierSnapshotsRequest {
func (r ApiGetIdentityOutlierSnapshotsRequest) Sorters(sorters string) ApiGetIdentityOutlierSnapshotsRequest {
r.sorters = &sorters
return r
}
func (r ApiGetOutlierSnapshotsRequest) Execute() ([]OutlierSummary, *http.Response, error) {
return r.ApiService.GetOutlierSnapshotsExecute(r)
func (r ApiGetIdentityOutlierSnapshotsRequest) Execute() ([]OutlierSummary, *http.Response, error) {
return r.ApiService.GetIdentityOutlierSnapshotsExecute(r)
}
/*
GetOutlierSnapshots IAI Identity Outliers Summary
GetIdentityOutlierSnapshots IAI Identity Outliers Summary
This API receives a summary containing: the number of identities that customer has, the number of outliers, and the type of outlier
Requires authorization scope of 'iai:outliers-management:read'
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetOutlierSnapshotsRequest
@return ApiGetIdentityOutlierSnapshotsRequest
*/
func (a *IAIOutliersApiService) GetOutlierSnapshots(ctx context.Context) ApiGetOutlierSnapshotsRequest {
return ApiGetOutlierSnapshotsRequest{
func (a *IAIOutliersApiService) GetIdentityOutlierSnapshots(ctx context.Context) ApiGetIdentityOutlierSnapshotsRequest {
return ApiGetIdentityOutlierSnapshotsRequest{
ApiService: a,
ctx: ctx,
}
@@ -414,7 +250,7 @@ func (a *IAIOutliersApiService) GetOutlierSnapshots(ctx context.Context) ApiGetO
// Execute executes the request
// @return []OutlierSummary
func (a *IAIOutliersApiService) GetOutlierSnapshotsExecute(r ApiGetOutlierSnapshotsRequest) ([]OutlierSummary, *http.Response, error) {
func (a *IAIOutliersApiService) GetIdentityOutlierSnapshotsExecute(r ApiGetIdentityOutlierSnapshotsRequest) ([]OutlierSummary, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -422,7 +258,7 @@ func (a *IAIOutliersApiService) GetOutlierSnapshotsExecute(r ApiGetOutlierSnapsh
localVarReturnValue []OutlierSummary
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IAIOutliersApiService.GetOutlierSnapshots")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IAIOutliersApiService.GetIdentityOutlierSnapshots")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -556,7 +392,7 @@ func (a *IAIOutliersApiService) GetOutlierSnapshotsExecute(r ApiGetOutlierSnapsh
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiGetOutliersRequest struct {
type ApiGetIdentityOutliersRequest struct {
ctx context.Context
ApiService *IAIOutliersApiService
limit *int32
@@ -568,56 +404,56 @@ type ApiGetOutliersRequest struct {
}
// Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiGetOutliersRequest) Limit(limit int32) ApiGetOutliersRequest {
func (r ApiGetIdentityOutliersRequest) Limit(limit int32) ApiGetIdentityOutliersRequest {
r.limit = &limit
return r
}
// Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiGetOutliersRequest) Offset(offset int32) ApiGetOutliersRequest {
func (r ApiGetIdentityOutliersRequest) Offset(offset int32) ApiGetIdentityOutliersRequest {
r.offset = &offset
return r
}
// If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count&#x3D;true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiGetOutliersRequest) Count(count bool) ApiGetOutliersRequest {
func (r ApiGetIdentityOutliersRequest) Count(count bool) ApiGetIdentityOutliersRequest {
r.count = &count
return r
}
// Type of the identity outliers snapshot to filter on
func (r ApiGetOutliersRequest) Type_(type_ string) ApiGetOutliersRequest {
func (r ApiGetIdentityOutliersRequest) Type_(type_ string) ApiGetIdentityOutliersRequest {
r.type_ = &type_
return r
}
// Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following Entitlement fields and operators: **attributes**: *eq, sw, co, in* **firstDetectionDate**: *ge, le* **certStatus**: *eq* **ignored**: *eq* **score**: *ge, le*
func (r ApiGetOutliersRequest) Filters(filters string) ApiGetOutliersRequest {
func (r ApiGetIdentityOutliersRequest) Filters(filters string) ApiGetIdentityOutliersRequest {
r.filters = &filters
return r
}
// Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **firstDetectionDate, attributes, score**
func (r ApiGetOutliersRequest) Sorters(sorters string) ApiGetOutliersRequest {
func (r ApiGetIdentityOutliersRequest) Sorters(sorters string) ApiGetIdentityOutliersRequest {
r.sorters = &sorters
return r
}
func (r ApiGetOutliersRequest) Execute() ([]Outlier, *http.Response, error) {
return r.ApiService.GetOutliersExecute(r)
func (r ApiGetIdentityOutliersRequest) Execute() ([]Outlier, *http.Response, error) {
return r.ApiService.GetIdentityOutliersExecute(r)
}
/*
GetOutliers IAI Get Identity Outliers
GetIdentityOutliers IAI Get Identity Outliers
This API receives a list of outliers, containing data such as: identityId, outlier type, detection dates, identity attributes, if identity is ignore, and certification information
Requires authorization scope of 'iai:outliers-management:read'
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetOutliersRequest
@return ApiGetIdentityOutliersRequest
*/
func (a *IAIOutliersApiService) GetOutliers(ctx context.Context) ApiGetOutliersRequest {
return ApiGetOutliersRequest{
func (a *IAIOutliersApiService) GetIdentityOutliers(ctx context.Context) ApiGetIdentityOutliersRequest {
return ApiGetIdentityOutliersRequest{
ApiService: a,
ctx: ctx,
}
@@ -625,7 +461,7 @@ func (a *IAIOutliersApiService) GetOutliers(ctx context.Context) ApiGetOutliersR
// Execute executes the request
// @return []Outlier
func (a *IAIOutliersApiService) GetOutliersExecute(r ApiGetOutliersRequest) ([]Outlier, *http.Response, error) {
func (a *IAIOutliersApiService) GetIdentityOutliersExecute(r ApiGetIdentityOutliersRequest) ([]Outlier, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -633,7 +469,7 @@ func (a *IAIOutliersApiService) GetOutliersExecute(r ApiGetOutliersRequest) ([]O
localVarReturnValue []Outlier
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IAIOutliersApiService.GetOutliers")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IAIOutliersApiService.GetIdentityOutliers")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -770,7 +606,171 @@ func (a *IAIOutliersApiService) GetOutliersExecute(r ApiGetOutliersRequest) ([]O
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiGetOutliersContributingFeaturesRequest struct {
type ApiGetLatestIdentityOutlierSnapshotsRequest struct {
ctx context.Context
ApiService *IAIOutliersApiService
type_ *string
}
// Type of the identity outliers snapshot to filter on
func (r ApiGetLatestIdentityOutlierSnapshotsRequest) Type_(type_ string) ApiGetLatestIdentityOutlierSnapshotsRequest {
r.type_ = &type_
return r
}
func (r ApiGetLatestIdentityOutlierSnapshotsRequest) Execute() ([]LatestOutlierSummary, *http.Response, error) {
return r.ApiService.GetLatestIdentityOutlierSnapshotsExecute(r)
}
/*
GetLatestIdentityOutlierSnapshots IAI Identity Outliers Latest Summary
This API returns a most recent snapshot of each outlier type, each containing: the number of identities that customer has, the number of outliers, and the type of outlier
Requires authorization scope of 'iai:outliers-management:read'
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetLatestIdentityOutlierSnapshotsRequest
*/
func (a *IAIOutliersApiService) GetLatestIdentityOutlierSnapshots(ctx context.Context) ApiGetLatestIdentityOutlierSnapshotsRequest {
return ApiGetLatestIdentityOutlierSnapshotsRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
// @return []LatestOutlierSummary
func (a *IAIOutliersApiService) GetLatestIdentityOutlierSnapshotsExecute(r ApiGetLatestIdentityOutlierSnapshotsRequest) ([]LatestOutlierSummary, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue []LatestOutlierSummary
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IAIOutliersApiService.GetLatestIdentityOutlierSnapshots")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/outlier-summaries/latest"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if r.type_ != nil {
localVarQueryParams.Add("type", parameterToString(*r.type_, ""))
}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
if localVarHTTPContentType != "" {
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := []string{"application/json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return localVarReturnValue, nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
return localVarReturnValue, localVarHTTPResponse, err
}
localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body.Close()
localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody))
if err != nil {
return localVarReturnValue, localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 400 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 401 {
var v ListAccessProfiles401Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 403 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 429 {
var v ListAccessProfiles429Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 500 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: err.Error(),
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiGetPeerGroupOutliersContributingFeaturesRequest struct {
ctx context.Context
ApiService *IAIOutliersApiService
outlierId string
@@ -782,51 +782,51 @@ type ApiGetOutliersContributingFeaturesRequest struct {
}
// Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiGetOutliersContributingFeaturesRequest) Limit(limit int32) ApiGetOutliersContributingFeaturesRequest {
func (r ApiGetPeerGroupOutliersContributingFeaturesRequest) Limit(limit int32) ApiGetPeerGroupOutliersContributingFeaturesRequest {
r.limit = &limit
return r
}
// Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiGetOutliersContributingFeaturesRequest) Offset(offset int32) ApiGetOutliersContributingFeaturesRequest {
func (r ApiGetPeerGroupOutliersContributingFeaturesRequest) Offset(offset int32) ApiGetPeerGroupOutliersContributingFeaturesRequest {
r.offset = &offset
return r
}
// If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count&#x3D;true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiGetOutliersContributingFeaturesRequest) Count(count bool) ApiGetOutliersContributingFeaturesRequest {
func (r ApiGetPeerGroupOutliersContributingFeaturesRequest) Count(count bool) ApiGetPeerGroupOutliersContributingFeaturesRequest {
r.count = &count
return r
}
// Whether or not to include translation messages object in returned response
func (r ApiGetOutliersContributingFeaturesRequest) IncludeTranslationMessages(includeTranslationMessages string) ApiGetOutliersContributingFeaturesRequest {
func (r ApiGetPeerGroupOutliersContributingFeaturesRequest) IncludeTranslationMessages(includeTranslationMessages string) ApiGetPeerGroupOutliersContributingFeaturesRequest {
r.includeTranslationMessages = &includeTranslationMessages
return r
}
// Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/docs/standard_collection_parameters.html) Sorting is supported for the following fields: **importance**
func (r ApiGetOutliersContributingFeaturesRequest) Sorters(sorters string) ApiGetOutliersContributingFeaturesRequest {
func (r ApiGetPeerGroupOutliersContributingFeaturesRequest) Sorters(sorters string) ApiGetPeerGroupOutliersContributingFeaturesRequest {
r.sorters = &sorters
return r
}
func (r ApiGetOutliersContributingFeaturesRequest) Execute() ([]OutlierContributingFeature, *http.Response, error) {
return r.ApiService.GetOutliersContributingFeaturesExecute(r)
func (r ApiGetPeerGroupOutliersContributingFeaturesRequest) Execute() ([]OutlierContributingFeature, *http.Response, error) {
return r.ApiService.GetPeerGroupOutliersContributingFeaturesExecute(r)
}
/*
GetOutliersContributingFeatures IAI Get an Identity Outlier's Contibuting Features
GetPeerGroupOutliersContributingFeatures IAI Get an Identity Outlier's Contibuting Features
This API returns a list of contributing feature objects for a single outlier. The object contains: feature name, feature value type, value, importance, display name (translated text or message key), description (translated text or message key), translation messages object
Requires authorization scope of 'iai:outliers-management:read'
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param outlierId The outlier id
@return ApiGetOutliersContributingFeaturesRequest
@return ApiGetPeerGroupOutliersContributingFeaturesRequest
*/
func (a *IAIOutliersApiService) GetOutliersContributingFeatures(ctx context.Context, outlierId string) ApiGetOutliersContributingFeaturesRequest {
return ApiGetOutliersContributingFeaturesRequest{
func (a *IAIOutliersApiService) GetPeerGroupOutliersContributingFeatures(ctx context.Context, outlierId string) ApiGetPeerGroupOutliersContributingFeaturesRequest {
return ApiGetPeerGroupOutliersContributingFeaturesRequest{
ApiService: a,
ctx: ctx,
outlierId: outlierId,
@@ -835,7 +835,7 @@ func (a *IAIOutliersApiService) GetOutliersContributingFeatures(ctx context.Cont
// Execute executes the request
// @return []OutlierContributingFeature
func (a *IAIOutliersApiService) GetOutliersContributingFeaturesExecute(r ApiGetOutliersContributingFeaturesRequest) ([]OutlierContributingFeature, *http.Response, error) {
func (a *IAIOutliersApiService) GetPeerGroupOutliersContributingFeaturesExecute(r ApiGetPeerGroupOutliersContributingFeaturesRequest) ([]OutlierContributingFeature, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -843,7 +843,7 @@ func (a *IAIOutliersApiService) GetOutliersContributingFeaturesExecute(r ApiGetO
localVarReturnValue []OutlierContributingFeature
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IAIOutliersApiService.GetOutliersContributingFeatures")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IAIOutliersApiService.GetPeerGroupOutliersContributingFeatures")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -989,46 +989,46 @@ func (a *IAIOutliersApiService) GetOutliersContributingFeaturesExecute(r ApiGetO
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiIgnoreOutliersRequest struct {
type ApiIgnoreIdentityOutliersRequest struct {
ctx context.Context
ApiService *IAIOutliersApiService
requestBody *[]string
}
func (r ApiIgnoreOutliersRequest) RequestBody(requestBody []string) ApiIgnoreOutliersRequest {
func (r ApiIgnoreIdentityOutliersRequest) RequestBody(requestBody []string) ApiIgnoreIdentityOutliersRequest {
r.requestBody = &requestBody
return r
}
func (r ApiIgnoreOutliersRequest) Execute() (*http.Response, error) {
return r.ApiService.IgnoreOutliersExecute(r)
func (r ApiIgnoreIdentityOutliersRequest) Execute() (*http.Response, error) {
return r.ApiService.IgnoreIdentityOutliersExecute(r)
}
/*
IgnoreOutliers IAI Identity Outliers Ignore
IgnoreIdentityOutliers IAI Identity Outliers Ignore
This API receives a list of IdentityIDs in the request, changes the outliers to be ignored--returning a 204 if successful.
Requires authorization scope of 'iai:outliers-management:update'
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiIgnoreOutliersRequest
@return ApiIgnoreIdentityOutliersRequest
*/
func (a *IAIOutliersApiService) IgnoreOutliers(ctx context.Context) ApiIgnoreOutliersRequest {
return ApiIgnoreOutliersRequest{
func (a *IAIOutliersApiService) IgnoreIdentityOutliers(ctx context.Context) ApiIgnoreIdentityOutliersRequest {
return ApiIgnoreIdentityOutliersRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
func (a *IAIOutliersApiService) IgnoreOutliersExecute(r ApiIgnoreOutliersRequest) (*http.Response, error) {
func (a *IAIOutliersApiService) IgnoreIdentityOutliersExecute(r ApiIgnoreIdentityOutliersRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IAIOutliersApiService.IgnoreOutliers")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IAIOutliersApiService.IgnoreIdentityOutliers")
if err != nil {
return nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -1143,46 +1143,46 @@ func (a *IAIOutliersApiService) IgnoreOutliersExecute(r ApiIgnoreOutliersRequest
return localVarHTTPResponse, nil
}
type ApiUnIgnoreOutliersRequest struct {
type ApiUnIgnoreIdentityOutliersRequest struct {
ctx context.Context
ApiService *IAIOutliersApiService
requestBody *[]string
}
func (r ApiUnIgnoreOutliersRequest) RequestBody(requestBody []string) ApiUnIgnoreOutliersRequest {
func (r ApiUnIgnoreIdentityOutliersRequest) RequestBody(requestBody []string) ApiUnIgnoreIdentityOutliersRequest {
r.requestBody = &requestBody
return r
}
func (r ApiUnIgnoreOutliersRequest) Execute() (*http.Response, error) {
return r.ApiService.UnIgnoreOutliersExecute(r)
func (r ApiUnIgnoreIdentityOutliersRequest) Execute() (*http.Response, error) {
return r.ApiService.UnIgnoreIdentityOutliersExecute(r)
}
/*
UnIgnoreOutliers IAI Identity Outliers Unignore
UnIgnoreIdentityOutliers IAI Identity Outliers Unignore
This API receives a list of IdentityIDs in the request, changes the outliers to be un-ignored--returning a 204 if successful.
Requires authorization scope of 'iai:outliers-management:update'
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiUnIgnoreOutliersRequest
@return ApiUnIgnoreIdentityOutliersRequest
*/
func (a *IAIOutliersApiService) UnIgnoreOutliers(ctx context.Context) ApiUnIgnoreOutliersRequest {
return ApiUnIgnoreOutliersRequest{
func (a *IAIOutliersApiService) UnIgnoreIdentityOutliers(ctx context.Context) ApiUnIgnoreIdentityOutliersRequest {
return ApiUnIgnoreIdentityOutliersRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
func (a *IAIOutliersApiService) UnIgnoreOutliersExecute(r ApiUnIgnoreOutliersRequest) (*http.Response, error) {
func (a *IAIOutliersApiService) UnIgnoreIdentityOutliersExecute(r ApiUnIgnoreIdentityOutliersRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IAIOutliersApiService.UnIgnoreOutliers")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IAIOutliersApiService.UnIgnoreIdentityOutliers")
if err != nil {
return nil, &GenericOpenAPIError{error: err.Error()}
}

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"
@@ -23,7 +23,7 @@ import (
// IAIPeerGroupStrategiesApiService IAIPeerGroupStrategiesApi service
type IAIPeerGroupStrategiesApiService service
type ApiGetOutliersRequest2 struct {
type ApiGetPeerGroupOutliersRequest struct {
ctx context.Context
ApiService *IAIPeerGroupStrategiesApiService
strategy string
@@ -33,38 +33,38 @@ type ApiGetOutliersRequest2 struct {
}
// Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiGetOutliersRequest2) Limit(limit int32) ApiGetOutliersRequest2 {
func (r ApiGetPeerGroupOutliersRequest) Limit(limit int32) ApiGetPeerGroupOutliersRequest {
r.limit = &limit
return r
}
// Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiGetOutliersRequest2) Offset(offset int32) ApiGetOutliersRequest2 {
func (r ApiGetPeerGroupOutliersRequest) Offset(offset int32) ApiGetPeerGroupOutliersRequest {
r.offset = &offset
return r
}
// If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count&#x3D;true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiGetOutliersRequest2) Count(count bool) ApiGetOutliersRequest2 {
func (r ApiGetPeerGroupOutliersRequest) Count(count bool) ApiGetPeerGroupOutliersRequest {
r.count = &count
return r
}
func (r ApiGetOutliersRequest2) Execute() ([]PeerGroupMember, *http.Response, error) {
return r.ApiService.GetOutliersExecute(r)
func (r ApiGetPeerGroupOutliersRequest) Execute() ([]PeerGroupMember, *http.Response, error) {
return r.ApiService.GetPeerGroupOutliersExecute(r)
}
/*
GetOutliers Identity Outliers List
GetPeerGroupOutliers Identity Outliers List
This API will be used by Identity Governance systems to identify identities that are not included in an organization's peer groups. By default, 250 identities are returned. You can specify between 1 and 1000 number of identities that can be returned.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param strategy The strategy used to create peer groups. Currently, 'entitlement' is supported.
@return ApiGetOutliersRequest2
@return ApiGetPeerGroupOutliersRequest
*/
func (a *IAIPeerGroupStrategiesApiService) GetOutliers(ctx context.Context, strategy string) ApiGetOutliersRequest2 {
return ApiGetOutliersRequest2{
func (a *IAIPeerGroupStrategiesApiService) GetPeerGroupOutliers(ctx context.Context, strategy string) ApiGetPeerGroupOutliersRequest {
return ApiGetPeerGroupOutliersRequest{
ApiService: a,
ctx: ctx,
strategy: strategy,
@@ -73,7 +73,7 @@ func (a *IAIPeerGroupStrategiesApiService) GetOutliers(ctx context.Context, stra
// Execute executes the request
// @return []PeerGroupMember
func (a *IAIPeerGroupStrategiesApiService) GetOutliersExecute(r ApiGetOutliersRequest2) ([]PeerGroupMember, *http.Response, error) {
func (a *IAIPeerGroupStrategiesApiService) GetPeerGroupOutliersExecute(r ApiGetPeerGroupOutliersRequest) ([]PeerGroupMember, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -81,7 +81,7 @@ func (a *IAIPeerGroupStrategiesApiService) GetOutliersExecute(r ApiGetOutliersRe
localVarReturnValue []PeerGroupMember
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IAIPeerGroupStrategiesApiService.GetOutliers")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IAIPeerGroupStrategiesApiService.GetPeerGroupOutliers")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"

File diff suppressed because it is too large Load Diff

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"
@@ -461,7 +461,7 @@ func (a *IdentityHistoryApiService) CompareIdentitySnapshotsAccessTypeExecute(r
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiGetEventsRequest struct {
type ApiGetHistoricalIdentityEventsRequest struct {
ctx context.Context
ApiService *IdentityHistoryApiService
id string
@@ -474,56 +474,56 @@ type ApiGetEventsRequest struct {
}
// The optional instant from which to return the access events
func (r ApiGetEventsRequest) From(from string) ApiGetEventsRequest {
func (r ApiGetHistoricalIdentityEventsRequest) From(from string) ApiGetHistoricalIdentityEventsRequest {
r.from = &from
return r
}
// An optional list of event types to return. If null or empty, all events are returned
func (r ApiGetEventsRequest) EventTypes(eventTypes []string) ApiGetEventsRequest {
func (r ApiGetHistoricalIdentityEventsRequest) EventTypes(eventTypes []string) ApiGetHistoricalIdentityEventsRequest {
r.eventTypes = &eventTypes
return r
}
// An optional list of access item types (app, account, entitlement, etc...) to return. If null or empty, all access items types are returned
func (r ApiGetEventsRequest) AccessItemTypes(accessItemTypes []string) ApiGetEventsRequest {
func (r ApiGetHistoricalIdentityEventsRequest) AccessItemTypes(accessItemTypes []string) ApiGetHistoricalIdentityEventsRequest {
r.accessItemTypes = &accessItemTypes
return r
}
// Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiGetEventsRequest) Limit(limit int32) ApiGetEventsRequest {
func (r ApiGetHistoricalIdentityEventsRequest) Limit(limit int32) ApiGetHistoricalIdentityEventsRequest {
r.limit = &limit
return r
}
// Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiGetEventsRequest) Offset(offset int32) ApiGetEventsRequest {
func (r ApiGetHistoricalIdentityEventsRequest) Offset(offset int32) ApiGetHistoricalIdentityEventsRequest {
r.offset = &offset
return r
}
// If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count&#x3D;true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiGetEventsRequest) Count(count bool) ApiGetEventsRequest {
func (r ApiGetHistoricalIdentityEventsRequest) Count(count bool) ApiGetHistoricalIdentityEventsRequest {
r.count = &count
return r
}
func (r ApiGetEventsRequest) Execute() ([]GetEvents200ResponseInner, *http.Response, error) {
return r.ApiService.GetEventsExecute(r)
func (r ApiGetHistoricalIdentityEventsRequest) Execute() ([]GetHistoricalIdentityEvents200ResponseInner, *http.Response, error) {
return r.ApiService.GetHistoricalIdentityEventsExecute(r)
}
/*
GetEvents Lists all events for the given identity
GetHistoricalIdentityEvents Lists all events for the given identity
This method retrieves all access events for the identity Requires authorization scope of 'idn:identity-history:read'
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The identity id
@return ApiGetEventsRequest
@return ApiGetHistoricalIdentityEventsRequest
*/
func (a *IdentityHistoryApiService) GetEvents(ctx context.Context, id string) ApiGetEventsRequest {
return ApiGetEventsRequest{
func (a *IdentityHistoryApiService) GetHistoricalIdentityEvents(ctx context.Context, id string) ApiGetHistoricalIdentityEventsRequest {
return ApiGetHistoricalIdentityEventsRequest{
ApiService: a,
ctx: ctx,
id: id,
@@ -531,16 +531,16 @@ func (a *IdentityHistoryApiService) GetEvents(ctx context.Context, id string) Ap
}
// Execute executes the request
// @return []GetEvents200ResponseInner
func (a *IdentityHistoryApiService) GetEventsExecute(r ApiGetEventsRequest) ([]GetEvents200ResponseInner, *http.Response, error) {
// @return []GetHistoricalIdentityEvents200ResponseInner
func (a *IdentityHistoryApiService) GetHistoricalIdentityEventsExecute(r ApiGetHistoricalIdentityEventsRequest) ([]GetHistoricalIdentityEvents200ResponseInner, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue []GetEvents200ResponseInner
localVarReturnValue []GetHistoricalIdentityEvents200ResponseInner
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityHistoryApiService.GetEvents")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityHistoryApiService.GetHistoricalIdentityEvents")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -1213,27 +1213,27 @@ func (a *IdentityHistoryApiService) GetIdentitySnapshotSummaryExecute(r ApiGetId
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiGetStartDateRequest struct {
type ApiGetIdentityStartDateRequest struct {
ctx context.Context
ApiService *IdentityHistoryApiService
id string
}
func (r ApiGetStartDateRequest) Execute() (string, *http.Response, error) {
return r.ApiService.GetStartDateExecute(r)
func (r ApiGetIdentityStartDateRequest) Execute() (string, *http.Response, error) {
return r.ApiService.GetIdentityStartDateExecute(r)
}
/*
GetStartDate Gets the start date of the identity
GetIdentityStartDate Gets the start date of the identity
This method retrieves start date of the identity Requires authorization scope of 'idn:identity-history:read'
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The identity id
@return ApiGetStartDateRequest
@return ApiGetIdentityStartDateRequest
*/
func (a *IdentityHistoryApiService) GetStartDate(ctx context.Context, id string) ApiGetStartDateRequest {
return ApiGetStartDateRequest{
func (a *IdentityHistoryApiService) GetIdentityStartDate(ctx context.Context, id string) ApiGetIdentityStartDateRequest {
return ApiGetIdentityStartDateRequest{
ApiService: a,
ctx: ctx,
id: id,
@@ -1242,7 +1242,7 @@ func (a *IdentityHistoryApiService) GetStartDate(ctx context.Context, id string)
// Execute executes the request
// @return string
func (a *IdentityHistoryApiService) GetStartDateExecute(r ApiGetStartDateRequest) (string, *http.Response, error) {
func (a *IdentityHistoryApiService) GetIdentityStartDateExecute(r ApiGetIdentityStartDateRequest) (string, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -1250,7 +1250,7 @@ func (a *IdentityHistoryApiService) GetStartDateExecute(r ApiGetStartDateRequest
localVarReturnValue string
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityHistoryApiService.GetStartDate")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "IdentityHistoryApiService.GetIdentityStartDate")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"
@@ -23,7 +23,7 @@ import (
// ManagedClientsApiService ManagedClientsApi service
type ManagedClientsApiService service
type ApiGetClientStatusRequest struct {
type ApiGetManagedClientStatusRequest struct {
ctx context.Context
ApiService *ManagedClientsApiService
id string
@@ -31,26 +31,26 @@ type ApiGetClientStatusRequest struct {
}
// Type of the Managed Client Status to get
func (r ApiGetClientStatusRequest) Type_(type_ ManagedClientType) ApiGetClientStatusRequest {
func (r ApiGetManagedClientStatusRequest) Type_(type_ ManagedClientType) ApiGetManagedClientStatusRequest {
r.type_ = &type_
return r
}
func (r ApiGetClientStatusRequest) Execute() (*ManagedClientStatus, *http.Response, error) {
return r.ApiService.GetClientStatusExecute(r)
func (r ApiGetManagedClientStatusRequest) Execute() (*ManagedClientStatus, *http.Response, error) {
return r.ApiService.GetManagedClientStatusExecute(r)
}
/*
GetClientStatus Get a specified Managed Client Status.
GetManagedClientStatus Get a specified Managed Client Status.
Retrieve Managed Client Status by ID.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id ID of the Managed Client Status to get
@return ApiGetClientStatusRequest
@return ApiGetManagedClientStatusRequest
*/
func (a *ManagedClientsApiService) GetClientStatus(ctx context.Context, id string) ApiGetClientStatusRequest {
return ApiGetClientStatusRequest{
func (a *ManagedClientsApiService) GetManagedClientStatus(ctx context.Context, id string) ApiGetManagedClientStatusRequest {
return ApiGetManagedClientStatusRequest{
ApiService: a,
ctx: ctx,
id: id,
@@ -59,7 +59,7 @@ func (a *ManagedClientsApiService) GetClientStatus(ctx context.Context, id strin
// Execute executes the request
// @return ManagedClientStatus
func (a *ManagedClientsApiService) GetClientStatusExecute(r ApiGetClientStatusRequest) (*ManagedClientStatus, *http.Response, error) {
func (a *ManagedClientsApiService) GetManagedClientStatusExecute(r ApiGetManagedClientStatusRequest) (*ManagedClientStatus, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -67,7 +67,7 @@ func (a *ManagedClientsApiService) GetClientStatusExecute(r ApiGetClientStatusRe
localVarReturnValue *ManagedClientStatus
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagedClientsApiService.GetClientStatus")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagedClientsApiService.GetManagedClientStatus")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -202,33 +202,33 @@ func (a *ManagedClientsApiService) GetClientStatusExecute(r ApiGetClientStatusRe
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiUpdateStatusRequest struct {
type ApiUpdateManagedClientStatusRequest struct {
ctx context.Context
ApiService *ManagedClientsApiService
id string
managedClientStatus *ManagedClientStatus
}
func (r ApiUpdateStatusRequest) ManagedClientStatus(managedClientStatus ManagedClientStatus) ApiUpdateStatusRequest {
func (r ApiUpdateManagedClientStatusRequest) ManagedClientStatus(managedClientStatus ManagedClientStatus) ApiUpdateManagedClientStatusRequest {
r.managedClientStatus = &managedClientStatus
return r
}
func (r ApiUpdateStatusRequest) Execute() (*ManagedClientStatusAggResponse, *http.Response, error) {
return r.ApiService.UpdateStatusExecute(r)
func (r ApiUpdateManagedClientStatusRequest) Execute() (*ManagedClientStatusAggResponse, *http.Response, error) {
return r.ApiService.UpdateManagedClientStatusExecute(r)
}
/*
UpdateStatus Handle a status request from a client
UpdateManagedClientStatus Handle a status request from a client
Update a status detail passed in from the client
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id ID of the Managed Client Status to update
@return ApiUpdateStatusRequest
@return ApiUpdateManagedClientStatusRequest
*/
func (a *ManagedClientsApiService) UpdateStatus(ctx context.Context, id string) ApiUpdateStatusRequest {
return ApiUpdateStatusRequest{
func (a *ManagedClientsApiService) UpdateManagedClientStatus(ctx context.Context, id string) ApiUpdateManagedClientStatusRequest {
return ApiUpdateManagedClientStatusRequest{
ApiService: a,
ctx: ctx,
id: id,
@@ -237,7 +237,7 @@ func (a *ManagedClientsApiService) UpdateStatus(ctx context.Context, id string)
// Execute executes the request
// @return ManagedClientStatusAggResponse
func (a *ManagedClientsApiService) UpdateStatusExecute(r ApiUpdateStatusRequest) (*ManagedClientStatusAggResponse, *http.Response, error) {
func (a *ManagedClientsApiService) UpdateManagedClientStatusExecute(r ApiUpdateManagedClientStatusRequest) (*ManagedClientStatusAggResponse, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
@@ -245,7 +245,7 @@ func (a *ManagedClientsApiService) UpdateStatusExecute(r ApiUpdateStatusRequest)
localVarReturnValue *ManagedClientStatusAggResponse
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagedClientsApiService.UpdateStatus")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ManagedClientsApiService.UpdateManagedClientStatus")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"
@@ -23,159 +23,6 @@ import (
// NotificationsApiService NotificationsApi service
type NotificationsApiService service
type ApiBulkDeleteNotificationTemplatesRequest struct {
ctx context.Context
ApiService *NotificationsApiService
templateBulkDeleteDto *[]TemplateBulkDeleteDto
}
func (r ApiBulkDeleteNotificationTemplatesRequest) TemplateBulkDeleteDto(templateBulkDeleteDto []TemplateBulkDeleteDto) ApiBulkDeleteNotificationTemplatesRequest {
r.templateBulkDeleteDto = &templateBulkDeleteDto
return r
}
func (r ApiBulkDeleteNotificationTemplatesRequest) Execute() (*http.Response, error) {
return r.ApiService.BulkDeleteNotificationTemplatesExecute(r)
}
/*
BulkDeleteNotificationTemplates Bulk Delete Notification Templates
This lets you bulk delete templates that you previously created for your site. Since this is a beta feature, you can only delete a subset of your notifications, i.e. ones that show up in the list call.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiBulkDeleteNotificationTemplatesRequest
*/
func (a *NotificationsApiService) BulkDeleteNotificationTemplates(ctx context.Context) ApiBulkDeleteNotificationTemplatesRequest {
return ApiBulkDeleteNotificationTemplatesRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
func (a *NotificationsApiService) BulkDeleteNotificationTemplatesExecute(r ApiBulkDeleteNotificationTemplatesRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NotificationsApiService.BulkDeleteNotificationTemplates")
if err != nil {
return nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/notification-templates/bulk-delete"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if r.templateBulkDeleteDto == nil {
return nil, reportError("templateBulkDeleteDto is required and must be specified")
}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{"application/json"}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
if localVarHTTPContentType != "" {
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := []string{"application/json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
localVarPostBody = r.templateBulkDeleteDto
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
return localVarHTTPResponse, err
}
localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body.Close()
localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody))
if err != nil {
return localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 400 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 401 {
var v ListAccessProfiles401Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 403 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 429 {
var v ListAccessProfiles429Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 500 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
}
return localVarHTTPResponse, newErr
}
return localVarHTTPResponse, nil
}
type ApiCreateNotificationTemplateRequest struct {
ctx context.Context
ApiService *NotificationsApiService
@@ -506,6 +353,159 @@ func (a *NotificationsApiService) CreateVerifiedFromAddressExecute(r ApiCreateVe
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiDeleteNotificationTemplatesInBulkRequest struct {
ctx context.Context
ApiService *NotificationsApiService
templateBulkDeleteDto *[]TemplateBulkDeleteDto
}
func (r ApiDeleteNotificationTemplatesInBulkRequest) TemplateBulkDeleteDto(templateBulkDeleteDto []TemplateBulkDeleteDto) ApiDeleteNotificationTemplatesInBulkRequest {
r.templateBulkDeleteDto = &templateBulkDeleteDto
return r
}
func (r ApiDeleteNotificationTemplatesInBulkRequest) Execute() (*http.Response, error) {
return r.ApiService.DeleteNotificationTemplatesInBulkExecute(r)
}
/*
DeleteNotificationTemplatesInBulk Bulk Delete Notification Templates
This lets you bulk delete templates that you previously created for your site. Since this is a beta feature, you can only delete a subset of your notifications, i.e. ones that show up in the list call.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiDeleteNotificationTemplatesInBulkRequest
*/
func (a *NotificationsApiService) DeleteNotificationTemplatesInBulk(ctx context.Context) ApiDeleteNotificationTemplatesInBulkRequest {
return ApiDeleteNotificationTemplatesInBulkRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
func (a *NotificationsApiService) DeleteNotificationTemplatesInBulkExecute(r ApiDeleteNotificationTemplatesInBulkRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NotificationsApiService.DeleteNotificationTemplatesInBulk")
if err != nil {
return nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/notification-templates/bulk-delete"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if r.templateBulkDeleteDto == nil {
return nil, reportError("templateBulkDeleteDto is required and must be specified")
}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{"application/json"}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
if localVarHTTPContentType != "" {
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := []string{"application/json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
localVarPostBody = r.templateBulkDeleteDto
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
return localVarHTTPResponse, err
}
localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body.Close()
localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody))
if err != nil {
return localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 400 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 401 {
var v ListAccessProfiles401Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 403 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 429 {
var v ListAccessProfiles429Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 500 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
}
return localVarHTTPResponse, newErr
}
return localVarHTTPResponse, nil
}
type ApiDeleteVerifiedFromAddressRequest struct {
ctx context.Context
ApiService *NotificationsApiService

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"
@@ -515,6 +515,13 @@ func (a *OAuthClientsApiService) GetOauthClientExecute(r ApiGetOauthClientReques
type ApiListOauthClientsRequest struct {
ctx context.Context
ApiService *OAuthClientsApiService
filters *string
}
// Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **lastUsed**: *le, isnull*
func (r ApiListOauthClientsRequest) Filters(filters string) ApiListOauthClientsRequest {
r.filters = &filters
return r
}
func (r ApiListOauthClientsRequest) Execute() ([]GetOAuthClientResponse, *http.Response, error) {
@@ -557,6 +564,9 @@ func (a *OAuthClientsApiService) ListOauthClientsExecute(r ApiListOauthClientsRe
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if r.filters != nil {
localVarQueryParams.Add("filters", parameterToString(*r.filters, ""))
}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{}

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"
@@ -165,27 +165,27 @@ func (a *PasswordManagementApiService) GenerateDigitTokenExecute(r ApiGenerateDi
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiGetPasswordChangeStatusRequest struct {
type ApiGetIdentityPasswordChangeStatusRequest struct {
ctx context.Context
ApiService *PasswordManagementApiService
id string
}
func (r ApiGetPasswordChangeStatusRequest) Execute() (*PasswordStatus, *http.Response, error) {
return r.ApiService.GetPasswordChangeStatusExecute(r)
func (r ApiGetIdentityPasswordChangeStatusRequest) Execute() (*PasswordStatus, *http.Response, error) {
return r.ApiService.GetIdentityPasswordChangeStatusExecute(r)
}
/*
GetPasswordChangeStatus Get Password Change Request Status
GetIdentityPasswordChangeStatus Get Password Change Request Status
This API returns the status of a password change request. A token with identity owner or trusted API client application authority is required to call this API.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id
@return ApiGetPasswordChangeStatusRequest
@return ApiGetIdentityPasswordChangeStatusRequest
*/
func (a *PasswordManagementApiService) GetPasswordChangeStatus(ctx context.Context, id string) ApiGetPasswordChangeStatusRequest {
return ApiGetPasswordChangeStatusRequest{
func (a *PasswordManagementApiService) GetIdentityPasswordChangeStatus(ctx context.Context, id string) ApiGetIdentityPasswordChangeStatusRequest {
return ApiGetIdentityPasswordChangeStatusRequest{
ApiService: a,
ctx: ctx,
id: id,
@@ -194,7 +194,7 @@ func (a *PasswordManagementApiService) GetPasswordChangeStatus(ctx context.Conte
// Execute executes the request
// @return PasswordStatus
func (a *PasswordManagementApiService) GetPasswordChangeStatusExecute(r ApiGetPasswordChangeStatusRequest) (*PasswordStatus, *http.Response, error) {
func (a *PasswordManagementApiService) GetIdentityPasswordChangeStatusExecute(r ApiGetIdentityPasswordChangeStatusRequest) (*PasswordStatus, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -202,7 +202,7 @@ func (a *PasswordManagementApiService) GetPasswordChangeStatusExecute(r ApiGetPa
localVarReturnValue *PasswordStatus
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PasswordManagementApiService.GetPasswordChangeStatus")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PasswordManagementApiService.GetIdentityPasswordChangeStatus")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -494,23 +494,23 @@ func (a *PasswordManagementApiService) QueryPasswordInfoExecute(r ApiQueryPasswo
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiSetPasswordRequest struct {
type ApiSetIdentityPasswordRequest struct {
ctx context.Context
ApiService *PasswordManagementApiService
passwordChangeRequest *PasswordChangeRequest
}
func (r ApiSetPasswordRequest) PasswordChangeRequest(passwordChangeRequest PasswordChangeRequest) ApiSetPasswordRequest {
func (r ApiSetIdentityPasswordRequest) PasswordChangeRequest(passwordChangeRequest PasswordChangeRequest) ApiSetIdentityPasswordRequest {
r.passwordChangeRequest = &passwordChangeRequest
return r
}
func (r ApiSetPasswordRequest) Execute() (*PasswordChangeResponse, *http.Response, error) {
return r.ApiService.SetPasswordExecute(r)
func (r ApiSetIdentityPasswordRequest) Execute() (*PasswordChangeResponse, *http.Response, error) {
return r.ApiService.SetIdentityPasswordExecute(r)
}
/*
SetPassword Set Identity's Password
SetIdentityPassword Set Identity's Password
This API is used to set a password for an identity.
@@ -520,10 +520,10 @@ A token with [API authority](https://developer.sailpoint.com/idn/api/authenticat
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiSetPasswordRequest
@return ApiSetIdentityPasswordRequest
*/
func (a *PasswordManagementApiService) SetPassword(ctx context.Context) ApiSetPasswordRequest {
return ApiSetPasswordRequest{
func (a *PasswordManagementApiService) SetIdentityPassword(ctx context.Context) ApiSetIdentityPasswordRequest {
return ApiSetIdentityPasswordRequest{
ApiService: a,
ctx: ctx,
}
@@ -531,7 +531,7 @@ func (a *PasswordManagementApiService) SetPassword(ctx context.Context) ApiSetPa
// Execute executes the request
// @return PasswordChangeResponse
func (a *PasswordManagementApiService) SetPasswordExecute(r ApiSetPasswordRequest) (*PasswordChangeResponse, *http.Response, error) {
func (a *PasswordManagementApiService) SetIdentityPasswordExecute(r ApiSetIdentityPasswordRequest) (*PasswordChangeResponse, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
@@ -539,7 +539,7 @@ func (a *PasswordManagementApiService) SetPasswordExecute(r ApiSetPasswordReques
localVarReturnValue *PasswordChangeResponse
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PasswordManagementApiService.SetPassword")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PasswordManagementApiService.SetIdentityPassword")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"
@@ -23,6 +23,148 @@ import (
// RoleInsightsApiService RoleInsightsApi service
type RoleInsightsApiService service
type ApiCreateRoleInsightRequestsRequest struct {
ctx context.Context
ApiService *RoleInsightsApiService
}
func (r ApiCreateRoleInsightRequestsRequest) Execute() (*RoleInsightsResponse, *http.Response, error) {
return r.ApiService.CreateRoleInsightRequestsExecute(r)
}
/*
CreateRoleInsightRequests A request to generate insights for roles
This submits a create role insights request to the role insights application. At this time there are no parameters. All business roles will be processed for the customer.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCreateRoleInsightRequestsRequest
*/
func (a *RoleInsightsApiService) CreateRoleInsightRequests(ctx context.Context) ApiCreateRoleInsightRequestsRequest {
return ApiCreateRoleInsightRequestsRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
// @return RoleInsightsResponse
func (a *RoleInsightsApiService) CreateRoleInsightRequestsExecute(r ApiCreateRoleInsightRequestsRequest) (*RoleInsightsResponse, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *RoleInsightsResponse
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RoleInsightsApiService.CreateRoleInsightRequests")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/role-insights/requests"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
if localVarHTTPContentType != "" {
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := []string{"application/json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return localVarReturnValue, nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
return localVarReturnValue, localVarHTTPResponse, err
}
localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body.Close()
localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody))
if err != nil {
return localVarReturnValue, localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 400 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 401 {
var v ListAccessProfiles401Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 403 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 500 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: err.Error(),
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiDownloadRoleInsightsEntitlementsChangesRequest struct {
ctx context.Context
ApiService *RoleInsightsApiService
@@ -1346,145 +1488,3 @@ func (a *RoleInsightsApiService) GetRoleInsightsSummaryExecute(r ApiGetRoleInsig
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiRoleInsightsRequestsRequest struct {
ctx context.Context
ApiService *RoleInsightsApiService
}
func (r ApiRoleInsightsRequestsRequest) Execute() (*RoleInsightsResponse, *http.Response, error) {
return r.ApiService.RoleInsightsRequestsExecute(r)
}
/*
RoleInsightsRequests A request to generate insights for roles
This submits a create role insights request to the role insights application. At this time there are no parameters. All business roles will be processed for the customer.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiRoleInsightsRequestsRequest
*/
func (a *RoleInsightsApiService) RoleInsightsRequests(ctx context.Context) ApiRoleInsightsRequestsRequest {
return ApiRoleInsightsRequestsRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
// @return RoleInsightsResponse
func (a *RoleInsightsApiService) RoleInsightsRequestsExecute(r ApiRoleInsightsRequestsRequest) (*RoleInsightsResponse, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *RoleInsightsResponse
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "RoleInsightsApiService.RoleInsightsRequests")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/role-insights/requests"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
if localVarHTTPContentType != "" {
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := []string{"application/json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return localVarReturnValue, nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
return localVarReturnValue, localVarHTTPResponse, err
}
localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body.Close()
localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody))
if err != nil {
return localVarReturnValue, localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 400 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 401 {
var v ListAccessProfiles401Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 403 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 500 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: err.Error(),
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
return localVarReturnValue, localVarHTTPResponse, nil
}

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"
@@ -191,18 +191,18 @@ func (a *SegmentsApiService) CreateSegmentExecute(r ApiCreateSegmentRequest) (*S
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiDeleteSegmentByIdRequest struct {
type ApiDeleteSegmentRequest struct {
ctx context.Context
ApiService *SegmentsApiService
id string
}
func (r ApiDeleteSegmentByIdRequest) Execute() (*http.Response, error) {
return r.ApiService.DeleteSegmentByIdExecute(r)
func (r ApiDeleteSegmentRequest) Execute() (*http.Response, error) {
return r.ApiService.DeleteSegmentExecute(r)
}
/*
DeleteSegmentById Delete Segment by ID
DeleteSegment Delete Segment by ID
This API deletes the segment specified by the given ID.
@@ -212,10 +212,10 @@ A token with ORG_ADMIN or API authority is required to call this API.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The ID of the Segment to delete.
@return ApiDeleteSegmentByIdRequest
@return ApiDeleteSegmentRequest
*/
func (a *SegmentsApiService) DeleteSegmentById(ctx context.Context, id string) ApiDeleteSegmentByIdRequest {
return ApiDeleteSegmentByIdRequest{
func (a *SegmentsApiService) DeleteSegment(ctx context.Context, id string) ApiDeleteSegmentRequest {
return ApiDeleteSegmentRequest{
ApiService: a,
ctx: ctx,
id: id,
@@ -223,14 +223,14 @@ func (a *SegmentsApiService) DeleteSegmentById(ctx context.Context, id string) A
}
// Execute executes the request
func (a *SegmentsApiService) DeleteSegmentByIdExecute(r ApiDeleteSegmentByIdRequest) (*http.Response, error) {
func (a *SegmentsApiService) DeleteSegmentExecute(r ApiDeleteSegmentRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SegmentsApiService.DeleteSegmentById")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SegmentsApiService.DeleteSegment")
if err != nil {
return nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -341,18 +341,18 @@ func (a *SegmentsApiService) DeleteSegmentByIdExecute(r ApiDeleteSegmentByIdRequ
return localVarHTTPResponse, nil
}
type ApiGetSegmentByIdRequest struct {
type ApiGetSegmentRequest struct {
ctx context.Context
ApiService *SegmentsApiService
id string
}
func (r ApiGetSegmentByIdRequest) Execute() (*Segment, *http.Response, error) {
return r.ApiService.GetSegmentByIdExecute(r)
func (r ApiGetSegmentRequest) Execute() (*Segment, *http.Response, error) {
return r.ApiService.GetSegmentExecute(r)
}
/*
GetSegmentById Get a Segment by its ID
GetSegment Get a Segment by its ID
This API returns the segment specified by the given ID.
@@ -360,10 +360,10 @@ A token with ORG_ADMIN or API authority is required to call this API.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The ID of the Segment to retrieve.
@return ApiGetSegmentByIdRequest
@return ApiGetSegmentRequest
*/
func (a *SegmentsApiService) GetSegmentById(ctx context.Context, id string) ApiGetSegmentByIdRequest {
return ApiGetSegmentByIdRequest{
func (a *SegmentsApiService) GetSegment(ctx context.Context, id string) ApiGetSegmentRequest {
return ApiGetSegmentRequest{
ApiService: a,
ctx: ctx,
id: id,
@@ -372,7 +372,7 @@ func (a *SegmentsApiService) GetSegmentById(ctx context.Context, id string) ApiG
// Execute executes the request
// @return Segment
func (a *SegmentsApiService) GetSegmentByIdExecute(r ApiGetSegmentByIdRequest) (*Segment, *http.Response, error) {
func (a *SegmentsApiService) GetSegmentExecute(r ApiGetSegmentRequest) (*Segment, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -380,7 +380,7 @@ func (a *SegmentsApiService) GetSegmentByIdExecute(r ApiGetSegmentByIdRequest) (
localVarReturnValue *Segment
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SegmentsApiService.GetSegmentById")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SegmentsApiService.GetSegment")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"
@@ -1414,6 +1414,182 @@ func (a *ServiceDeskIntegrationApiService) PatchServiceDeskIntegrationExecute(r
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiUpdateManagedClientStatusCheckDetailsRequest struct {
ctx context.Context
ApiService *ServiceDeskIntegrationApiService
queuedCheckConfigDetails *QueuedCheckConfigDetails
}
// the modified time check configuration
func (r ApiUpdateManagedClientStatusCheckDetailsRequest) QueuedCheckConfigDetails(queuedCheckConfigDetails QueuedCheckConfigDetails) ApiUpdateManagedClientStatusCheckDetailsRequest {
r.queuedCheckConfigDetails = &queuedCheckConfigDetails
return r
}
func (r ApiUpdateManagedClientStatusCheckDetailsRequest) Execute() (*QueuedCheckConfigDetails, *http.Response, error) {
return r.ApiService.UpdateManagedClientStatusCheckDetailsExecute(r)
}
/*
UpdateManagedClientStatusCheckDetails Update the time check configuration of queued SDIM tickets
Update the time check configuration of queued SDIM tickets. A token with Org Admin or Service Desk Admin authority is required to access this endpoint.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiUpdateManagedClientStatusCheckDetailsRequest
*/
func (a *ServiceDeskIntegrationApiService) UpdateManagedClientStatusCheckDetails(ctx context.Context) ApiUpdateManagedClientStatusCheckDetailsRequest {
return ApiUpdateManagedClientStatusCheckDetailsRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
// @return QueuedCheckConfigDetails
func (a *ServiceDeskIntegrationApiService) UpdateManagedClientStatusCheckDetailsExecute(r ApiUpdateManagedClientStatusCheckDetailsRequest) (*QueuedCheckConfigDetails, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPut
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *QueuedCheckConfigDetails
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServiceDeskIntegrationApiService.UpdateManagedClientStatusCheckDetails")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/service-desk-integrations/status-check-configuration"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if r.queuedCheckConfigDetails == nil {
return localVarReturnValue, nil, reportError("queuedCheckConfigDetails is required and must be specified")
}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{"application/json"}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
if localVarHTTPContentType != "" {
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := []string{"application/json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
localVarPostBody = r.queuedCheckConfigDetails
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return localVarReturnValue, nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
return localVarReturnValue, localVarHTTPResponse, err
}
localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body.Close()
localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody))
if err != nil {
return localVarReturnValue, localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 400 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 401 {
var v ListAccessProfiles401Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 403 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 404 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 429 {
var v ListAccessProfiles429Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 500 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: err.Error(),
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiUpdateServiceDeskIntegrationRequest struct {
ctx context.Context
ApiService *ServiceDeskIntegrationApiService
@@ -1593,179 +1769,3 @@ func (a *ServiceDeskIntegrationApiService) UpdateServiceDeskIntegrationExecute(r
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiUpdateStatusCheckDetailsRequest struct {
ctx context.Context
ApiService *ServiceDeskIntegrationApiService
queuedCheckConfigDetails *QueuedCheckConfigDetails
}
// the modified time check configuration
func (r ApiUpdateStatusCheckDetailsRequest) QueuedCheckConfigDetails(queuedCheckConfigDetails QueuedCheckConfigDetails) ApiUpdateStatusCheckDetailsRequest {
r.queuedCheckConfigDetails = &queuedCheckConfigDetails
return r
}
func (r ApiUpdateStatusCheckDetailsRequest) Execute() (*QueuedCheckConfigDetails, *http.Response, error) {
return r.ApiService.UpdateStatusCheckDetailsExecute(r)
}
/*
UpdateStatusCheckDetails Update the time check configuration of queued SDIM tickets
Update the time check configuration of queued SDIM tickets. A token with Org Admin or Service Desk Admin authority is required to access this endpoint.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiUpdateStatusCheckDetailsRequest
*/
func (a *ServiceDeskIntegrationApiService) UpdateStatusCheckDetails(ctx context.Context) ApiUpdateStatusCheckDetailsRequest {
return ApiUpdateStatusCheckDetailsRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
// @return QueuedCheckConfigDetails
func (a *ServiceDeskIntegrationApiService) UpdateStatusCheckDetailsExecute(r ApiUpdateStatusCheckDetailsRequest) (*QueuedCheckConfigDetails, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPut
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *QueuedCheckConfigDetails
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ServiceDeskIntegrationApiService.UpdateStatusCheckDetails")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/service-desk-integrations/status-check-configuration"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if r.queuedCheckConfigDetails == nil {
return localVarReturnValue, nil, reportError("queuedCheckConfigDetails is required and must be specified")
}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{"application/json"}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
if localVarHTTPContentType != "" {
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := []string{"application/json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
localVarPostBody = r.queuedCheckConfigDetails
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return localVarReturnValue, nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
return localVarReturnValue, localVarHTTPResponse, err
}
localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body.Close()
localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody))
if err != nil {
return localVarReturnValue, localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 400 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 401 {
var v ListAccessProfiles401Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 403 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 404 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 429 {
var v ListAccessProfiles429Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 500 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: err.Error(),
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
return localVarReturnValue, localVarHTTPResponse, nil
}

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"
@@ -189,7 +189,7 @@ func (a *SODPolicyApiService) CreateSodPolicyExecute(r ApiCreateSodPolicyRequest
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiDeleteSodPolicyByIdRequest struct {
type ApiDeleteSodPolicyRequest struct {
ctx context.Context
ApiService *SODPolicyApiService
id string
@@ -197,27 +197,27 @@ type ApiDeleteSodPolicyByIdRequest struct {
}
// whether this is soft delete i.e. logical true or hard delete
func (r ApiDeleteSodPolicyByIdRequest) Logical(logical bool) ApiDeleteSodPolicyByIdRequest {
func (r ApiDeleteSodPolicyRequest) Logical(logical bool) ApiDeleteSodPolicyRequest {
r.logical = &logical
return r
}
func (r ApiDeleteSodPolicyByIdRequest) Execute() (*http.Response, error) {
return r.ApiService.DeleteSodPolicyByIdExecute(r)
func (r ApiDeleteSodPolicyRequest) Execute() (*http.Response, error) {
return r.ApiService.DeleteSodPolicyExecute(r)
}
/*
DeleteSodPolicyById Delete SOD Policy by ID
DeleteSodPolicy Delete SOD Policy by ID
This deletes a specified SOD policy.
Requires role of ORG_ADMIN.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The ID of the SOD Policy to delete.
@return ApiDeleteSodPolicyByIdRequest
@return ApiDeleteSodPolicyRequest
*/
func (a *SODPolicyApiService) DeleteSodPolicyById(ctx context.Context, id string) ApiDeleteSodPolicyByIdRequest {
return ApiDeleteSodPolicyByIdRequest{
func (a *SODPolicyApiService) DeleteSodPolicy(ctx context.Context, id string) ApiDeleteSodPolicyRequest {
return ApiDeleteSodPolicyRequest{
ApiService: a,
ctx: ctx,
id: id,
@@ -225,14 +225,14 @@ func (a *SODPolicyApiService) DeleteSodPolicyById(ctx context.Context, id string
}
// Execute executes the request
func (a *SODPolicyApiService) DeleteSodPolicyByIdExecute(r ApiDeleteSodPolicyByIdRequest) (*http.Response, error) {
func (a *SODPolicyApiService) DeleteSodPolicyExecute(r ApiDeleteSodPolicyRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SODPolicyApiService.DeleteSodPolicyById")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SODPolicyApiService.DeleteSodPolicy")
if err != nil {
return nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -357,28 +357,28 @@ func (a *SODPolicyApiService) DeleteSodPolicyByIdExecute(r ApiDeleteSodPolicyByI
return localVarHTTPResponse, nil
}
type ApiDeleteSodPolicyScheduleByIdRequest struct {
type ApiDeleteSodPolicyScheduleRequest struct {
ctx context.Context
ApiService *SODPolicyApiService
id string
}
func (r ApiDeleteSodPolicyScheduleByIdRequest) Execute() (*http.Response, error) {
return r.ApiService.DeleteSodPolicyScheduleByIdExecute(r)
func (r ApiDeleteSodPolicyScheduleRequest) Execute() (*http.Response, error) {
return r.ApiService.DeleteSodPolicyScheduleExecute(r)
}
/*
DeleteSodPolicyScheduleById Delete SOD Policy Schedule
DeleteSodPolicySchedule Delete SOD Policy Schedule
This deletes schedule for a specified SOD policy.
Requires role of ORG_ADMIN.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The ID of the SOD Policy for which the schedule needs to be deleted.
@return ApiDeleteSodPolicyScheduleByIdRequest
@return ApiDeleteSodPolicyScheduleRequest
*/
func (a *SODPolicyApiService) DeleteSodPolicyScheduleById(ctx context.Context, id string) ApiDeleteSodPolicyScheduleByIdRequest {
return ApiDeleteSodPolicyScheduleByIdRequest{
func (a *SODPolicyApiService) DeleteSodPolicySchedule(ctx context.Context, id string) ApiDeleteSodPolicyScheduleRequest {
return ApiDeleteSodPolicyScheduleRequest{
ApiService: a,
ctx: ctx,
id: id,
@@ -386,14 +386,14 @@ func (a *SODPolicyApiService) DeleteSodPolicyScheduleById(ctx context.Context, i
}
// Execute executes the request
func (a *SODPolicyApiService) DeleteSodPolicyScheduleByIdExecute(r ApiDeleteSodPolicyScheduleByIdRequest) (*http.Response, error) {
func (a *SODPolicyApiService) DeleteSodPolicyScheduleExecute(r ApiDeleteSodPolicyScheduleRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SODPolicyApiService.DeleteSodPolicyScheduleById")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SODPolicyApiService.DeleteSodPolicySchedule")
if err != nil {
return nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -1011,28 +1011,28 @@ func (a *SODPolicyApiService) GetSodAllReportRunStatusExecute(r ApiGetSodAllRepo
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiGetSodPolicyByIdRequest struct {
type ApiGetSodPolicyRequest struct {
ctx context.Context
ApiService *SODPolicyApiService
id string
}
func (r ApiGetSodPolicyByIdRequest) Execute() (*SodPolicy, *http.Response, error) {
return r.ApiService.GetSodPolicyByIdExecute(r)
func (r ApiGetSodPolicyRequest) Execute() (*SodPolicy, *http.Response, error) {
return r.ApiService.GetSodPolicyExecute(r)
}
/*
GetSodPolicyById Get SOD Policy By ID
GetSodPolicy Get SOD Policy By ID
This gets specified SOD policy.
Requires role of ORG_ADMIN.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The ID of the object reference to retrieve.
@return ApiGetSodPolicyByIdRequest
@return ApiGetSodPolicyRequest
*/
func (a *SODPolicyApiService) GetSodPolicyById(ctx context.Context, id string) ApiGetSodPolicyByIdRequest {
return ApiGetSodPolicyByIdRequest{
func (a *SODPolicyApiService) GetSodPolicy(ctx context.Context, id string) ApiGetSodPolicyRequest {
return ApiGetSodPolicyRequest{
ApiService: a,
ctx: ctx,
id: id,
@@ -1041,7 +1041,7 @@ func (a *SODPolicyApiService) GetSodPolicyById(ctx context.Context, id string) A
// Execute executes the request
// @return SodPolicy
func (a *SODPolicyApiService) GetSodPolicyByIdExecute(r ApiGetSodPolicyByIdRequest) (*SodPolicy, *http.Response, error) {
func (a *SODPolicyApiService) GetSodPolicyExecute(r ApiGetSodPolicyRequest) (*SodPolicy, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -1049,7 +1049,7 @@ func (a *SODPolicyApiService) GetSodPolicyByIdExecute(r ApiGetSodPolicyByIdReque
localVarReturnValue *SodPolicy
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SODPolicyApiService.GetSodPolicyById")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SODPolicyApiService.GetSodPolicy")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -1180,28 +1180,28 @@ func (a *SODPolicyApiService) GetSodPolicyByIdExecute(r ApiGetSodPolicyByIdReque
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiGetSodPolicyScheduleByIdRequest struct {
type ApiGetSodPolicyScheduleRequest struct {
ctx context.Context
ApiService *SODPolicyApiService
id string
}
func (r ApiGetSodPolicyScheduleByIdRequest) Execute() (*SodPolicySchedule, *http.Response, error) {
return r.ApiService.GetSodPolicyScheduleByIdExecute(r)
func (r ApiGetSodPolicyScheduleRequest) Execute() (*SodPolicySchedule, *http.Response, error) {
return r.ApiService.GetSodPolicyScheduleExecute(r)
}
/*
GetSodPolicyScheduleById Get SOD Policy Schedule
GetSodPolicySchedule Get SOD Policy Schedule
This gets schedule for a specified SOD policy.
Requires a role of ORG_ADMIN
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The ID of the object reference to retrieve.
@return ApiGetSodPolicyScheduleByIdRequest
@return ApiGetSodPolicyScheduleRequest
*/
func (a *SODPolicyApiService) GetSodPolicyScheduleById(ctx context.Context, id string) ApiGetSodPolicyScheduleByIdRequest {
return ApiGetSodPolicyScheduleByIdRequest{
func (a *SODPolicyApiService) GetSodPolicySchedule(ctx context.Context, id string) ApiGetSodPolicyScheduleRequest {
return ApiGetSodPolicyScheduleRequest{
ApiService: a,
ctx: ctx,
id: id,
@@ -1210,7 +1210,7 @@ func (a *SODPolicyApiService) GetSodPolicyScheduleById(ctx context.Context, id s
// Execute executes the request
// @return SodPolicySchedule
func (a *SODPolicyApiService) GetSodPolicyScheduleByIdExecute(r ApiGetSodPolicyScheduleByIdRequest) (*SodPolicySchedule, *http.Response, error) {
func (a *SODPolicyApiService) GetSodPolicyScheduleExecute(r ApiGetSodPolicyScheduleRequest) (*SodPolicySchedule, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -1218,7 +1218,7 @@ func (a *SODPolicyApiService) GetSodPolicyScheduleByIdExecute(r ApiGetSodPolicyS
localVarReturnValue *SodPolicySchedule
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SODPolicyApiService.GetSodPolicyScheduleById")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SODPolicyApiService.GetSodPolicySchedule")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -2051,32 +2051,32 @@ func (a *SODPolicyApiService) PatchSodPolicyExecute(r ApiPatchSodPolicyRequest)
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiRunAllPoliciesForOrgRequest struct {
type ApiRunSodAllPoliciesForOrgRequest struct {
ctx context.Context
ApiService *SODPolicyApiService
multiPolicyRequest *MultiPolicyRequest
}
func (r ApiRunAllPoliciesForOrgRequest) MultiPolicyRequest(multiPolicyRequest MultiPolicyRequest) ApiRunAllPoliciesForOrgRequest {
func (r ApiRunSodAllPoliciesForOrgRequest) MultiPolicyRequest(multiPolicyRequest MultiPolicyRequest) ApiRunSodAllPoliciesForOrgRequest {
r.multiPolicyRequest = &multiPolicyRequest
return r
}
func (r ApiRunAllPoliciesForOrgRequest) Execute() (*ReportResultReference, *http.Response, error) {
return r.ApiService.RunAllPoliciesForOrgExecute(r)
func (r ApiRunSodAllPoliciesForOrgRequest) Execute() (*ReportResultReference, *http.Response, error) {
return r.ApiService.RunSodAllPoliciesForOrgExecute(r)
}
/*
RunAllPoliciesForOrg Runs all policies for Org.
RunSodAllPoliciesForOrg Runs all policies for Org.
Runs multi policy report for the Org. If a policy reports more than 5000 violation, the report mentions Violation limit exceeded for that policy. If the request is empty, report will run for all policies. Otherwise, report will run only for the filtered policy list provided.
Requires role of ORG_ADMIN.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiRunAllPoliciesForOrgRequest
@return ApiRunSodAllPoliciesForOrgRequest
*/
func (a *SODPolicyApiService) RunAllPoliciesForOrg(ctx context.Context) ApiRunAllPoliciesForOrgRequest {
return ApiRunAllPoliciesForOrgRequest{
func (a *SODPolicyApiService) RunSodAllPoliciesForOrg(ctx context.Context) ApiRunSodAllPoliciesForOrgRequest {
return ApiRunSodAllPoliciesForOrgRequest{
ApiService: a,
ctx: ctx,
}
@@ -2084,7 +2084,7 @@ func (a *SODPolicyApiService) RunAllPoliciesForOrg(ctx context.Context) ApiRunAl
// Execute executes the request
// @return ReportResultReference
func (a *SODPolicyApiService) RunAllPoliciesForOrgExecute(r ApiRunAllPoliciesForOrgRequest) (*ReportResultReference, *http.Response, error) {
func (a *SODPolicyApiService) RunSodAllPoliciesForOrgExecute(r ApiRunSodAllPoliciesForOrgRequest) (*ReportResultReference, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
@@ -2092,7 +2092,7 @@ func (a *SODPolicyApiService) RunAllPoliciesForOrgExecute(r ApiRunAllPoliciesFor
localVarReturnValue *ReportResultReference
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SODPolicyApiService.RunAllPoliciesForOrg")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SODPolicyApiService.RunSodAllPoliciesForOrg")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -2382,34 +2382,203 @@ func (a *SODPolicyApiService) RunSodPolicyExecute(r ApiRunSodPolicyRequest) (*Re
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiUpdatePolicyByIdRequest struct {
type ApiUpdatePolicyScheduleRequest struct {
ctx context.Context
ApiService *SODPolicyApiService
id string
sodPolicySchedule *SodPolicySchedule
}
func (r ApiUpdatePolicyScheduleRequest) SodPolicySchedule(sodPolicySchedule SodPolicySchedule) ApiUpdatePolicyScheduleRequest {
r.sodPolicySchedule = &sodPolicySchedule
return r
}
func (r ApiUpdatePolicyScheduleRequest) Execute() (*SodPolicySchedule, *http.Response, error) {
return r.ApiService.UpdatePolicyScheduleExecute(r)
}
/*
UpdatePolicySchedule Update SOD Policy schedule
This updates schedule for a specified SOD policy.
Requires role of ORG_ADMIN
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The ID of the SOD policy to update its schedule.
@return ApiUpdatePolicyScheduleRequest
*/
func (a *SODPolicyApiService) UpdatePolicySchedule(ctx context.Context, id string) ApiUpdatePolicyScheduleRequest {
return ApiUpdatePolicyScheduleRequest{
ApiService: a,
ctx: ctx,
id: id,
}
}
// Execute executes the request
// @return SodPolicySchedule
func (a *SODPolicyApiService) UpdatePolicyScheduleExecute(r ApiUpdatePolicyScheduleRequest) (*SodPolicySchedule, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPut
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *SodPolicySchedule
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SODPolicyApiService.UpdatePolicySchedule")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/sod-policies/{id}/schedule"
localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1)
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if r.sodPolicySchedule == nil {
return localVarReturnValue, nil, reportError("sodPolicySchedule is required and must be specified")
}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{"application/json"}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
if localVarHTTPContentType != "" {
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := []string{"application/json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
localVarPostBody = r.sodPolicySchedule
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return localVarReturnValue, nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
return localVarReturnValue, localVarHTTPResponse, err
}
localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body.Close()
localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody))
if err != nil {
return localVarReturnValue, localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 400 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 401 {
var v ListAccessProfiles401Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 403 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 429 {
var v ListAccessProfiles429Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 500 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: err.Error(),
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiUpdateSodPolicyRequest struct {
ctx context.Context
ApiService *SODPolicyApiService
id string
sodPolicy *SodPolicy
}
func (r ApiUpdatePolicyByIdRequest) SodPolicy(sodPolicy SodPolicy) ApiUpdatePolicyByIdRequest {
func (r ApiUpdateSodPolicyRequest) SodPolicy(sodPolicy SodPolicy) ApiUpdateSodPolicyRequest {
r.sodPolicy = &sodPolicy
return r
}
func (r ApiUpdatePolicyByIdRequest) Execute() (*SodPolicy, *http.Response, error) {
return r.ApiService.UpdatePolicyByIdExecute(r)
func (r ApiUpdateSodPolicyRequest) Execute() (*SodPolicy, *http.Response, error) {
return r.ApiService.UpdateSodPolicyExecute(r)
}
/*
UpdatePolicyById Update SOD Policy By ID
UpdateSodPolicy Update SOD Policy By ID
This updates a specified SOD policy.
Requires role of ORG_ADMIN.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The ID of the SOD policy to update.
@return ApiUpdatePolicyByIdRequest
@return ApiUpdateSodPolicyRequest
*/
func (a *SODPolicyApiService) UpdatePolicyById(ctx context.Context, id string) ApiUpdatePolicyByIdRequest {
return ApiUpdatePolicyByIdRequest{
func (a *SODPolicyApiService) UpdateSodPolicy(ctx context.Context, id string) ApiUpdateSodPolicyRequest {
return ApiUpdateSodPolicyRequest{
ApiService: a,
ctx: ctx,
id: id,
@@ -2418,7 +2587,7 @@ func (a *SODPolicyApiService) UpdatePolicyById(ctx context.Context, id string) A
// Execute executes the request
// @return SodPolicy
func (a *SODPolicyApiService) UpdatePolicyByIdExecute(r ApiUpdatePolicyByIdRequest) (*SodPolicy, *http.Response, error) {
func (a *SODPolicyApiService) UpdateSodPolicyExecute(r ApiUpdateSodPolicyRequest) (*SodPolicy, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPut
localVarPostBody interface{}
@@ -2426,7 +2595,7 @@ func (a *SODPolicyApiService) UpdatePolicyByIdExecute(r ApiUpdatePolicyByIdReque
localVarReturnValue *SodPolicy
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SODPolicyApiService.UpdatePolicyById")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SODPolicyApiService.UpdateSodPolicy")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -2561,172 +2730,3 @@ func (a *SODPolicyApiService) UpdatePolicyByIdExecute(r ApiUpdatePolicyByIdReque
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiUpdatePolicyScheduleByIdRequest struct {
ctx context.Context
ApiService *SODPolicyApiService
id string
sodPolicySchedule *SodPolicySchedule
}
func (r ApiUpdatePolicyScheduleByIdRequest) SodPolicySchedule(sodPolicySchedule SodPolicySchedule) ApiUpdatePolicyScheduleByIdRequest {
r.sodPolicySchedule = &sodPolicySchedule
return r
}
func (r ApiUpdatePolicyScheduleByIdRequest) Execute() (*SodPolicySchedule, *http.Response, error) {
return r.ApiService.UpdatePolicyScheduleByIdExecute(r)
}
/*
UpdatePolicyScheduleById Update SOD Policy schedule
This updates schedule for a specified SOD policy.
Requires role of ORG_ADMIN
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The ID of the SOD policy to update its schedule.
@return ApiUpdatePolicyScheduleByIdRequest
*/
func (a *SODPolicyApiService) UpdatePolicyScheduleById(ctx context.Context, id string) ApiUpdatePolicyScheduleByIdRequest {
return ApiUpdatePolicyScheduleByIdRequest{
ApiService: a,
ctx: ctx,
id: id,
}
}
// Execute executes the request
// @return SodPolicySchedule
func (a *SODPolicyApiService) UpdatePolicyScheduleByIdExecute(r ApiUpdatePolicyScheduleByIdRequest) (*SodPolicySchedule, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPut
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *SodPolicySchedule
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SODPolicyApiService.UpdatePolicyScheduleById")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/sod-policies/{id}/schedule"
localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1)
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if r.sodPolicySchedule == nil {
return localVarReturnValue, nil, reportError("sodPolicySchedule is required and must be specified")
}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{"application/json"}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
if localVarHTTPContentType != "" {
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := []string{"application/json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
// body params
localVarPostBody = r.sodPolicySchedule
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return localVarReturnValue, nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
return localVarReturnValue, localVarHTTPResponse, err
}
localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body.Close()
localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody))
if err != nil {
return localVarReturnValue, localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 400 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 401 {
var v ListAccessProfiles401Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 403 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 429 {
var v ListAccessProfiles429Response
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 500 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: err.Error(),
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
return localVarReturnValue, localVarHTTPResponse, nil
}

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"
@@ -22,33 +22,33 @@ import (
// SODViolationsApiService SODViolationsApi service
type SODViolationsApiService service
type ApiPredictViolationsRequest struct {
type ApiPredictSodViolationsRequest struct {
ctx context.Context
ApiService *SODViolationsApiService
identityWithNewAccess *IdentityWithNewAccess
}
func (r ApiPredictViolationsRequest) IdentityWithNewAccess(identityWithNewAccess IdentityWithNewAccess) ApiPredictViolationsRequest {
func (r ApiPredictSodViolationsRequest) IdentityWithNewAccess(identityWithNewAccess IdentityWithNewAccess) ApiPredictSodViolationsRequest {
r.identityWithNewAccess = &identityWithNewAccess
return r
}
func (r ApiPredictViolationsRequest) Execute() (*ViolationPrediction, *http.Response, error) {
return r.ApiService.PredictViolationsExecute(r)
func (r ApiPredictSodViolationsRequest) Execute() (*ViolationPrediction, *http.Response, error) {
return r.ApiService.PredictSodViolationsExecute(r)
}
/*
PredictViolations Predict SOD violations for the given identity if they were granted the given access.
PredictSodViolations Predict SOD violations for the given identity if they were granted the given access.
This API is used to check if granting some additional accesses would cause the subject to be in violation of any SOD policies. Returns the violations that would be caused.
A token with ORG_ADMIN or API authority is required to call this API.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiPredictViolationsRequest
@return ApiPredictSodViolationsRequest
*/
func (a *SODViolationsApiService) PredictViolations(ctx context.Context) ApiPredictViolationsRequest {
return ApiPredictViolationsRequest{
func (a *SODViolationsApiService) PredictSodViolations(ctx context.Context) ApiPredictSodViolationsRequest {
return ApiPredictSodViolationsRequest{
ApiService: a,
ctx: ctx,
}
@@ -56,7 +56,7 @@ func (a *SODViolationsApiService) PredictViolations(ctx context.Context) ApiPred
// Execute executes the request
// @return ViolationPrediction
func (a *SODViolationsApiService) PredictViolationsExecute(r ApiPredictViolationsRequest) (*ViolationPrediction, *http.Response, error) {
func (a *SODViolationsApiService) PredictSodViolationsExecute(r ApiPredictSodViolationsRequest) (*ViolationPrediction, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
@@ -64,7 +64,7 @@ func (a *SODViolationsApiService) PredictViolationsExecute(r ApiPredictViolation
localVarReturnValue *ViolationPrediction
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SODViolationsApiService.PredictViolations")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SODViolationsApiService.PredictSodViolations")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}

File diff suppressed because it is too large Load Diff

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"
@@ -23,34 +23,34 @@ import (
// SPConfigApiService SPConfigApi service
type SPConfigApiService service
type ApiSpConfigExportRequest struct {
type ApiExportSpConfigRequest struct {
ctx context.Context
ApiService *SPConfigApiService
exportPayload *ExportPayload
}
// Export options control what will be included in the export.
func (r ApiSpConfigExportRequest) ExportPayload(exportPayload ExportPayload) ApiSpConfigExportRequest {
func (r ApiExportSpConfigRequest) ExportPayload(exportPayload ExportPayload) ApiExportSpConfigRequest {
r.exportPayload = &exportPayload
return r
}
func (r ApiSpConfigExportRequest) Execute() (*SpConfigJob, *http.Response, error) {
return r.ApiService.SpConfigExportExecute(r)
func (r ApiExportSpConfigRequest) Execute() (*SpConfigJob, *http.Response, error) {
return r.ApiService.ExportSpConfigExecute(r)
}
/*
SpConfigExport Initiates Configuration Objects Export Job.
ExportSpConfig Initiates Configuration Objects Export Job.
This post will export objects from the tenant to a JSON configuration file.
Request will need one of the following security scopes:
- sp:config:read - sp:config:manage
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiSpConfigExportRequest
@return ApiExportSpConfigRequest
*/
func (a *SPConfigApiService) SpConfigExport(ctx context.Context) ApiSpConfigExportRequest {
return ApiSpConfigExportRequest{
func (a *SPConfigApiService) ExportSpConfig(ctx context.Context) ApiExportSpConfigRequest {
return ApiExportSpConfigRequest{
ApiService: a,
ctx: ctx,
}
@@ -58,7 +58,7 @@ func (a *SPConfigApiService) SpConfigExport(ctx context.Context) ApiSpConfigExpo
// Execute executes the request
// @return SpConfigJob
func (a *SPConfigApiService) SpConfigExportExecute(r ApiSpConfigExportRequest) (*SpConfigJob, *http.Response, error) {
func (a *SPConfigApiService) ExportSpConfigExecute(r ApiExportSpConfigRequest) (*SpConfigJob, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
@@ -66,7 +66,7 @@ func (a *SPConfigApiService) SpConfigExportExecute(r ApiSpConfigExportRequest) (
localVarReturnValue *SpConfigJob
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SPConfigApiService.SpConfigExport")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SPConfigApiService.ExportSpConfig")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -201,18 +201,18 @@ func (a *SPConfigApiService) SpConfigExportExecute(r ApiSpConfigExportRequest) (
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiSpConfigExportDownloadRequest struct {
type ApiExportSpConfigDownloadRequest struct {
ctx context.Context
ApiService *SPConfigApiService
id string
}
func (r ApiSpConfigExportDownloadRequest) Execute() (*SpConfigExportResults, *http.Response, error) {
return r.ApiService.SpConfigExportDownloadExecute(r)
func (r ApiExportSpConfigDownloadRequest) Execute() (*SpConfigExportResults, *http.Response, error) {
return r.ApiService.ExportSpConfigDownloadExecute(r)
}
/*
SpConfigExportDownload Download Result of Export Job
ExportSpConfigDownload Download Result of Export Job
This gets export file resulting from the export job with the requested id and downloads it to a file.
Request will need one of the following security scopes:
@@ -220,10 +220,10 @@ Request will need one of the following security scopes:
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The ID of the export job for which the results will be downloaded.
@return ApiSpConfigExportDownloadRequest
@return ApiExportSpConfigDownloadRequest
*/
func (a *SPConfigApiService) SpConfigExportDownload(ctx context.Context, id string) ApiSpConfigExportDownloadRequest {
return ApiSpConfigExportDownloadRequest{
func (a *SPConfigApiService) ExportSpConfigDownload(ctx context.Context, id string) ApiExportSpConfigDownloadRequest {
return ApiExportSpConfigDownloadRequest{
ApiService: a,
ctx: ctx,
id: id,
@@ -232,7 +232,7 @@ func (a *SPConfigApiService) SpConfigExportDownload(ctx context.Context, id stri
// Execute executes the request
// @return SpConfigExportResults
func (a *SPConfigApiService) SpConfigExportDownloadExecute(r ApiSpConfigExportDownloadRequest) (*SpConfigExportResults, *http.Response, error) {
func (a *SPConfigApiService) ExportSpConfigDownloadExecute(r ApiExportSpConfigDownloadRequest) (*SpConfigExportResults, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -240,7 +240,7 @@ func (a *SPConfigApiService) SpConfigExportDownloadExecute(r ApiSpConfigExportDo
localVarReturnValue *SpConfigExportResults
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SPConfigApiService.SpConfigExportDownload")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SPConfigApiService.ExportSpConfigDownload")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -371,18 +371,18 @@ func (a *SPConfigApiService) SpConfigExportDownloadExecute(r ApiSpConfigExportDo
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiSpConfigExportJobStatusRequest struct {
type ApiExportSpConfigJobStatusRequest struct {
ctx context.Context
ApiService *SPConfigApiService
id string
}
func (r ApiSpConfigExportJobStatusRequest) Execute() (*SpConfigJob, *http.Response, error) {
return r.ApiService.SpConfigExportJobStatusExecute(r)
func (r ApiExportSpConfigJobStatusRequest) Execute() (*SpConfigJob, *http.Response, error) {
return r.ApiService.ExportSpConfigJobStatusExecute(r)
}
/*
SpConfigExportJobStatus Get Status of Export Job
ExportSpConfigJobStatus Get Status of Export Job
This gets the status of the export job identified by the id parameter.
Request will need one of the following security scopes:
@@ -390,10 +390,10 @@ Request will need one of the following security scopes:
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The ID of the export job for which status will be returned.
@return ApiSpConfigExportJobStatusRequest
@return ApiExportSpConfigJobStatusRequest
*/
func (a *SPConfigApiService) SpConfigExportJobStatus(ctx context.Context, id string) ApiSpConfigExportJobStatusRequest {
return ApiSpConfigExportJobStatusRequest{
func (a *SPConfigApiService) ExportSpConfigJobStatus(ctx context.Context, id string) ApiExportSpConfigJobStatusRequest {
return ApiExportSpConfigJobStatusRequest{
ApiService: a,
ctx: ctx,
id: id,
@@ -402,7 +402,7 @@ func (a *SPConfigApiService) SpConfigExportJobStatus(ctx context.Context, id str
// Execute executes the request
// @return SpConfigJob
func (a *SPConfigApiService) SpConfigExportJobStatusExecute(r ApiSpConfigExportJobStatusRequest) (*SpConfigJob, *http.Response, error) {
func (a *SPConfigApiService) ExportSpConfigJobStatusExecute(r ApiExportSpConfigJobStatusRequest) (*SpConfigJob, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -410,7 +410,7 @@ func (a *SPConfigApiService) SpConfigExportJobStatusExecute(r ApiSpConfigExportJ
localVarReturnValue *SpConfigJob
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SPConfigApiService.SpConfigExportJobStatus")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SPConfigApiService.ExportSpConfigJobStatus")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -541,7 +541,7 @@ func (a *SPConfigApiService) SpConfigExportJobStatusExecute(r ApiSpConfigExportJ
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiSpConfigImportRequest struct {
type ApiImportSpConfigRequest struct {
ctx context.Context
ApiService *SPConfigApiService
data *string
@@ -550,38 +550,38 @@ type ApiSpConfigImportRequest struct {
}
// Name of JSON file containing the objects to be imported.
func (r ApiSpConfigImportRequest) Data(data string) ApiSpConfigImportRequest {
func (r ApiImportSpConfigRequest) Data(data string) ApiImportSpConfigRequest {
r.data = &data
return r
}
// This option is intended to give the user information about how an import operation would proceed, without having any affect on the target tenant. If true, no objects will be imported. Instead, the import process will pre-process the import file and attempt to resolve references within imported objects. The import result file will contain messages pertaining to how specific references were resolved, any errors associated with the preprocessing, and messages indicating which objects would be imported.
func (r ApiSpConfigImportRequest) Preview(preview bool) ApiSpConfigImportRequest {
func (r ApiImportSpConfigRequest) Preview(preview bool) ApiImportSpConfigRequest {
r.preview = &preview
return r
}
func (r ApiSpConfigImportRequest) Options(options ImportOptions) ApiSpConfigImportRequest {
func (r ApiImportSpConfigRequest) Options(options ImportOptions) ApiImportSpConfigRequest {
r.options = &options
return r
}
func (r ApiSpConfigImportRequest) Execute() (*SpConfigJob, *http.Response, error) {
return r.ApiService.SpConfigImportExecute(r)
func (r ApiImportSpConfigRequest) Execute() (*SpConfigJob, *http.Response, error) {
return r.ApiService.ImportSpConfigExecute(r)
}
/*
SpConfigImport Initiates Configuration Objects Import Job.
ImportSpConfig Initiates Configuration Objects Import Job.
This post will import objects from a JSON configuration file into a tenant. By default, every import will first export all existing objects supported by sp-config as a backup before the import is attempted. The backup is provided so that the state of the configuration prior to the import is available for inspection or restore if needed. The backup can be skipped by setting "excludeBackup" to true in the import options. If a backup is performed, the id of the backup will be provided in the ImportResult as the "exportJobId". This can be downloaded using the /sp-config/export/{exportJobId}/download endpoint.
Request will need the following security scope:
- sp:config:manage
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiSpConfigImportRequest
@return ApiImportSpConfigRequest
*/
func (a *SPConfigApiService) SpConfigImport(ctx context.Context) ApiSpConfigImportRequest {
return ApiSpConfigImportRequest{
func (a *SPConfigApiService) ImportSpConfig(ctx context.Context) ApiImportSpConfigRequest {
return ApiImportSpConfigRequest{
ApiService: a,
ctx: ctx,
}
@@ -589,7 +589,7 @@ func (a *SPConfigApiService) SpConfigImport(ctx context.Context) ApiSpConfigImpo
// Execute executes the request
// @return SpConfigJob
func (a *SPConfigApiService) SpConfigImportExecute(r ApiSpConfigImportRequest) (*SpConfigJob, *http.Response, error) {
func (a *SPConfigApiService) ImportSpConfigExecute(r ApiImportSpConfigRequest) (*SpConfigJob, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
@@ -597,7 +597,7 @@ func (a *SPConfigApiService) SpConfigImportExecute(r ApiSpConfigImportRequest) (
localVarReturnValue *SpConfigJob
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SPConfigApiService.SpConfigImport")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SPConfigApiService.ImportSpConfig")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -741,18 +741,18 @@ func (a *SPConfigApiService) SpConfigImportExecute(r ApiSpConfigImportRequest) (
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiSpConfigImportDownloadRequest struct {
type ApiImportSpConfigDownloadRequest struct {
ctx context.Context
ApiService *SPConfigApiService
id string
}
func (r ApiSpConfigImportDownloadRequest) Execute() (*SpConfigImportResults, *http.Response, error) {
return r.ApiService.SpConfigImportDownloadExecute(r)
func (r ApiImportSpConfigDownloadRequest) Execute() (*SpConfigImportResults, *http.Response, error) {
return r.ApiService.ImportSpConfigDownloadExecute(r)
}
/*
SpConfigImportDownload Download Result of Import Job
ImportSpConfigDownload Download Result of Import Job
This gets import file resulting from the import job with the requested id and downloads it to a file. The downloaded file will contain the results of the import operation, including any error, warning or informational messages associated with the import.
Request will need the following security scope:
@@ -760,10 +760,10 @@ Request will need the following security scope:
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The ID of the import job for which the results will be downloaded.
@return ApiSpConfigImportDownloadRequest
@return ApiImportSpConfigDownloadRequest
*/
func (a *SPConfigApiService) SpConfigImportDownload(ctx context.Context, id string) ApiSpConfigImportDownloadRequest {
return ApiSpConfigImportDownloadRequest{
func (a *SPConfigApiService) ImportSpConfigDownload(ctx context.Context, id string) ApiImportSpConfigDownloadRequest {
return ApiImportSpConfigDownloadRequest{
ApiService: a,
ctx: ctx,
id: id,
@@ -772,7 +772,7 @@ func (a *SPConfigApiService) SpConfigImportDownload(ctx context.Context, id stri
// Execute executes the request
// @return SpConfigImportResults
func (a *SPConfigApiService) SpConfigImportDownloadExecute(r ApiSpConfigImportDownloadRequest) (*SpConfigImportResults, *http.Response, error) {
func (a *SPConfigApiService) ImportSpConfigDownloadExecute(r ApiImportSpConfigDownloadRequest) (*SpConfigImportResults, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -780,7 +780,7 @@ func (a *SPConfigApiService) SpConfigImportDownloadExecute(r ApiSpConfigImportDo
localVarReturnValue *SpConfigImportResults
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SPConfigApiService.SpConfigImportDownload")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SPConfigApiService.ImportSpConfigDownload")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -911,18 +911,18 @@ func (a *SPConfigApiService) SpConfigImportDownloadExecute(r ApiSpConfigImportDo
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiSpConfigImportJobStatusRequest struct {
type ApiImportSpConfigJobStatusRequest struct {
ctx context.Context
ApiService *SPConfigApiService
id string
}
func (r ApiSpConfigImportJobStatusRequest) Execute() (*SpConfigJob, *http.Response, error) {
return r.ApiService.SpConfigImportJobStatusExecute(r)
func (r ApiImportSpConfigJobStatusRequest) Execute() (*SpConfigJob, *http.Response, error) {
return r.ApiService.ImportSpConfigJobStatusExecute(r)
}
/*
SpConfigImportJobStatus Get Status of Import Job
ImportSpConfigJobStatus Get Status of Import Job
This gets the status of the import job identified by the id parameter.
Request will need the following security scope:
@@ -930,10 +930,10 @@ Request will need the following security scope:
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The ID of the import job for which status will be returned.
@return ApiSpConfigImportJobStatusRequest
@return ApiImportSpConfigJobStatusRequest
*/
func (a *SPConfigApiService) SpConfigImportJobStatus(ctx context.Context, id string) ApiSpConfigImportJobStatusRequest {
return ApiSpConfigImportJobStatusRequest{
func (a *SPConfigApiService) ImportSpConfigJobStatus(ctx context.Context, id string) ApiImportSpConfigJobStatusRequest {
return ApiImportSpConfigJobStatusRequest{
ApiService: a,
ctx: ctx,
id: id,
@@ -942,7 +942,7 @@ func (a *SPConfigApiService) SpConfigImportJobStatus(ctx context.Context, id str
// Execute executes the request
// @return SpConfigJob
func (a *SPConfigApiService) SpConfigImportJobStatusExecute(r ApiSpConfigImportJobStatusRequest) (*SpConfigJob, *http.Response, error) {
func (a *SPConfigApiService) ImportSpConfigJobStatusExecute(r ApiImportSpConfigJobStatusRequest) (*SpConfigJob, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -950,7 +950,7 @@ func (a *SPConfigApiService) SpConfigImportJobStatusExecute(r ApiSpConfigImportJ
localVarReturnValue *SpConfigJob
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SPConfigApiService.SpConfigImportJobStatus")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SPConfigApiService.ImportSpConfigJobStatus")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -1081,27 +1081,27 @@ func (a *SPConfigApiService) SpConfigImportJobStatusExecute(r ApiSpConfigImportJ
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiSpConfigObjectsRequest struct {
type ApiListSpConfigObjectsRequest struct {
ctx context.Context
ApiService *SPConfigApiService
}
func (r ApiSpConfigObjectsRequest) Execute() ([]SpConfigObject, *http.Response, error) {
return r.ApiService.SpConfigObjectsExecute(r)
func (r ApiListSpConfigObjectsRequest) Execute() ([]SpConfigObject, *http.Response, error) {
return r.ApiService.ListSpConfigObjectsExecute(r)
}
/*
SpConfigObjects Get Config Object details
ListSpConfigObjects Get Config Object details
This gets the list of object configurations which are known to the tenant export/import service. Object configurations that contain "importUrl" and "exportUrl" are available for export/import.
Request will need one of the following security scopes:
- sp:config:read - sp:config:manage
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiSpConfigObjectsRequest
@return ApiListSpConfigObjectsRequest
*/
func (a *SPConfigApiService) SpConfigObjects(ctx context.Context) ApiSpConfigObjectsRequest {
return ApiSpConfigObjectsRequest{
func (a *SPConfigApiService) ListSpConfigObjects(ctx context.Context) ApiListSpConfigObjectsRequest {
return ApiListSpConfigObjectsRequest{
ApiService: a,
ctx: ctx,
}
@@ -1109,7 +1109,7 @@ func (a *SPConfigApiService) SpConfigObjects(ctx context.Context) ApiSpConfigObj
// Execute executes the request
// @return []SpConfigObject
func (a *SPConfigApiService) SpConfigObjectsExecute(r ApiSpConfigObjectsRequest) ([]SpConfigObject, *http.Response, error) {
func (a *SPConfigApiService) ListSpConfigObjectsExecute(r ApiListSpConfigObjectsRequest) ([]SpConfigObject, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -1117,7 +1117,7 @@ func (a *SPConfigApiService) SpConfigObjectsExecute(r ApiSpConfigObjectsRequest)
localVarReturnValue []SpConfigObject
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SPConfigApiService.SpConfigObjects")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SPConfigApiService.ListSpConfigObjects")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"
@@ -356,29 +356,29 @@ func (a *TaggedObjectsApiService) AddTagsToManyObjectsExecute(r ApiAddTagsToMany
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiDeleteTaggedObjectByTypeAndIdRequest struct {
type ApiDeleteTaggedObjectRequest struct {
ctx context.Context
ApiService *TaggedObjectsApiService
type_ string
id string
}
func (r ApiDeleteTaggedObjectByTypeAndIdRequest) Execute() (*http.Response, error) {
return r.ApiService.DeleteTaggedObjectByTypeAndIdExecute(r)
func (r ApiDeleteTaggedObjectRequest) Execute() (*http.Response, error) {
return r.ApiService.DeleteTaggedObjectExecute(r)
}
/*
DeleteTaggedObjectByTypeAndId Delete Tagged Object
DeleteTaggedObject Delete Tagged Object
This deletes a tagged object for the specified type.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param type_ The type of tagged object to delete.
@param id The ID of the object reference to delete.
@return ApiDeleteTaggedObjectByTypeAndIdRequest
@return ApiDeleteTaggedObjectRequest
*/
func (a *TaggedObjectsApiService) DeleteTaggedObjectByTypeAndId(ctx context.Context, type_ string, id string) ApiDeleteTaggedObjectByTypeAndIdRequest {
return ApiDeleteTaggedObjectByTypeAndIdRequest{
func (a *TaggedObjectsApiService) DeleteTaggedObject(ctx context.Context, type_ string, id string) ApiDeleteTaggedObjectRequest {
return ApiDeleteTaggedObjectRequest{
ApiService: a,
ctx: ctx,
type_: type_,
@@ -387,14 +387,14 @@ func (a *TaggedObjectsApiService) DeleteTaggedObjectByTypeAndId(ctx context.Cont
}
// Execute executes the request
func (a *TaggedObjectsApiService) DeleteTaggedObjectByTypeAndIdExecute(r ApiDeleteTaggedObjectByTypeAndIdRequest) (*http.Response, error) {
func (a *TaggedObjectsApiService) DeleteTaggedObjectExecute(r ApiDeleteTaggedObjectRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodDelete
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TaggedObjectsApiService.DeleteTaggedObjectByTypeAndId")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TaggedObjectsApiService.DeleteTaggedObject")
if err != nil {
return nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -506,29 +506,29 @@ func (a *TaggedObjectsApiService) DeleteTaggedObjectByTypeAndIdExecute(r ApiDele
return localVarHTTPResponse, nil
}
type ApiGetTaggedObjectByTypeAndIdRequest struct {
type ApiGetTaggedObjectRequest struct {
ctx context.Context
ApiService *TaggedObjectsApiService
type_ string
id string
}
func (r ApiGetTaggedObjectByTypeAndIdRequest) Execute() (*TaggedObject, *http.Response, error) {
return r.ApiService.GetTaggedObjectByTypeAndIdExecute(r)
func (r ApiGetTaggedObjectRequest) Execute() (*TaggedObject, *http.Response, error) {
return r.ApiService.GetTaggedObjectExecute(r)
}
/*
GetTaggedObjectByTypeAndId Get Tagged Object
GetTaggedObject Get Tagged Object
This gets a tagged object for the specified type.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param type_ The type of tagged object to retrieve.
@param id The ID of the object reference to retrieve.
@return ApiGetTaggedObjectByTypeAndIdRequest
@return ApiGetTaggedObjectRequest
*/
func (a *TaggedObjectsApiService) GetTaggedObjectByTypeAndId(ctx context.Context, type_ string, id string) ApiGetTaggedObjectByTypeAndIdRequest {
return ApiGetTaggedObjectByTypeAndIdRequest{
func (a *TaggedObjectsApiService) GetTaggedObject(ctx context.Context, type_ string, id string) ApiGetTaggedObjectRequest {
return ApiGetTaggedObjectRequest{
ApiService: a,
ctx: ctx,
type_: type_,
@@ -538,7 +538,7 @@ func (a *TaggedObjectsApiService) GetTaggedObjectByTypeAndId(ctx context.Context
// Execute executes the request
// @return TaggedObject
func (a *TaggedObjectsApiService) GetTaggedObjectByTypeAndIdExecute(r ApiGetTaggedObjectByTypeAndIdRequest) (*TaggedObject, *http.Response, error) {
func (a *TaggedObjectsApiService) GetTaggedObjectExecute(r ApiGetTaggedObjectRequest) (*TaggedObject, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -546,7 +546,7 @@ func (a *TaggedObjectsApiService) GetTaggedObjectByTypeAndIdExecute(r ApiGetTagg
localVarReturnValue *TaggedObject
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TaggedObjectsApiService.GetTaggedObjectByTypeAndId")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TaggedObjectsApiService.GetTaggedObject")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -1217,7 +1217,7 @@ func (a *TaggedObjectsApiService) RemoveTagsToManyObjectExecute(r ApiRemoveTagsT
return localVarHTTPResponse, nil
}
type ApiUpdateTaggedObjectByTypeAndIdRequest struct {
type ApiUpdateTaggedObjectRequest struct {
ctx context.Context
ApiService *TaggedObjectsApiService
type_ string
@@ -1225,27 +1225,27 @@ type ApiUpdateTaggedObjectByTypeAndIdRequest struct {
taggedObject *TaggedObject
}
func (r ApiUpdateTaggedObjectByTypeAndIdRequest) TaggedObject(taggedObject TaggedObject) ApiUpdateTaggedObjectByTypeAndIdRequest {
func (r ApiUpdateTaggedObjectRequest) TaggedObject(taggedObject TaggedObject) ApiUpdateTaggedObjectRequest {
r.taggedObject = &taggedObject
return r
}
func (r ApiUpdateTaggedObjectByTypeAndIdRequest) Execute() (*TaggedObject, *http.Response, error) {
return r.ApiService.UpdateTaggedObjectByTypeAndIdExecute(r)
func (r ApiUpdateTaggedObjectRequest) Execute() (*TaggedObject, *http.Response, error) {
return r.ApiService.UpdateTaggedObjectExecute(r)
}
/*
UpdateTaggedObjectByTypeAndId Update Tagged Object
UpdateTaggedObject Update Tagged Object
This updates a tagged object for the specified type.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param type_ The type of tagged object to update.
@param id The ID of the object reference to update.
@return ApiUpdateTaggedObjectByTypeAndIdRequest
@return ApiUpdateTaggedObjectRequest
*/
func (a *TaggedObjectsApiService) UpdateTaggedObjectByTypeAndId(ctx context.Context, type_ string, id string) ApiUpdateTaggedObjectByTypeAndIdRequest {
return ApiUpdateTaggedObjectByTypeAndIdRequest{
func (a *TaggedObjectsApiService) UpdateTaggedObject(ctx context.Context, type_ string, id string) ApiUpdateTaggedObjectRequest {
return ApiUpdateTaggedObjectRequest{
ApiService: a,
ctx: ctx,
type_: type_,
@@ -1255,7 +1255,7 @@ func (a *TaggedObjectsApiService) UpdateTaggedObjectByTypeAndId(ctx context.Cont
// Execute executes the request
// @return TaggedObject
func (a *TaggedObjectsApiService) UpdateTaggedObjectByTypeAndIdExecute(r ApiUpdateTaggedObjectByTypeAndIdRequest) (*TaggedObject, *http.Response, error) {
func (a *TaggedObjectsApiService) UpdateTaggedObjectExecute(r ApiUpdateTaggedObjectRequest) (*TaggedObject, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPut
localVarPostBody interface{}
@@ -1263,7 +1263,7 @@ func (a *TaggedObjectsApiService) UpdateTaggedObjectByTypeAndIdExecute(r ApiUpda
localVarReturnValue *TaggedObject
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TaggedObjectsApiService.UpdateTaggedObjectByTypeAndId")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TaggedObjectsApiService.UpdateTaggedObject")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"
@@ -395,7 +395,7 @@ func (a *TransformsApiService) GetTransformExecute(r ApiGetTransformRequest) (*T
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiGetTransformsListRequest struct {
type ApiListTransformsRequest struct {
ctx context.Context
ApiService *TransformsApiService
offset *int32
@@ -406,50 +406,50 @@ type ApiGetTransformsListRequest struct {
}
// Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiGetTransformsListRequest) Offset(offset int32) ApiGetTransformsListRequest {
func (r ApiListTransformsRequest) Offset(offset int32) ApiListTransformsRequest {
r.offset = &offset
return r
}
// Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiGetTransformsListRequest) Limit(limit int32) ApiGetTransformsListRequest {
func (r ApiListTransformsRequest) Limit(limit int32) ApiListTransformsRequest {
r.limit = &limit
return r
}
// If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count&#x3D;true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiGetTransformsListRequest) Count(count bool) ApiGetTransformsListRequest {
func (r ApiListTransformsRequest) Count(count bool) ApiListTransformsRequest {
r.count = &count
return r
}
// Name of the transform to retrieve from the list.
func (r ApiGetTransformsListRequest) Name(name string) ApiGetTransformsListRequest {
func (r ApiListTransformsRequest) Name(name string) ApiListTransformsRequest {
r.name = &name
return r
}
// Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **internal**: *eq* **name**: *eq*, *sw*
func (r ApiGetTransformsListRequest) Filters(filters string) ApiGetTransformsListRequest {
func (r ApiListTransformsRequest) Filters(filters string) ApiListTransformsRequest {
r.filters = &filters
return r
}
func (r ApiGetTransformsListRequest) Execute() ([]Transform, *http.Response, error) {
return r.ApiService.GetTransformsListExecute(r)
func (r ApiListTransformsRequest) Execute() ([]Transform, *http.Response, error) {
return r.ApiService.ListTransformsExecute(r)
}
/*
GetTransformsList List transforms
ListTransforms List transforms
Gets a list of all saved transform objects.
A token with transforms-list read authority is required to call this API.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetTransformsListRequest
@return ApiListTransformsRequest
*/
func (a *TransformsApiService) GetTransformsList(ctx context.Context) ApiGetTransformsListRequest {
return ApiGetTransformsListRequest{
func (a *TransformsApiService) ListTransforms(ctx context.Context) ApiListTransformsRequest {
return ApiListTransformsRequest{
ApiService: a,
ctx: ctx,
}
@@ -457,7 +457,7 @@ func (a *TransformsApiService) GetTransformsList(ctx context.Context) ApiGetTran
// Execute executes the request
// @return []Transform
func (a *TransformsApiService) GetTransformsListExecute(r ApiGetTransformsListRequest) ([]Transform, *http.Response, error) {
func (a *TransformsApiService) ListTransformsExecute(r ApiListTransformsRequest) ([]Transform, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -465,7 +465,7 @@ func (a *TransformsApiService) GetTransformsListExecute(r ApiGetTransformsListRe
localVarReturnValue []Transform
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TransformsApiService.GetTransformsList")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TransformsApiService.ListTransforms")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"
@@ -23,33 +23,33 @@ import (
// TriggersApiService TriggersApi service
type TriggersApiService service
type ApiCompleteInvocationRequest struct {
type ApiCompleteTriggerInvocationRequest struct {
ctx context.Context
ApiService *TriggersApiService
id string
completeInvocation *CompleteInvocation
}
func (r ApiCompleteInvocationRequest) CompleteInvocation(completeInvocation CompleteInvocation) ApiCompleteInvocationRequest {
func (r ApiCompleteTriggerInvocationRequest) CompleteInvocation(completeInvocation CompleteInvocation) ApiCompleteTriggerInvocationRequest {
r.completeInvocation = &completeInvocation
return r
}
func (r ApiCompleteInvocationRequest) Execute() (*http.Response, error) {
return r.ApiService.CompleteInvocationExecute(r)
func (r ApiCompleteTriggerInvocationRequest) Execute() (*http.Response, error) {
return r.ApiService.CompleteTriggerInvocationExecute(r)
}
/*
CompleteInvocation Complete Trigger Invocation
CompleteTriggerInvocation Complete Trigger Invocation
Completes an invocation to a REQUEST_RESPONSE type trigger.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The ID of the invocation to complete.
@return ApiCompleteInvocationRequest
@return ApiCompleteTriggerInvocationRequest
*/
func (a *TriggersApiService) CompleteInvocation(ctx context.Context, id string) ApiCompleteInvocationRequest {
return ApiCompleteInvocationRequest{
func (a *TriggersApiService) CompleteTriggerInvocation(ctx context.Context, id string) ApiCompleteTriggerInvocationRequest {
return ApiCompleteTriggerInvocationRequest{
ApiService: a,
ctx: ctx,
id: id,
@@ -57,14 +57,14 @@ func (a *TriggersApiService) CompleteInvocation(ctx context.Context, id string)
}
// Execute executes the request
func (a *TriggersApiService) CompleteInvocationExecute(r ApiCompleteInvocationRequest) (*http.Response, error) {
func (a *TriggersApiService) CompleteTriggerInvocationExecute(r ApiCompleteTriggerInvocationRequest) (*http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TriggersApiService.CompleteInvocation")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TriggersApiService.CompleteTriggerInvocation")
if err != nil {
return nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -503,7 +503,7 @@ func (a *TriggersApiService) DeleteSubscriptionExecute(r ApiDeleteSubscriptionRe
return localVarHTTPResponse, nil
}
type ApiListInvocationStatusRequest struct {
type ApiListSubscriptionsRequest struct {
ctx context.Context
ApiService *TriggersApiService
limit *int32
@@ -514,72 +514,70 @@ type ApiListInvocationStatusRequest struct {
}
// Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiListInvocationStatusRequest) Limit(limit int32) ApiListInvocationStatusRequest {
func (r ApiListSubscriptionsRequest) Limit(limit int32) ApiListSubscriptionsRequest {
r.limit = &limit
return r
}
// Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiListInvocationStatusRequest) Offset(offset int32) ApiListInvocationStatusRequest {
func (r ApiListSubscriptionsRequest) Offset(offset int32) ApiListSubscriptionsRequest {
r.offset = &offset
return r
}
// If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count&#x3D;true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiListInvocationStatusRequest) Count(count bool) ApiListInvocationStatusRequest {
func (r ApiListSubscriptionsRequest) Count(count bool) ApiListSubscriptionsRequest {
r.count = &count
return r
}
// Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **triggerId**: *eq* **subscriptionId**: *eq*
func (r ApiListInvocationStatusRequest) Filters(filters string) ApiListInvocationStatusRequest {
// Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* **triggerId**: *eq* **type**: *eq*
func (r ApiListSubscriptionsRequest) Filters(filters string) ApiListSubscriptionsRequest {
r.filters = &filters
return r
}
// Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **triggerId** **subscriptionName** **created** **completed**
func (r ApiListInvocationStatusRequest) Sorters(sorters string) ApiListInvocationStatusRequest {
// Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **triggerId** **triggerName**
func (r ApiListSubscriptionsRequest) Sorters(sorters string) ApiListSubscriptionsRequest {
r.sorters = &sorters
return r
}
func (r ApiListInvocationStatusRequest) Execute() ([]InvocationStatus, *http.Response, error) {
return r.ApiService.ListInvocationStatusExecute(r)
func (r ApiListSubscriptionsRequest) Execute() ([]Subscription, *http.Response, error) {
return r.ApiService.ListSubscriptionsExecute(r)
}
/*
ListInvocationStatus List Latest Invocation Statuses
ListSubscriptions List Subscriptions
Gets a list of latest invocation statuses.
Statuses of successful invocations are available for up to 24 hours. Statuses of failed invocations are available for up to 48 hours.
This endpoint may only fetch up to 2000 invocations, and should not be treated as a representation of the full history of invocations.
Gets a list of all trigger subscriptions.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiListInvocationStatusRequest
@return ApiListSubscriptionsRequest
*/
func (a *TriggersApiService) ListInvocationStatus(ctx context.Context) ApiListInvocationStatusRequest {
return ApiListInvocationStatusRequest{
func (a *TriggersApiService) ListSubscriptions(ctx context.Context) ApiListSubscriptionsRequest {
return ApiListSubscriptionsRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
// @return []InvocationStatus
func (a *TriggersApiService) ListInvocationStatusExecute(r ApiListInvocationStatusRequest) ([]InvocationStatus, *http.Response, error) {
// @return []Subscription
func (a *TriggersApiService) ListSubscriptionsExecute(r ApiListSubscriptionsRequest) ([]Subscription, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue []InvocationStatus
localVarReturnValue []Subscription
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TriggersApiService.ListInvocationStatus")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TriggersApiService.ListSubscriptions")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/trigger-invocations/status"
localVarPath := localBasePath + "/trigger-subscriptions"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
@@ -708,7 +706,7 @@ func (a *TriggersApiService) ListInvocationStatusExecute(r ApiListInvocationStat
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiListSubscriptionsRequest struct {
type ApiListTriggerInvocationStatusRequest struct {
ctx context.Context
ApiService *TriggersApiService
limit *int32
@@ -719,70 +717,72 @@ type ApiListSubscriptionsRequest struct {
}
// Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiListSubscriptionsRequest) Limit(limit int32) ApiListSubscriptionsRequest {
func (r ApiListTriggerInvocationStatusRequest) Limit(limit int32) ApiListTriggerInvocationStatusRequest {
r.limit = &limit
return r
}
// Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiListSubscriptionsRequest) Offset(offset int32) ApiListSubscriptionsRequest {
func (r ApiListTriggerInvocationStatusRequest) Offset(offset int32) ApiListTriggerInvocationStatusRequest {
r.offset = &offset
return r
}
// If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count&#x3D;true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiListSubscriptionsRequest) Count(count bool) ApiListSubscriptionsRequest {
func (r ApiListTriggerInvocationStatusRequest) Count(count bool) ApiListTriggerInvocationStatusRequest {
r.count = &count
return r
}
// Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **id**: *eq* **triggerId**: *eq* **type**: *eq*
func (r ApiListSubscriptionsRequest) Filters(filters string) ApiListSubscriptionsRequest {
// Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **triggerId**: *eq* **subscriptionId**: *eq*
func (r ApiListTriggerInvocationStatusRequest) Filters(filters string) ApiListTriggerInvocationStatusRequest {
r.filters = &filters
return r
}
// Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **triggerId** **triggerName**
func (r ApiListSubscriptionsRequest) Sorters(sorters string) ApiListSubscriptionsRequest {
// Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **triggerId** **subscriptionName** **created** **completed**
func (r ApiListTriggerInvocationStatusRequest) Sorters(sorters string) ApiListTriggerInvocationStatusRequest {
r.sorters = &sorters
return r
}
func (r ApiListSubscriptionsRequest) Execute() ([]Subscription, *http.Response, error) {
return r.ApiService.ListSubscriptionsExecute(r)
func (r ApiListTriggerInvocationStatusRequest) Execute() ([]InvocationStatus, *http.Response, error) {
return r.ApiService.ListTriggerInvocationStatusExecute(r)
}
/*
ListSubscriptions List Subscriptions
ListTriggerInvocationStatus List Latest Invocation Statuses
Gets a list of all trigger subscriptions.
Gets a list of latest invocation statuses.
Statuses of successful invocations are available for up to 24 hours. Statuses of failed invocations are available for up to 48 hours.
This endpoint may only fetch up to 2000 invocations, and should not be treated as a representation of the full history of invocations.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiListSubscriptionsRequest
@return ApiListTriggerInvocationStatusRequest
*/
func (a *TriggersApiService) ListSubscriptions(ctx context.Context) ApiListSubscriptionsRequest {
return ApiListSubscriptionsRequest{
func (a *TriggersApiService) ListTriggerInvocationStatus(ctx context.Context) ApiListTriggerInvocationStatusRequest {
return ApiListTriggerInvocationStatusRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
// @return []Subscription
func (a *TriggersApiService) ListSubscriptionsExecute(r ApiListSubscriptionsRequest) ([]Subscription, *http.Response, error) {
// @return []InvocationStatus
func (a *TriggersApiService) ListTriggerInvocationStatusExecute(r ApiListTriggerInvocationStatusRequest) ([]InvocationStatus, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue []Subscription
localVarReturnValue []InvocationStatus
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TriggersApiService.ListSubscriptions")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TriggersApiService.ListTriggerInvocationStatus")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/trigger-subscriptions"
localVarPath := localBasePath + "/trigger-invocations/status"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
@@ -1295,31 +1295,31 @@ func (a *TriggersApiService) PatchSubscriptionExecute(r ApiPatchSubscriptionRequ
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiStartTestInvocationRequest struct {
type ApiStartTestTriggerInvocationRequest struct {
ctx context.Context
ApiService *TriggersApiService
testInvocation *TestInvocation
}
func (r ApiStartTestInvocationRequest) TestInvocation(testInvocation TestInvocation) ApiStartTestInvocationRequest {
func (r ApiStartTestTriggerInvocationRequest) TestInvocation(testInvocation TestInvocation) ApiStartTestTriggerInvocationRequest {
r.testInvocation = &testInvocation
return r
}
func (r ApiStartTestInvocationRequest) Execute() ([]Invocation, *http.Response, error) {
return r.ApiService.StartTestInvocationExecute(r)
func (r ApiStartTestTriggerInvocationRequest) Execute() ([]Invocation, *http.Response, error) {
return r.ApiService.StartTestTriggerInvocationExecute(r)
}
/*
StartTestInvocation Start a Test Invocation
StartTestTriggerInvocation Start a Test Invocation
Initiate a test event for all subscribers of the specified event trigger. If there are no subscribers to the specified trigger in the tenant, then no test event will be sent.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiStartTestInvocationRequest
@return ApiStartTestTriggerInvocationRequest
*/
func (a *TriggersApiService) StartTestInvocation(ctx context.Context) ApiStartTestInvocationRequest {
return ApiStartTestInvocationRequest{
func (a *TriggersApiService) StartTestTriggerInvocation(ctx context.Context) ApiStartTestTriggerInvocationRequest {
return ApiStartTestTriggerInvocationRequest{
ApiService: a,
ctx: ctx,
}
@@ -1327,7 +1327,7 @@ func (a *TriggersApiService) StartTestInvocation(ctx context.Context) ApiStartTe
// Execute executes the request
// @return []Invocation
func (a *TriggersApiService) StartTestInvocationExecute(r ApiStartTestInvocationRequest) ([]Invocation, *http.Response, error) {
func (a *TriggersApiService) StartTestTriggerInvocationExecute(r ApiStartTestTriggerInvocationRequest) ([]Invocation, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
@@ -1335,7 +1335,7 @@ func (a *TriggersApiService) StartTestInvocationExecute(r ApiStartTestInvocation
localVarReturnValue []Invocation
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TriggersApiService.StartTestInvocation")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TriggersApiService.StartTestTriggerInvocation")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -1647,32 +1647,32 @@ func (a *TriggersApiService) UpdateSubscriptionExecute(r ApiUpdateSubscriptionRe
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiValidateFilterRequest struct {
type ApiValidateSubscriptionFilterRequest struct {
ctx context.Context
ApiService *TriggersApiService
validateFilterInputDto *ValidateFilterInputDto
}
func (r ApiValidateFilterRequest) ValidateFilterInputDto(validateFilterInputDto ValidateFilterInputDto) ApiValidateFilterRequest {
func (r ApiValidateSubscriptionFilterRequest) ValidateFilterInputDto(validateFilterInputDto ValidateFilterInputDto) ApiValidateSubscriptionFilterRequest {
r.validateFilterInputDto = &validateFilterInputDto
return r
}
func (r ApiValidateFilterRequest) Execute() (*ValidateFilterOutputDto, *http.Response, error) {
return r.ApiService.ValidateFilterExecute(r)
func (r ApiValidateSubscriptionFilterRequest) Execute() (*ValidateFilterOutputDto, *http.Response, error) {
return r.ApiService.ValidateSubscriptionFilterExecute(r)
}
/*
ValidateFilter Validate a Subscription Filter
ValidateSubscriptionFilter Validate a Subscription Filter
Validates a JSONPath filter expression against a provided mock input.
Request requires a security scope of:
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiValidateFilterRequest
@return ApiValidateSubscriptionFilterRequest
*/
func (a *TriggersApiService) ValidateFilter(ctx context.Context) ApiValidateFilterRequest {
return ApiValidateFilterRequest{
func (a *TriggersApiService) ValidateSubscriptionFilter(ctx context.Context) ApiValidateSubscriptionFilterRequest {
return ApiValidateSubscriptionFilterRequest{
ApiService: a,
ctx: ctx,
}
@@ -1680,7 +1680,7 @@ func (a *TriggersApiService) ValidateFilter(ctx context.Context) ApiValidateFilt
// Execute executes the request
// @return ValidateFilterOutputDto
func (a *TriggersApiService) ValidateFilterExecute(r ApiValidateFilterRequest) (*ValidateFilterOutputDto, *http.Response, error) {
func (a *TriggersApiService) ValidateSubscriptionFilterExecute(r ApiValidateSubscriptionFilterRequest) (*ValidateFilterOutputDto, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
@@ -1688,7 +1688,7 @@ func (a *TriggersApiService) ValidateFilterExecute(r ApiValidateFilterRequest) (
localVarReturnValue *ValidateFilterOutputDto
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TriggersApiService.ValidateFilter")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TriggersApiService.ValidateSubscriptionFilter")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"
@@ -162,27 +162,27 @@ func (a *WorkItemsApiService) ApproveApprovalItemExecute(r ApiApproveApprovalIte
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiBulkApproveApprovalItemRequest struct {
type ApiApproveApprovalItemsInBulkRequest struct {
ctx context.Context
ApiService *WorkItemsApiService
id string
}
func (r ApiBulkApproveApprovalItemRequest) Execute() (*WorkItems, *http.Response, error) {
return r.ApiService.BulkApproveApprovalItemExecute(r)
func (r ApiApproveApprovalItemsInBulkRequest) Execute() (*WorkItems, *http.Response, error) {
return r.ApiService.ApproveApprovalItemsInBulkExecute(r)
}
/*
BulkApproveApprovalItem Bulk approve Approval Items
ApproveApprovalItemsInBulk Bulk approve Approval Items
This API bulk approves Approval Items. Either an admin, or the owning/current user must make this request.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The ID of the work item
@return ApiBulkApproveApprovalItemRequest
@return ApiApproveApprovalItemsInBulkRequest
*/
func (a *WorkItemsApiService) BulkApproveApprovalItem(ctx context.Context, id string) ApiBulkApproveApprovalItemRequest {
return ApiBulkApproveApprovalItemRequest{
func (a *WorkItemsApiService) ApproveApprovalItemsInBulk(ctx context.Context, id string) ApiApproveApprovalItemsInBulkRequest {
return ApiApproveApprovalItemsInBulkRequest{
ApiService: a,
ctx: ctx,
id: id,
@@ -191,7 +191,7 @@ func (a *WorkItemsApiService) BulkApproveApprovalItem(ctx context.Context, id st
// Execute executes the request
// @return WorkItems
func (a *WorkItemsApiService) BulkApproveApprovalItemExecute(r ApiBulkApproveApprovalItemRequest) (*WorkItems, *http.Response, error) {
func (a *WorkItemsApiService) ApproveApprovalItemsInBulkExecute(r ApiApproveApprovalItemsInBulkRequest) (*WorkItems, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
@@ -199,7 +199,7 @@ func (a *WorkItemsApiService) BulkApproveApprovalItemExecute(r ApiBulkApproveApp
localVarReturnValue *WorkItems
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WorkItemsApiService.BulkApproveApprovalItem")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WorkItemsApiService.ApproveApprovalItemsInBulk")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -297,141 +297,6 @@ func (a *WorkItemsApiService) BulkApproveApprovalItemExecute(r ApiBulkApproveApp
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiBulkRejectApprovalItemRequest struct {
ctx context.Context
ApiService *WorkItemsApiService
id string
}
func (r ApiBulkRejectApprovalItemRequest) Execute() (*WorkItems, *http.Response, error) {
return r.ApiService.BulkRejectApprovalItemExecute(r)
}
/*
BulkRejectApprovalItem Bulk reject Approval Items
This API bulk rejects Approval Items. Either an admin, or the owning/current user must make this request.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The ID of the work item
@return ApiBulkRejectApprovalItemRequest
*/
func (a *WorkItemsApiService) BulkRejectApprovalItem(ctx context.Context, id string) ApiBulkRejectApprovalItemRequest {
return ApiBulkRejectApprovalItemRequest{
ApiService: a,
ctx: ctx,
id: id,
}
}
// Execute executes the request
// @return WorkItems
func (a *WorkItemsApiService) BulkRejectApprovalItemExecute(r ApiBulkRejectApprovalItemRequest) (*WorkItems, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *WorkItems
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WorkItemsApiService.BulkRejectApprovalItem")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/work-items/bulk-reject/{id}"
localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1)
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
if localVarHTTPContentType != "" {
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := []string{"application/json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return localVarReturnValue, nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
return localVarReturnValue, localVarHTTPResponse, err
}
localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body.Close()
localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody))
if err != nil {
return localVarReturnValue, localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 400 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 403 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 404 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: err.Error(),
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiCompleteWorkItemRequest struct {
ctx context.Context
ApiService *WorkItemsApiService
@@ -567,7 +432,7 @@ func (a *WorkItemsApiService) CompleteWorkItemExecute(r ApiCompleteWorkItemReque
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiCompletedWorkItemsRequest struct {
type ApiGetCompletedWorkItemsRequest struct {
ctx context.Context
ApiService *WorkItemsApiService
ownerId *string
@@ -577,43 +442,43 @@ type ApiCompletedWorkItemsRequest struct {
}
// The id of the owner of the work item list being requested. Either an admin, or the owning/current user must make this request.
func (r ApiCompletedWorkItemsRequest) OwnerId(ownerId string) ApiCompletedWorkItemsRequest {
func (r ApiGetCompletedWorkItemsRequest) OwnerId(ownerId string) ApiGetCompletedWorkItemsRequest {
r.ownerId = &ownerId
return r
}
// Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiCompletedWorkItemsRequest) Limit(limit int32) ApiCompletedWorkItemsRequest {
func (r ApiGetCompletedWorkItemsRequest) Limit(limit int32) ApiGetCompletedWorkItemsRequest {
r.limit = &limit
return r
}
// Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiCompletedWorkItemsRequest) Offset(offset int32) ApiCompletedWorkItemsRequest {
func (r ApiGetCompletedWorkItemsRequest) Offset(offset int32) ApiGetCompletedWorkItemsRequest {
r.offset = &offset
return r
}
// If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count&#x3D;true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
func (r ApiCompletedWorkItemsRequest) Count(count bool) ApiCompletedWorkItemsRequest {
func (r ApiGetCompletedWorkItemsRequest) Count(count bool) ApiGetCompletedWorkItemsRequest {
r.count = &count
return r
}
func (r ApiCompletedWorkItemsRequest) Execute() ([]WorkItems, *http.Response, error) {
return r.ApiService.CompletedWorkItemsExecute(r)
func (r ApiGetCompletedWorkItemsRequest) Execute() ([]WorkItems, *http.Response, error) {
return r.ApiService.GetCompletedWorkItemsExecute(r)
}
/*
CompletedWorkItems Completed Work Items
GetCompletedWorkItems Completed Work Items
This gets a collection of completed work items belonging to either the specified user(admin required), or the current user.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCompletedWorkItemsRequest
@return ApiGetCompletedWorkItemsRequest
*/
func (a *WorkItemsApiService) CompletedWorkItems(ctx context.Context) ApiCompletedWorkItemsRequest {
return ApiCompletedWorkItemsRequest{
func (a *WorkItemsApiService) GetCompletedWorkItems(ctx context.Context) ApiGetCompletedWorkItemsRequest {
return ApiGetCompletedWorkItemsRequest{
ApiService: a,
ctx: ctx,
}
@@ -621,7 +486,7 @@ func (a *WorkItemsApiService) CompletedWorkItems(ctx context.Context) ApiComplet
// Execute executes the request
// @return []WorkItems
func (a *WorkItemsApiService) CompletedWorkItemsExecute(r ApiCompletedWorkItemsRequest) ([]WorkItems, *http.Response, error) {
func (a *WorkItemsApiService) GetCompletedWorkItemsExecute(r ApiGetCompletedWorkItemsRequest) ([]WorkItems, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -629,7 +494,7 @@ func (a *WorkItemsApiService) CompletedWorkItemsExecute(r ApiCompletedWorkItemsR
localVarReturnValue []WorkItems
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WorkItemsApiService.CompletedWorkItems")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WorkItemsApiService.GetCompletedWorkItems")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -738,32 +603,32 @@ func (a *WorkItemsApiService) CompletedWorkItemsExecute(r ApiCompletedWorkItemsR
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiCountCompletedWorkItemsRequest struct {
type ApiGetCountCompletedWorkItemsRequest struct {
ctx context.Context
ApiService *WorkItemsApiService
ownerId *string
}
// ID of the work item owner.
func (r ApiCountCompletedWorkItemsRequest) OwnerId(ownerId string) ApiCountCompletedWorkItemsRequest {
func (r ApiGetCountCompletedWorkItemsRequest) OwnerId(ownerId string) ApiGetCountCompletedWorkItemsRequest {
r.ownerId = &ownerId
return r
}
func (r ApiCountCompletedWorkItemsRequest) Execute() ([]WorkItemsCount, *http.Response, error) {
return r.ApiService.CountCompletedWorkItemsExecute(r)
func (r ApiGetCountCompletedWorkItemsRequest) Execute() ([]WorkItemsCount, *http.Response, error) {
return r.ApiService.GetCountCompletedWorkItemsExecute(r)
}
/*
CountCompletedWorkItems Count Completed Work Items
GetCountCompletedWorkItems Count Completed Work Items
This gets a count of completed work items belonging to either the specified user(admin required), or the current user.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCountCompletedWorkItemsRequest
@return ApiGetCountCompletedWorkItemsRequest
*/
func (a *WorkItemsApiService) CountCompletedWorkItems(ctx context.Context) ApiCountCompletedWorkItemsRequest {
return ApiCountCompletedWorkItemsRequest{
func (a *WorkItemsApiService) GetCountCompletedWorkItems(ctx context.Context) ApiGetCountCompletedWorkItemsRequest {
return ApiGetCountCompletedWorkItemsRequest{
ApiService: a,
ctx: ctx,
}
@@ -771,7 +636,7 @@ func (a *WorkItemsApiService) CountCompletedWorkItems(ctx context.Context) ApiCo
// Execute executes the request
// @return []WorkItemsCount
func (a *WorkItemsApiService) CountCompletedWorkItemsExecute(r ApiCountCompletedWorkItemsRequest) ([]WorkItemsCount, *http.Response, error) {
func (a *WorkItemsApiService) GetCountCompletedWorkItemsExecute(r ApiGetCountCompletedWorkItemsRequest) ([]WorkItemsCount, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -779,7 +644,7 @@ func (a *WorkItemsApiService) CountCompletedWorkItemsExecute(r ApiCountCompleted
localVarReturnValue []WorkItemsCount
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WorkItemsApiService.CountCompletedWorkItems")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WorkItemsApiService.GetCountCompletedWorkItems")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -879,32 +744,32 @@ func (a *WorkItemsApiService) CountCompletedWorkItemsExecute(r ApiCountCompleted
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiCountWorkItemsRequest struct {
type ApiGetCountWorkItemsRequest struct {
ctx context.Context
ApiService *WorkItemsApiService
ownerId *string
}
// ID of the work item owner.
func (r ApiCountWorkItemsRequest) OwnerId(ownerId string) ApiCountWorkItemsRequest {
func (r ApiGetCountWorkItemsRequest) OwnerId(ownerId string) ApiGetCountWorkItemsRequest {
r.ownerId = &ownerId
return r
}
func (r ApiCountWorkItemsRequest) Execute() ([]WorkItemsCount, *http.Response, error) {
return r.ApiService.CountWorkItemsExecute(r)
func (r ApiGetCountWorkItemsRequest) Execute() ([]WorkItemsCount, *http.Response, error) {
return r.ApiService.GetCountWorkItemsExecute(r)
}
/*
CountWorkItems Count Work Items
GetCountWorkItems Count Work Items
This gets a count of work items belonging to either the specified user(admin required), or the current user.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCountWorkItemsRequest
@return ApiGetCountWorkItemsRequest
*/
func (a *WorkItemsApiService) CountWorkItems(ctx context.Context) ApiCountWorkItemsRequest {
return ApiCountWorkItemsRequest{
func (a *WorkItemsApiService) GetCountWorkItems(ctx context.Context) ApiGetCountWorkItemsRequest {
return ApiGetCountWorkItemsRequest{
ApiService: a,
ctx: ctx,
}
@@ -912,7 +777,7 @@ func (a *WorkItemsApiService) CountWorkItems(ctx context.Context) ApiCountWorkIt
// Execute executes the request
// @return []WorkItemsCount
func (a *WorkItemsApiService) CountWorkItemsExecute(r ApiCountWorkItemsRequest) ([]WorkItemsCount, *http.Response, error) {
func (a *WorkItemsApiService) GetCountWorkItemsExecute(r ApiGetCountWorkItemsRequest) ([]WorkItemsCount, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -920,7 +785,7 @@ func (a *WorkItemsApiService) CountWorkItemsExecute(r ApiCountWorkItemsRequest)
localVarReturnValue []WorkItemsCount
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WorkItemsApiService.CountWorkItems")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WorkItemsApiService.GetCountWorkItems")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -1020,7 +885,7 @@ func (a *WorkItemsApiService) CountWorkItemsExecute(r ApiCountWorkItemsRequest)
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiGetWorkItemsRequest struct {
type ApiGetWorkItemRequest struct {
ctx context.Context
ApiService *WorkItemsApiService
id string
@@ -1028,26 +893,26 @@ type ApiGetWorkItemsRequest struct {
}
// ID of the work item owner.
func (r ApiGetWorkItemsRequest) OwnerId(ownerId string) ApiGetWorkItemsRequest {
func (r ApiGetWorkItemRequest) OwnerId(ownerId string) ApiGetWorkItemRequest {
r.ownerId = &ownerId
return r
}
func (r ApiGetWorkItemsRequest) Execute() ([]WorkItems, *http.Response, error) {
return r.ApiService.GetWorkItemsExecute(r)
func (r ApiGetWorkItemRequest) Execute() ([]WorkItems, *http.Response, error) {
return r.ApiService.GetWorkItemExecute(r)
}
/*
GetWorkItems Get a Work Item
GetWorkItem Get a Work Item
This gets the details of a Work Item belonging to either the specified user(admin required), or the current user.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id ID of the work item.
@return ApiGetWorkItemsRequest
@return ApiGetWorkItemRequest
*/
func (a *WorkItemsApiService) GetWorkItems(ctx context.Context, id string) ApiGetWorkItemsRequest {
return ApiGetWorkItemsRequest{
func (a *WorkItemsApiService) GetWorkItem(ctx context.Context, id string) ApiGetWorkItemRequest {
return ApiGetWorkItemRequest{
ApiService: a,
ctx: ctx,
id: id,
@@ -1056,7 +921,7 @@ func (a *WorkItemsApiService) GetWorkItems(ctx context.Context, id string) ApiGe
// Execute executes the request
// @return []WorkItems
func (a *WorkItemsApiService) GetWorkItemsExecute(r ApiGetWorkItemsRequest) ([]WorkItems, *http.Response, error) {
func (a *WorkItemsApiService) GetWorkItemExecute(r ApiGetWorkItemRequest) ([]WorkItems, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
@@ -1064,7 +929,7 @@ func (a *WorkItemsApiService) GetWorkItemsExecute(r ApiGetWorkItemsRequest) ([]W
localVarReturnValue []WorkItems
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WorkItemsApiService.GetWorkItems")
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WorkItemsApiService.GetWorkItem")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
@@ -1165,6 +1030,147 @@ func (a *WorkItemsApiService) GetWorkItemsExecute(r ApiGetWorkItemsRequest) ([]W
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiGetWorkItemsSummaryRequest struct {
ctx context.Context
ApiService *WorkItemsApiService
ownerId *string
}
// ID of the work item owner.
func (r ApiGetWorkItemsSummaryRequest) OwnerId(ownerId string) ApiGetWorkItemsSummaryRequest {
r.ownerId = &ownerId
return r
}
func (r ApiGetWorkItemsSummaryRequest) Execute() ([]WorkItemsSummary, *http.Response, error) {
return r.ApiService.GetWorkItemsSummaryExecute(r)
}
/*
GetWorkItemsSummary Work Items Summary
This gets a summary of work items belonging to either the specified user(admin required), or the current user.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetWorkItemsSummaryRequest
*/
func (a *WorkItemsApiService) GetWorkItemsSummary(ctx context.Context) ApiGetWorkItemsSummaryRequest {
return ApiGetWorkItemsSummaryRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
// @return []WorkItemsSummary
func (a *WorkItemsApiService) GetWorkItemsSummaryExecute(r ApiGetWorkItemsSummaryRequest) ([]WorkItemsSummary, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue []WorkItemsSummary
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WorkItemsApiService.GetWorkItemsSummary")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/work-items/summary"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if r.ownerId != nil {
localVarQueryParams.Add("ownerId", parameterToString(*r.ownerId, ""))
}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
if localVarHTTPContentType != "" {
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := []string{"application/json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return localVarReturnValue, nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
return localVarReturnValue, localVarHTTPResponse, err
}
localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body.Close()
localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody))
if err != nil {
return localVarReturnValue, localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 400 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 403 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 404 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: err.Error(),
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiListWorkItemsRequest struct {
ctx context.Context
ApiService *WorkItemsApiService
@@ -1475,6 +1481,141 @@ func (a *WorkItemsApiService) RejectApprovalItemExecute(r ApiRejectApprovalItemR
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiRejectApprovalItemsInBulkRequest struct {
ctx context.Context
ApiService *WorkItemsApiService
id string
}
func (r ApiRejectApprovalItemsInBulkRequest) Execute() (*WorkItems, *http.Response, error) {
return r.ApiService.RejectApprovalItemsInBulkExecute(r)
}
/*
RejectApprovalItemsInBulk Bulk reject Approval Items
This API bulk rejects Approval Items. Either an admin, or the owning/current user must make this request.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id The ID of the work item
@return ApiRejectApprovalItemsInBulkRequest
*/
func (a *WorkItemsApiService) RejectApprovalItemsInBulk(ctx context.Context, id string) ApiRejectApprovalItemsInBulkRequest {
return ApiRejectApprovalItemsInBulkRequest{
ApiService: a,
ctx: ctx,
id: id,
}
}
// Execute executes the request
// @return WorkItems
func (a *WorkItemsApiService) RejectApprovalItemsInBulkExecute(r ApiRejectApprovalItemsInBulkRequest) (*WorkItems, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodPost
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue *WorkItems
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WorkItemsApiService.RejectApprovalItemsInBulk")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/work-items/bulk-reject/{id}"
localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1)
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
if localVarHTTPContentType != "" {
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := []string{"application/json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return localVarReturnValue, nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
return localVarReturnValue, localVarHTTPResponse, err
}
localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body.Close()
localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody))
if err != nil {
return localVarReturnValue, localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 400 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 403 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 404 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: err.Error(),
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiSubmitAccountSelectionRequest struct {
ctx context.Context
ApiService *WorkItemsApiService
@@ -1621,144 +1762,3 @@ func (a *WorkItemsApiService) SubmitAccountSelectionExecute(r ApiSubmitAccountSe
return localVarReturnValue, localVarHTTPResponse, nil
}
type ApiSummaryWorkItemsRequest struct {
ctx context.Context
ApiService *WorkItemsApiService
ownerId *string
}
// ID of the work item owner.
func (r ApiSummaryWorkItemsRequest) OwnerId(ownerId string) ApiSummaryWorkItemsRequest {
r.ownerId = &ownerId
return r
}
func (r ApiSummaryWorkItemsRequest) Execute() ([]WorkItemsSummary, *http.Response, error) {
return r.ApiService.SummaryWorkItemsExecute(r)
}
/*
SummaryWorkItems Work Items Summary
This gets a summary of work items belonging to either the specified user(admin required), or the current user.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiSummaryWorkItemsRequest
*/
func (a *WorkItemsApiService) SummaryWorkItems(ctx context.Context) ApiSummaryWorkItemsRequest {
return ApiSummaryWorkItemsRequest{
ApiService: a,
ctx: ctx,
}
}
// Execute executes the request
// @return []WorkItemsSummary
func (a *WorkItemsApiService) SummaryWorkItemsExecute(r ApiSummaryWorkItemsRequest) ([]WorkItemsSummary, *http.Response, error) {
var (
localVarHTTPMethod = http.MethodGet
localVarPostBody interface{}
formFiles []formFile
localVarReturnValue []WorkItemsSummary
)
localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WorkItemsApiService.SummaryWorkItems")
if err != nil {
return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
}
localVarPath := localBasePath + "/work-items/summary"
localVarHeaderParams := make(map[string]string)
localVarQueryParams := url.Values{}
localVarFormParams := url.Values{}
if r.ownerId != nil {
localVarQueryParams.Add("ownerId", parameterToString(*r.ownerId, ""))
}
// to determine the Content-Type header
localVarHTTPContentTypes := []string{}
// set Content-Type header
localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
if localVarHTTPContentType != "" {
localVarHeaderParams["Content-Type"] = localVarHTTPContentType
}
// to determine the Accept header
localVarHTTPHeaderAccepts := []string{"application/json"}
// set Accept header
localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
if localVarHTTPHeaderAccept != "" {
localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
}
req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
if err != nil {
return localVarReturnValue, nil, err
}
localVarHTTPResponse, err := a.client.callAPI(req)
if err != nil || localVarHTTPResponse == nil {
return localVarReturnValue, localVarHTTPResponse, err
}
localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body)
localVarHTTPResponse.Body.Close()
localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody))
if err != nil {
return localVarReturnValue, localVarHTTPResponse, err
}
if localVarHTTPResponse.StatusCode >= 300 {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: localVarHTTPResponse.Status,
}
if localVarHTTPResponse.StatusCode == 400 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 403 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
return localVarReturnValue, localVarHTTPResponse, newErr
}
if localVarHTTPResponse.StatusCode == 404 {
var v ErrorResponseDto
err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr.error = err.Error()
return localVarReturnValue, localVarHTTPResponse, newErr
}
newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
newErr.model = v
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
if err != nil {
newErr := &GenericOpenAPIError{
body: localVarBody,
error: err.Error(),
}
return localVarReturnValue, localVarHTTPResponse, newErr
}
return localVarReturnValue, localVarHTTPResponse, nil
}

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"bytes"

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"context"

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"encoding/json"

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"encoding/json"

View File

@@ -8,7 +8,7 @@ API version: 3.1.0-beta
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointbetasdk
package beta
import (
"encoding/json"

Some files were not shown because too many files have changed in this diff Show More