Skip to content

this is a test repository for an autogenerated go sdk

Notifications You must be signed in to change notification settings

philip-ellis-sp/go-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go API client for sailpointsdk

Use these APIs to interact with the IdentityNow platform to achieve repeatable, automated processes with greater scalability. We encourage you to join the SailPoint Developer Community forum at https://developer.sailpoint.com/discuss to connect with other developers using our APIs.

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import sailpointsdk "github.com/philip-ellis-sp/go-sdk"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value sw.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), sailpointsdk.ContextServerIndex, 1)

Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value sw.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), sailpointsdk.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. 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.

ctx := context.WithValue(context.Background(), sailpointsdk.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), sailpointsdk.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to https://sailpoint.api.identitynow.com/v3

Class Method HTTP request Description
AccessRequestApprovalsApi ApprovalSummary Get /access-request-approvals/approval-summary Get the number of access-requests-approvals
AccessRequestApprovalsApi ApproveRequest Post /access-request-approvals/{approvalId}/approve Approves an access request approval.
AccessRequestApprovalsApi ForwardRequest Post /access-request-approvals/{approvalId}/forward Forwards an access request approval.
AccessRequestApprovalsApi ListCompletedApprovals Get /access-request-approvals/completed Completed Access Request Approvals List
AccessRequestApprovalsApi ListPendingApprovals Get /access-request-approvals/pending Pending Access Request Approvals List
AccessRequestApprovalsApi RejectRequest Post /access-request-approvals/{approvalId}/reject Rejects an access request approval.
AccessRequestsApi CancelAccessRequest Post /access-requests/cancel Cancel Access Request
AccessRequestsApi CreateAccessRequest Post /access-requests Submit an Access Request
AccessRequestsApi GetAccessRequestConfig Get /access-request-config Get Access Request Configuration
AccessRequestsApi ListAccessRequestStatus Get /access-request-status Access Request Status
AccessRequestsApi UpdateAccessRequestConfig Put /access-request-config Update Access Request Configuration
AccountActivitiesApi GetAccountActivity Get /account-activities/{id} Get an Account Activity
AccountActivitiesApi ListAccountActivities Get /account-activities List Account Activities
AccountsApi CreateAccount Post /accounts Create Account
AccountsApi DeleteAccount Delete /accounts/{id} Delete Account
AccountsApi DisableAccount Post /accounts/{id}/disable Disable Account
AccountsApi EnableAccount Post /accounts/{id}/enable Enable Account
AccountsApi GetAccount Get /accounts/{id} Account Details
AccountsApi GetAccountEntitlements Get /accounts/{id}/entitlements Account Entitlements
AccountsApi ListAccounts Get /accounts Accounts List
AccountsApi PutAccount Put /accounts/{id} Update Account
AccountsApi ReloadAccount Post /accounts/{id}/reload Reload Account
AccountsApi UnlockAccount Post /accounts/{id}/unlock Unlock Account
AccountsApi UpdateAccount Patch /accounts/{id} Update Account
CertificationSummariesApi GetIdentityAccessSummaries Get /certifications/{id}/access-summaries/{type} Access Summaries
CertificationSummariesApi GetIdentityDecisionSummary Get /certifications/{id}/decision-summary Summary of Certification Decisions
CertificationSummariesApi GetIdentitySummaries Get /certifications/{id}/identity-summaries Identity Summaries for Campaign Certification
CertificationSummariesApi GetIdentitySummary Get /certifications/{id}/identity-summary/{identitySummaryId} Summary for Identity
CertificationsApi GetIdentityCertification Get /certifications/{id} Identity Certification by ID
CertificationsApi ListIdentityAccessReviewItems Get /certifications/{id}/access-review-items List of Access Review Items
CertificationsApi ListIdentityCertifications Get /certifications Identity Campaign Certifications by IDs
CertificationsApi MakeIdentityDecision Post /certifications/{id}/decide Decide on a Certification Item
CertificationsApi ReassignIdentityCertifications Post /certifications/{id}/reassign Reassign Identities or Items
CertificationsApi SignOffIdentityCertification Post /certifications/{id}/sign-off Finalize Identity Certification Decisions
IdentityProfilesApi ExportIdentityProfiles Get /identity-profiles/export Export Identity Profiles
IdentityProfilesApi GetDefaultIdentityAttributeConfig Get /identity-profiles/{identity-profile-id}/default-identity-attribute-config Get default Identity Attribute Config
IdentityProfilesApi GetIdentityProfile Get /identity-profiles/{identity-profile-id} Get single Identity Profile
IdentityProfilesApi ImportIdentityProfiles Post /identity-profiles/import Import Identity Profiles
IdentityProfilesApi ListIdentityProfiles Get /identity-profiles Identity Profiles List
LifecycleStatesApi CreateLifecycleState Post /identity-profiles/{identity-profile-id}/lifecycle-states Create Lifecycle State
LifecycleStatesApi DeleteLifecycleState Delete /identity-profiles/{identity-profile-id}/lifecycle-states/{lifecycle-state-id} Delete Lifecycle State by ID
LifecycleStatesApi GetLifecycleState Get /identity-profiles/{identity-profile-id}/lifecycle-states/{lifecycle-state-id} Retrieves Lifecycle State
LifecycleStatesApi ListLifecycleStates Get /identity-profiles/{identity-profile-id}/lifecycle-states Lists LifecycleStates
LifecycleStatesApi SetLifecycleState Post /identities/{identity-id}/set-lifecycle-state Set Lifecycle State
LifecycleStatesApi UpdateLifecycleStates Patch /identity-profiles/{identity-profile-id}/lifecycle-states/{lifecycle-state-id} Update Lifecycle State
NonEmployeeLifecycleManagementApi CreateSchemaAttribute Post /non-employee-sources/{sourceId}/schema-attributes Create a new Schema Attribute for Non-Employee Source
NonEmployeeLifecycleManagementApi DeleteSchemaAttribute Delete /non-employee-sources/{sourceId}/schema-attributes/{attributeId} Delete a Schema Attribute for Non-Employee Source
NonEmployeeLifecycleManagementApi DeleteSchemaAttributes Delete /non-employee-sources/{sourceId}/schema-attributes Delete all custom schema attributes for Non-Employee Source
NonEmployeeLifecycleManagementApi GetSchemaAttribute Get /non-employee-sources/{sourceId}/schema-attributes/{attributeId} Get Schema Attribute Non-Employee Source
NonEmployeeLifecycleManagementApi GetSchemaAttributes Get /non-employee-sources/{sourceId}/schema-attributes List Schema Attributes Non-Employee Source
NonEmployeeLifecycleManagementApi NonEmployeeApprovalGet Get /non-employee-approvals/{id} Get a non-employee approval item detail
NonEmployeeLifecycleManagementApi NonEmployeeApprovalList Get /non-employee-approvals Get List of Non-Employee Approval Requests
NonEmployeeLifecycleManagementApi NonEmployeeApprovalSummary Get /non-employee-approvals/summary/{requested-for} Get Summary of Non-Employee Approval Requests
NonEmployeeLifecycleManagementApi NonEmployeeApproveRequest Post /non-employee-approvals/{id}/approve Approve a Non-Employee Request
NonEmployeeLifecycleManagementApi NonEmployeeBulkUploadStatus Get /non-employee-sources/{id}/non-employee-bulk-upload/status Obtain the status of bulk upload on the source
NonEmployeeLifecycleManagementApi NonEmployeeExportSourceSchemaTemplate Get /non-employee-sources/{id}/schema-attributes-template/download Exports Source Schema Template
NonEmployeeLifecycleManagementApi NonEmployeeRecordBulkDelete Post /non-employee-records/bulk-delete Delete Multiple Non-Employee Records
NonEmployeeLifecycleManagementApi NonEmployeeRecordCreation Post /non-employee-records Create Non-Employee Record
NonEmployeeLifecycleManagementApi NonEmployeeRecordDelete Delete /non-employee-records/{id} Delete Non-Employee Record
NonEmployeeLifecycleManagementApi NonEmployeeRecordGet Get /non-employee-records/{id} Get a Non-Employee Record
NonEmployeeLifecycleManagementApi NonEmployeeRecordList Get /non-employee-records List Non-Employee Records
NonEmployeeLifecycleManagementApi NonEmployeeRecordPatch Patch /non-employee-records/{id} Patch Non-Employee Record
NonEmployeeLifecycleManagementApi NonEmployeeRecordUpdate Put /non-employee-records/{id} Update Non-Employee Record
NonEmployeeLifecycleManagementApi NonEmployeeRecordsBulkUpload Post /non-employee-sources/{id}/non-employee-bulk-upload Imports, or Updates, Non-Employee Records
NonEmployeeLifecycleManagementApi NonEmployeeRecordsExport Get /non-employee-sources/{id}/non-employees/download Exports Non-Employee Records to CSV
NonEmployeeLifecycleManagementApi NonEmployeeRejectRequest Post /non-employee-approvals/{id}/reject Reject a Non-Employee Request
NonEmployeeLifecycleManagementApi NonEmployeeRequestCreation Post /non-employee-requests Create Non-Employee Request
NonEmployeeLifecycleManagementApi NonEmployeeRequestDeletion Delete /non-employee-requests/{id} Delete Non-Employee Request
NonEmployeeLifecycleManagementApi NonEmployeeRequestGet Get /non-employee-requests/{id} Get a Non-Employee Request
NonEmployeeLifecycleManagementApi NonEmployeeRequestList Get /non-employee-requests List Non-Employee Requests
NonEmployeeLifecycleManagementApi NonEmployeeRequestSummaryGet Get /non-employee-requests/summary/{requested-for} Get Summary of Non-Employee Requests
NonEmployeeLifecycleManagementApi NonEmployeeSourceDelete Delete /non-employee-sources/{sourceId} Delete Non-Employee Source
NonEmployeeLifecycleManagementApi NonEmployeeSourceGet Get /non-employee-sources/{sourceId} Get a Non-Employee Source
NonEmployeeLifecycleManagementApi NonEmployeeSourcePatch Patch /non-employee-sources/{sourceId} Patch a Non-Employee Source
NonEmployeeLifecycleManagementApi NonEmployeeSourcesCreation Post /non-employee-sources Create Non-Employee Source
NonEmployeeLifecycleManagementApi NonEmployeeSourcesList Get /non-employee-sources List Non-Employee Sources
NonEmployeeLifecycleManagementApi PatchSchemaAttribute Patch /non-employee-sources/{sourceId}/schema-attributes/{attributeId} Patch a Schema Attribute for Non-Employee Source
OAuthClientsApi CreateOauthClient Post /oauth-clients Create OAuth Client
OAuthClientsApi DeleteOauthClient Delete /oauth-clients/{id} Delete OAuth Client
OAuthClientsApi GetOauthClient Get /oauth-clients/{id} Get OAuth Client
OAuthClientsApi ListOauthClients Get /oauth-clients List OAuth Clients
OAuthClientsApi PatchOauthClient Patch /oauth-clients/{id} Patch OAuth Client
PasswordManagementApi GetPasswordChangeStatus Get /password-change-status/{id} Get Password Change Request Status
PasswordManagementApi QueryPasswordInfo Post /query-password-info Query Password Info
PasswordManagementApi SetPassword Post /set-password Set Identity's Password
PersonalAccessTokensApi CreatePersonalAccessToken Post /personal-access-tokens Create Personal Access Token
PersonalAccessTokensApi DeletePersonalAccessToken Delete /personal-access-tokens/{id} Delete Personal Access Token
PersonalAccessTokensApi ListPersonalAccessTokens Get /personal-access-tokens List Personal Access Tokens
PublicIdentitiesApi GetPublicIdentities Get /public-identities Get a list of public identities
PublicIdentitiesConfigApi GetPublicIdentityConfig Get /public-identities-config Get the Public Identities Configuration
PublicIdentitiesConfigApi UpdatePublicIdentityConfig Put /public-identities-config Update the Public Identities Configuration
RequestableObjectsApi ListRequestableObjects Get /requestable-objects Requestable Objects List
SavedSearchApi SavedSearchCreate Post /saved-searches Create a saved search
SavedSearchApi SavedSearchDelete Delete /saved-searches/{id} Delete a document by ID
SavedSearchApi SavedSearchExecute Post /saved-searches/{id}/execute Execute a saved search by ID
SavedSearchApi SavedSearchGet Get /saved-searches/{id} Return a saved search by ID
SavedSearchApi SavedSearchList Get /saved-searches Return a list of Saved Searches
SavedSearchApi SavedSearchUpdate Put /saved-searches/{id} Updates an existing saved search
ScheduledSearchApi ScheduledSearchCreate Post /scheduled-searches Create a new scheduled search
ScheduledSearchApi ScheduledSearchDelete Delete /scheduled-searches/{id} Delete a Scheduled Search by ID
ScheduledSearchApi ScheduledSearchGet Get /scheduled-searches/{id} Return a Scheduled Search by ID
ScheduledSearchApi ScheduledSearchList Get /scheduled-searches Return a list of scheduled searches
ScheduledSearchApi ScheduledSearchUnsubscribe Post /scheduled-searches/{id}/unsubscribe Unsubscribe a recipient from Scheduled Search
ScheduledSearchApi ScheduledSearchUpdate Put /scheduled-searches/{id} Update an existing Scheduled Search
SearchApi SearchAggregate Post /search/aggregate Perform a Search Query Aggregation
SearchApi SearchCount Post /search/count Count the number of Documents satisfying a Query
SearchApi SearchGet Get /search/{index}/{id} Get a Document by ID
SearchApi SearchPost Post /search Perform Search
ServiceDeskIntegrationApi CreateServiceDeskIntegration Post /service-desk-integrations Create a new Service Desk integration
ServiceDeskIntegrationApi DeleteServiceDeskIntegration Delete /service-desk-integrations/{id} Delete a Service Desk integration by ID
ServiceDeskIntegrationApi GetServiceDeskIntegration Get /service-desk-integrations/{id} Get a Service Desk integration by ID
ServiceDeskIntegrationApi GetServiceDeskIntegrationList Get /service-desk-integrations List existing Service Desk Integrations
ServiceDeskIntegrationApi GetServiceDeskIntegrationTemplate Get /service-desk-integrations/templates/{scriptName} Service Desk integration template by scriptName.
ServiceDeskIntegrationApi GetServiceDeskIntegrationTypes Get /service-desk-integrations/types Service Desk Integration Types List.
ServiceDeskIntegrationApi GetStatusCheckDetails Get /service-desk-integrations/status-check-configuration Get the time check configuration of queued SDIM tickets
ServiceDeskIntegrationApi PatchServiceDeskIntegration Patch /service-desk-integrations/{id} Service Desk Integration Update - PATCH
ServiceDeskIntegrationApi UpdateServiceDeskIntegration Put /service-desk-integrations/{id} Update a Service Desk integration by ID
ServiceDeskIntegrationApi UpdateStatusCheckDetails Put /service-desk-integrations/status-check-configuration Update the time check configuration of queued SDIM tickets
SourcesApi BulkUpdateProvisioningPolicies Post /sources/{sourceId}/provisioning-policies/bulk-update Bulk Update Provisioning Policies
SourcesApi CreateProvisioningPolicy Post /sources/{sourceId}/provisioning-policies Create Provisioning Policy
SourcesApi CreateSchema Post /sources/{sourceId}/schemas Create Schema on a Source
SourcesApi CreateSource Post /sources Creates a source in IdentityNow.
SourcesApi DeleteProvisioningPolicy Delete /sources/{sourceId}/provisioning-policies/{usageType} Delete Provisioning Policy by UsageType
SourcesApi DeleteSchema Delete /sources/{sourceId}/schemas/{schemaId} Delete Source Schema by ID
SourcesApi DeleteSource Delete /sources/{id} Delete Source by ID
SourcesApi DownloadSourceAccountsSchema Get /sources/{id}/schemas/accounts Downloads source accounts schema template
SourcesApi DownloadSourceEntitlementsSchema Get /sources/{id}/schemas/entitlements Downloads source entitlements schema template
SourcesApi GetProvisioningPolicy Get /sources/{sourceId}/provisioning-policies/{usageType} Get Provisioning Policy by UsageType
SourcesApi GetSchema Get /sources/{sourceId}/schemas/{schemaId} Get Source Schema by ID
SourcesApi GetSource Get /sources/{id} Get Source by ID
SourcesApi GetSourceHealth Get /sources/{sourceId}/source-health This API fetches source health by source's id
SourcesApi ListProvisioningPolicies Get /sources/{sourceId}/provisioning-policies Lists ProvisioningPolicies
SourcesApi ListSchemas Get /sources/{sourceId}/schemas List Schemas on a Source
SourcesApi ListSources Get /sources Lists all sources in IdentityNow.
SourcesApi ReplaceProvisioningPolicy Put /sources/{sourceId}/provisioning-policies/{usageType} Update Provisioning Policy by UsageType
SourcesApi ReplaceSchema Put /sources/{sourceId}/schemas/{schemaId} Update Source Schema (Full)
SourcesApi ReplaceSource Put /sources/{id} Update Source (Full)
SourcesApi UpdateProvisioningPolicy Patch /sources/{sourceId}/provisioning-policies/{usageType} Partial update of Provisioning Policy
SourcesApi UpdateSchema Patch /sources/{sourceId}/schemas/{schemaId} Update Source Schema (Partial)
SourcesApi UpdateSource Patch /sources/{id} Update Source (Partial)
SourcesApi UploadConnectorFile Post /sources/{sourceId}/upload-connector-file Upload connector file to source
SourcesApi UploadSourceAccountsSchema Post /sources/{id}/schemas/accounts Uploads source accounts schema template
SourcesApi UploadSourceEntitlementsSchema Post /sources/{id}/schemas/entitlements Uploads source entitlements schema template
TransformsApi CreateTransform Post /transforms Create transform
TransformsApi DeleteTransform Delete /transforms/{id} Delete a transform
TransformsApi GetTransform Get /transforms/{id} Transform by ID
TransformsApi GetTransformsList Get /transforms List transforms
TransformsApi UpdateTransform Put /transforms/{id} Update a transform
WorkItemsApi ApproveApprovalItem Post /work-items/{id}/approve/{approvalItemId} Approve an Approval Item
WorkItemsApi BulkApproveApprovalItem Post /work-items/bulk-approve/{id} Bulk approve Approval Items
WorkItemsApi BulkRejectApprovalItem Post /work-items/bulk-reject/{id} Bulk reject Approval Items
WorkItemsApi CompleteWorkItem Post /work-items/{id} Complete a Work Item
WorkItemsApi CompletedWorkItems Get /work-items/completed Completed Work Items
WorkItemsApi CountCompletedWorkItems Get /work-items/completed/count Count Completed Work Items
WorkItemsApi CountWorkItems Get /work-items/count Count Work Items
WorkItemsApi GetWorkItems Get /work-items/{id} Get a Work Item
WorkItemsApi ListWorkItems Get /work-items List Work Items
WorkItemsApi RejectApprovalItem Post /work-items/{id}/reject/{approvalItemId} Reject an Approval Item
WorkItemsApi SubmitAccountSelection Post /work-items/{id}/submit-account-selection Submit Account Selections
WorkItemsApi SummaryWorkItems Get /work-items/summary Work Items Summary

