Skip to content

Commit

Permalink
Automated build 'Automated commit 'Added configType to path param for…
Browse files Browse the repository at this point in the history
… delete work reassignment config (#1877)

* Added configType to path param for delete work reassignment config

* Split delete operation into separate file' by github action: 11618922288' go sdk: 11618928254
  • Loading branch information
developer-relations-sp committed Oct 31, 2024
1 parent fb1c33b commit bd2ac5f
Show file tree
Hide file tree
Showing 10 changed files with 147 additions and 119 deletions.
2 changes: 1 addition & 1 deletion api_beta/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ Class | Method | HTTP request | Description
*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
*WorkReassignmentAPI* | [**CreateReassignmentConfiguration**](docs/WorkReassignmentAPI.md#createreassignmentconfiguration) | **Post** /reassignment-configurations | Create a Reassignment Configuration
*WorkReassignmentAPI* | [**DeleteReassignmentConfiguration**](docs/WorkReassignmentAPI.md#deletereassignmentconfiguration) | **Delete** /reassignment-configurations/{identityId} | Delete Reassignment Configuration
*WorkReassignmentAPI* | [**DeleteReassignmentConfiguration**](docs/WorkReassignmentAPI.md#deletereassignmentconfiguration) | **Delete** /reassignment-configurations/{identityId}/{configType} | Delete Reassignment Configuration
*WorkReassignmentAPI* | [**GetEvaluateReassignmentConfiguration**](docs/WorkReassignmentAPI.md#getevaluatereassignmentconfiguration) | **Get** /reassignment-configurations/{identityId}/evaluate/{configType} | Evaluate Reassignment Configuration
*WorkReassignmentAPI* | [**GetReassignmentConfigTypes**](docs/WorkReassignmentAPI.md#getreassignmentconfigtypes) | **Get** /reassignment-configurations/types | List Reassignment Config Types
*WorkReassignmentAPI* | [**GetReassignmentConfiguration**](docs/WorkReassignmentAPI.md#getreassignmentconfiguration) | **Get** /reassignment-configurations/{identityId} | Get Reassignment Configuration
Expand Down
108 changes: 57 additions & 51 deletions api_beta/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31052,20 +31052,24 @@ paths:
tags:
- Work Reassignment
/reassignment-configurations/{identityId}:
delete:
description: Deletes all Reassignment Configuration for the specified identity
operationId: deleteReassignmentConfiguration
get:
description: Gets the Reassignment Configuration for an identity.
operationId: getReassignmentConfiguration
parameters:
- description: unique identity id
example: 2c91808781a71ddb0181b9090b5c504e
example: 2c91808781a71ddb0181b9090b5c504f
in: path
name: identityId
required: true
schema:
type: string
responses:
"204":
description: Reassignment Configuration deleted
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/ConfigurationResponse'
description: Reassignment Configuration for an identity
"400":
content:
application/json:
Expand Down Expand Up @@ -31097,6 +31101,24 @@ paths:
$ref: '#/components/schemas/ErrorResponseDto'
description: "Forbidden - Returned if the user you are running as, doesn't\
\ have access to this end-point."
"404":
content:
application/json:
examples:
"404":
summary: An example of a 404 response object
value:
detailCode: 404 Not found
trackingId: b21b1f7ce4da4d639f2c62a57171b427
messages:
- locale: en-US
localeOrigin: DEFAULT
text: The server did not find a current representation for the
target resource.
schema:
$ref: '#/components/schemas/ErrorResponseDto'
description: Not Found - returned if the request URL refers to a resource
or object that does not exist
"429":
content:
application/json:
Expand Down Expand Up @@ -31124,28 +31146,35 @@ paths:
error.
security:
- userAuth:
- idn:reassignment-configuration:delete
summary: Delete Reassignment Configuration
- idn:reassignment-configuration:read
summary: Get Reassignment Configuration
tags:
- Work Reassignment
get:
description: Gets the Reassignment Configuration for an identity.
operationId: getReassignmentConfiguration
put:
description: Replaces existing Reassignment configuration for an identity with
the newly provided configuration.
operationId: putReassignmentConfig
parameters:
- description: unique identity id
example: 2c91808781a71ddb0181b9090b5c504f
example: 2c91808781a71ddb0181b9090b5c504e
in: path
name: identityId
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ConfigurationItemRequest'
required: true
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/ConfigurationResponse'
description: Reassignment Configuration for an identity
$ref: '#/components/schemas/ConfigurationItemResponse'
description: Reassignment Configuration updated
"400":
content:
application/json:
Expand Down Expand Up @@ -31177,24 +31206,6 @@ paths:
$ref: '#/components/schemas/ErrorResponseDto'
description: "Forbidden - Returned if the user you are running as, doesn't\
\ have access to this end-point."
"404":
content:
application/json:
examples:
"404":
summary: An example of a 404 response object
value:
detailCode: 404 Not found
trackingId: b21b1f7ce4da4d639f2c62a57171b427
messages:
- locale: en-US
localeOrigin: DEFAULT
text: The server did not find a current representation for the
target resource.
schema:
$ref: '#/components/schemas/ErrorResponseDto'
description: Not Found - returned if the request URL refers to a resource
or object that does not exist
"429":
content:
application/json:
Expand Down Expand Up @@ -31222,14 +31233,14 @@ paths:
error.
security:
- userAuth:
- idn:reassignment-configuration:read
summary: Get Reassignment Configuration
- idn:reassignment-configuration:update
summary: Update Reassignment Configuration
tags:
- Work Reassignment
put:
description: Replaces existing Reassignment configuration for an identity with
the newly provided configuration.
operationId: putReassignmentConfig
/reassignment-configurations/{identityId}/{configType}:
delete:
description: Deletes a single reassignment configuration for the specified identity
operationId: deleteReassignmentConfiguration
parameters:
- description: unique identity id
example: 2c91808781a71ddb0181b9090b5c504e
Expand All @@ -31238,19 +31249,14 @@ paths:
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ConfigurationItemRequest'
- in: path
name: configType
required: true
schema:
$ref: '#/components/schemas/ConfigTypeEnum'
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/ConfigurationItemResponse'
description: Reassignment Configuration updated
"204":
description: Reassignment Configuration deleted
"400":
content:
application/json:
Expand Down Expand Up @@ -31309,8 +31315,8 @@ paths:
error.
security:
- userAuth:
- idn:reassignment-configuration:update
summary: Update Reassignment Configuration
- idn:reassignment-configuration:delete
summary: Delete Reassignment Configuration
tags:
- Work Reassignment
/reassignment-configurations/{identityId}/evaluate/{configType}:
Expand Down
10 changes: 7 additions & 3 deletions api_beta/api_work_reassignment.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions api_beta/docs/WorkReassignmentAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ All URIs are relative to *https://sailpoint.api.identitynow.com/beta*
Method | HTTP request | Description
------------- | ------------- | -------------
[**CreateReassignmentConfiguration**](WorkReassignmentAPI.md#CreateReassignmentConfiguration) | **Post** /reassignment-configurations | Create a Reassignment Configuration
[**DeleteReassignmentConfiguration**](WorkReassignmentAPI.md#DeleteReassignmentConfiguration) | **Delete** /reassignment-configurations/{identityId} | Delete Reassignment Configuration
[**DeleteReassignmentConfiguration**](WorkReassignmentAPI.md#DeleteReassignmentConfiguration) | **Delete** /reassignment-configurations/{identityId}/{configType} | Delete Reassignment Configuration
[**GetEvaluateReassignmentConfiguration**](WorkReassignmentAPI.md#GetEvaluateReassignmentConfiguration) | **Get** /reassignment-configurations/{identityId}/evaluate/{configType} | Evaluate Reassignment Configuration
[**GetReassignmentConfigTypes**](WorkReassignmentAPI.md#GetReassignmentConfigTypes) | **Get** /reassignment-configurations/types | List Reassignment Config Types
[**GetReassignmentConfiguration**](WorkReassignmentAPI.md#GetReassignmentConfiguration) | **Get** /reassignment-configurations/{identityId} | Get Reassignment Configuration
Expand Down Expand Up @@ -84,7 +84,7 @@ Name | Type | Description | Notes

## DeleteReassignmentConfiguration

> DeleteReassignmentConfiguration(ctx, identityId).Execute()
> DeleteReassignmentConfiguration(ctx, identityId, configType).Execute()
Delete Reassignment Configuration

Expand All @@ -104,10 +104,11 @@ import (

func main() {
identityId := "2c91808781a71ddb0181b9090b5c504e" // string | unique identity id
configType := openapiclient.ConfigTypeEnum("ACCESS_REQUESTS") // ConfigTypeEnum |

configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.WorkReassignmentAPI.DeleteReassignmentConfiguration(context.Background(), identityId).Execute()
r, err := apiClient.WorkReassignmentAPI.DeleteReassignmentConfiguration(context.Background(), identityId, configType).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `WorkReassignmentAPI.DeleteReassignmentConfiguration``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
Expand All @@ -122,6 +123,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
**identityId** | **string** | unique identity id |
**configType** | [**ConfigTypeEnum**](.md) | |

### Other Parameters

Expand All @@ -132,6 +134,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------



### Return type

(empty response body)
Expand Down
3 changes: 2 additions & 1 deletion api_beta/test/api_work_reassignment_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api_v2024/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ Class | Method | HTTP request | Description
*WorkItemsAPI* | [**SendWorkItemForward**](docs/WorkItemsAPI.md#sendworkitemforward) | **Post** /work-items/{id}/forward | Forward a Work Item
*WorkItemsAPI* | [**SubmitAccountSelection**](docs/WorkItemsAPI.md#submitaccountselection) | **Post** /work-items/{id}/submit-account-selection | Submit Account Selections
*WorkReassignmentAPI* | [**CreateReassignmentConfiguration**](docs/WorkReassignmentAPI.md#createreassignmentconfiguration) | **Post** /reassignment-configurations | Create a Reassignment Configuration
*WorkReassignmentAPI* | [**DeleteReassignmentConfiguration**](docs/WorkReassignmentAPI.md#deletereassignmentconfiguration) | **Delete** /reassignment-configurations/{identityId} | Delete Reassignment Configuration
*WorkReassignmentAPI* | [**DeleteReassignmentConfiguration**](docs/WorkReassignmentAPI.md#deletereassignmentconfiguration) | **Delete** /reassignment-configurations/{identityId}/{configType} | Delete Reassignment Configuration
*WorkReassignmentAPI* | [**GetEvaluateReassignmentConfiguration**](docs/WorkReassignmentAPI.md#getevaluatereassignmentconfiguration) | **Get** /reassignment-configurations/{identityId}/evaluate/{configType} | Evaluate Reassignment Configuration
*WorkReassignmentAPI* | [**GetReassignmentConfigTypes**](docs/WorkReassignmentAPI.md#getreassignmentconfigtypes) | **Get** /reassignment-configurations/types | List Reassignment Config Types
*WorkReassignmentAPI* | [**GetReassignmentConfiguration**](docs/WorkReassignmentAPI.md#getreassignmentconfiguration) | **Get** /reassignment-configurations/{identityId} | Get Reassignment Configuration
Expand Down
Loading

0 comments on commit bd2ac5f

Please sign in to comment.