Skip to content

Commit

Permalink
Automated commit 'ISCCOMPLI-1715 : to include the additions for Machi…
Browse files Browse the repository at this point in the history
…ne Account certification to the Create Campaign API and the Review Items API. (#1663)

* ISCCOMPLI-1715 changes in create campaign api doc related to addition of Non human account

* ISCCOMPLI-1715 changes in create campaign v3 api doc related to addition of Non human account

* ISCCOMPLI-1715 corrected the format to resolve API lint error

* ISCCOMPLI-1715 corrected the format to resolve API lint error

* ISCCOMPLI-1715 review item API response related updates for non-human account added in the doc

* Rename nonhuman to machine account

* rename nonhuman to machine account

---------

Co-authored-by: marcus-gregory-sp <[email protected]>' by github action: 11462174711
  • Loading branch information
tyler-mairose-sp committed Oct 22, 2024
1 parent be9b715 commit 8af6cdd
Show file tree
Hide file tree
Showing 19 changed files with 165 additions and 0 deletions.
4 changes: 4 additions & 0 deletions idn/beta/paths/campaigns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ post:
$ref: '../schemas/campaign/examples/CreateCampaignSourceOwner.yaml'
Role Composition:
$ref: '../schemas/campaign/examples/CreateCampaignRoleComposition.yaml'
Machine Account Owner:
$ref: '../schemas/campaign/examples/CreateCampaignMachineAccount.yaml'
responses:
'200':
description: This response indicates that the requested campaign was successfully created, and the API returns its representation.
Expand All @@ -126,6 +128,8 @@ post:
$ref: '../schemas/campaign/examples/FullCampaignSourceOwner.yaml'
Role Composition:
$ref: '../schemas/campaign/examples/FullCampaignRoleComposition.yaml'
Machine Account Owner:
$ref: '../schemas/campaign/examples/FullCampaignMachineAccount.yaml'
'400':
$ref: '../../v3/responses/400.yaml'
'401':
Expand Down
16 changes: 16 additions & 0 deletions idn/beta/schemas/Campaign.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,22 @@ allOf:
example: Role Composition Description
required:
- remediatorRef
machineAccountCampaignInfo:
type: object
description: Must be set only if the campaign type is MACHINE_ACCOUNT.
properties:
sourceIds:
type: array
description: The list of sources to be included in the campaign.
items:
type: string
example: [ 0fbe863c063c4c88a35fd7f17e8a3df5 ]
reviewerType:
type: string
description: The reviewer's type.
enum:
- ACCOUNT_OWNER
example: ACCOUNT_OWNER
sourcesWithOrphanEntitlements:
type: array
description: >-
Expand Down
1 change: 1 addition & 0 deletions idn/beta/schemas/SlimCampaign.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ properties:
- SOURCE_OWNER
- SEARCH
- ROLE_COMPOSITION
- MACHINE_ACCOUNT
example: MANAGER
emailNotificationEnabled:
type: boolean
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
value:
name: Machine Account Owner Campaign
description: A review done by a Machine Account's owner.
deadline: 2024-12-25T06:00:00.468Z
type: MACHINE_ACCOUNT
emailNotificationEnabled: false
autoRevokeAllowed: false
recommendationsEnabled: false
filter:
type: CAMPAIGN_FILTER
id: 0c46fb26c6b20967a55517ee90d15b93
machineAccountCampaignInfo:
sourceIds:
- d988f117b7624a16ab0b64c439d5dbb8
reviewerType: ACCOUNT_OWNER
27 changes: 27 additions & 0 deletions idn/beta/schemas/campaign/examples/FullCampaignMachineAccount.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
value:
id: 3e9ff3d6555e4721b74695d5b578e847
name: Machine Account Owner Campaign
description: A review done by a Machine Account's owner.
deadline: 2024-05-07T19:43:38.186Z
type: MACHINE_ACCOUNT
status: PENDING
emailNotificationEnabled: false
autoRevokeAllowed: false
recommendationsEnabled: false
created: 2024-04-23T19:43:38.355Z
modified: 2024-04-23T19:43:38.355Z
filter: null
sunsetCommentsRequired: true
mandatoryCommentRequirement: NO_DECISIONS
sourceOwnerCampaignInfo: null
searchCampaignInfo: null
roleCompositionCampaignInfo: null
totalCertifications: 0
completedCertifications: 0
alerts: null
correlatedStatus: CORRELATED
sourcesWithOrphanEntitlements: [ ]
machineAccountCampaignInfo:
sourceIds:
- d988f117b7624a16ab0b64c439d5dbb8
reviewerType: ACCOUNT_OWNER
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ value:
sourceOwnerCampaignInfo: null
searchCampaignInfo: null
roleCompositionCampaignInfo: null
machineAccountCampaignInfo: null
alerts: null
totalCertifications: 0
completedCertifications: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@ value:
totalCertifications: 0
completedCertifications: 0
sourcesWithOrphanEntitlements: null
machineAccountCampaignInfo: null
mandatoryCommentRequirement: NO_DECISIONS

1 change: 1 addition & 0 deletions idn/beta/schemas/campaign/examples/FullCampaignSearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ value:
identityIds: null
accessConstraints: []
roleCompositionCampaignInfo: null
machineAccountCampaignInfo: null
alerts: null
totalCertifications: 0
completedCertifications: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ value:
- 612b31b1a0f04aaf83123bdb80e70db6
searchCampaignInfo: null
roleCompositionCampaignInfo: null
machineAccountCampaignInfo: null
alerts: null
totalCertifications: 0
completedCertifications: 0
Expand Down
4 changes: 4 additions & 0 deletions idn/v3/paths/campaigns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ post:
$ref: '../schemas/campaign/examples/CreateCampaignSourceOwner.yaml'
Role Composition:
$ref: '../schemas/campaign/examples/CreateCampaignRoleComposition.yaml'
Machine Account:
$ref: '../schemas/campaign/examples/CreateCampaignMachineAccount.yaml'
responses:
'200':
description: This response indicates that the requested campaign was successfully created, and the API returns its representation.
Expand All @@ -126,6 +128,8 @@ post:
$ref: '../schemas/campaign/examples/FullCampaignSourceOwner.yaml'
Role Composition:
$ref: '../schemas/campaign/examples/FullCampaignRoleComposition.yaml'
Machine Account Owner:
$ref: '../schemas/campaign/examples/FullCampaignMachineAccount.yaml'
'400':
$ref: '../responses/400.yaml'
'401':
Expand Down
16 changes: 16 additions & 0 deletions idn/v3/schemas/Campaign.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,22 @@ allOf:
example: Role Composition Description
required:
- remediatorRef
machineAccountCampaignInfo:
type: object
description: Must be set only if the campaign type is MACHINE_ACCOUNT.
properties:
sourceIds:
type: array
description: The list of sources to be included in the campaign.
items:
type: string
example: [ 0fbe863c063c4c88a35fd7f17e8a3df5 ]
reviewerType:
type: string
description: The reviewer's type.
enum:
- ACCOUNT_OWNER
example: ACCOUNT_OWNER
sourcesWithOrphanEntitlements:
type: array
description: >-
Expand Down
1 change: 1 addition & 0 deletions idn/v3/schemas/SlimCampaign.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ properties:
- SOURCE_OWNER
- SEARCH
- ROLE_COMPOSITION
- MACHINE_ACCOUNT
example: MANAGER
emailNotificationEnabled:
type: boolean
Expand Down
15 changes: 15 additions & 0 deletions idn/v3/schemas/campaign/examples/CreateCampaignMachineAccount.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
value:
name: Machine Account Owner Campaign
description: A review done by a Machine Account's owner.
deadline: 2024-12-25T06:00:00.468Z
type: MACHINE_ACCOUNT
emailNotificationEnabled: false
autoRevokeAllowed: false
recommendationsEnabled: false
filter:
type: CAMPAIGN_FILTER
id: 0c46fb26c6b20967a55517ee90d15b93
machineAccountCampaignInfo:
sourceIds:
- d988f117b7624a16ab0b64c439d5dbb8
reviewerType: ACCOUNT_OWNER
27 changes: 27 additions & 0 deletions idn/v3/schemas/campaign/examples/FullCampaignMachineAccount.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
value:
id: 3e9ff3d6555e4721b74695d5b578e847
name: Machine Account Owner Campaign
description: A review done by a machine account's owner.
deadline: 2024-05-07T19:43:38.186Z
type: MACHINE_ACCOUNT
status: PENDING
emailNotificationEnabled: false
autoRevokeAllowed: false
recommendationsEnabled: false
created: 2024-04-23T19:43:38.355Z
modified: 2024-04-23T19:43:38.355Z
filter: null
sunsetCommentsRequired: true
mandatoryCommentRequirement: NO_DECISIONS
sourceOwnerCampaignInfo: null
searchCampaignInfo: null
roleCompositionCampaignInfo: null
totalCertifications: 0
completedCertifications: 0
alerts: null
correlatedStatus: CORRELATED
sourcesWithOrphanEntitlements: [ ]
machineAccountCampaignInfo:
sourceIds:
- d988f117b7624a16ab0b64c439d5dbb8
reviewerType: ACCOUNT_OWNER
1 change: 1 addition & 0 deletions idn/v3/schemas/campaign/examples/FullCampaignManager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ value:
sourceOwnerCampaignInfo: null
searchCampaignInfo: null
roleCompositionCampaignInfo: null
machineAccountCampaignInfo: null
alerts: null
totalCertifications: 0
completedCertifications: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@ value:
totalCertifications: 0
completedCertifications: 0
sourcesWithOrphanEntitlements: null
machineAccountCampaignInfo: null
mandatoryCommentRequirement: NO_DECISIONS

1 change: 1 addition & 0 deletions idn/v3/schemas/campaign/examples/FullCampaignSearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ value:
identityIds: null
accessConstraints: []
roleCompositionCampaignInfo: null
machineAccountCampaignInfo: null
alerts: null
totalCertifications: 0
completedCertifications: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ value:
- 612b31b1a0f04aaf83123bdb80e70db6
searchCampaignInfo: null
roleCompositionCampaignInfo: null
machineAccountCampaignInfo: null
alerts: null
totalCertifications: 0
completedCertifications: 0
Expand Down
31 changes: 31 additions & 0 deletions idn/v3/schemas/reviews/ReviewableEntitlement.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,34 @@ properties:
example: '2020-05-20T18:57:16.987Z'
activityInsights:
$ref: '../ActivityInsights.yaml'
description:
nullable: true
type: string
description: Information about the account
example: Account for Read/write to the company database
governanceGroupId:
nullable: true
type: string
description: The id associated with the machine Account Governance Group
example: 2c9180857182305e0171993737eb29e6
owner:
type: object
nullable: true
description: Information about the machine account owner
properties:
id:
nullable: true
type: string
description: The id associated with the machine account owner
example: 2c9180857182305e0171993737eb29e8
type:
type: string
enum:
- IDENTITY
description: An enumeration of the types of Owner supported within the IdentityNow infrastructure.
example: IDENTITY
displayName:
nullable: true
type: string
description: The machine account owner's display name
example: Alison Ferguson

0 comments on commit 8af6cdd

Please sign in to comment.