Documentation For Models

Documentation For Authorization

oauth2

  • Type: OAuth
  • Flow: application
  • Authorization URL:
  • Scopes:
  • sp:scopes:default: default scope
  • sp:scopes:all: access to all scopes

Example

auth := context.WithValue(context.Background(), sw.ContextAccessToken, "ACCESSTOKENSTRING")
r, err := client.Service.Operation(auth, args)

Or via OAuth2 module to automatically refresh tokens and perform user authentication.

import "golang.org/x/oauth2"

/* Perform OAuth2 round trip request and obtain a token */

tokenSource := oauth2cfg.TokenSource(createContext(httpClient), &token)
auth := context.WithValue(oauth2.NoContext, sw.ContextOAuth2, tokenSource)
r, err := client.Service.Operation(auth, args)

oauth2

Example

auth := context.WithValue(context.Background(), sw.ContextAccessToken, "ACCESSTOKENSTRING")
r, err := client.Service.Operation(auth, args)

Or via OAuth2 module to automatically refresh tokens and perform user authentication.

import "golang.org/x/oauth2"

/* Perform OAuth2 round trip request and obtain a token */

tokenSource := oauth2cfg.TokenSource(createContext(httpClient), &token)
auth := context.WithValue(oauth2.NoContext, sw.ContextOAuth2, tokenSource)
r, err := client.Service.Operation(auth, args)

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

About

this is a test repository for an autogenerated go sdk

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages