From 7649871553f473d5d8b3489d4c817b321401eed1 Mon Sep 17 00:00:00 2001 From: GitHub Action Bot Date: Thu, 2 Jan 2025 20:11:23 +0000 Subject: [PATCH] Automated build 'Automated commit 'iscarp-12549: Update API spec for Access Request Status to add approvalId to the approvalDetails and add list of approvalIds. (#1931) * ISCARP-12549: Add ApprovalId to the approvaldetail in access request status api * ISCARP-12549: add nullable * ISCARP-12549: Add list pf approvalIds' by github action: 12588130503' go sdk: 12588135742 --- api_beta/api/openapi.yaml | 20 ++++++++++ api_beta/docs/ApprovalStatusDto.md | 36 ++++++++++++++++++ api_beta/docs/RequestedItemStatus.md | 36 ++++++++++++++++++ api_beta/model_approval_status_dto.go | 48 ++++++++++++++++++++++++ api_beta/model_requested_item_status.go | 39 +++++++++++++++++++ api_v2024/api/openapi.yaml | 20 ++++++++++ api_v2024/docs/ApprovalStatusDto.md | 36 ++++++++++++++++++ api_v2024/docs/RequestedItemStatus.md | 36 ++++++++++++++++++ api_v2024/model_approval_status_dto.go | 48 ++++++++++++++++++++++++ api_v2024/model_requested_item_status.go | 39 +++++++++++++++++++ api_v3/api/openapi.yaml | 20 ++++++++++ api_v3/docs/ApprovalStatusDto.md | 36 ++++++++++++++++++ api_v3/docs/RequestedItemStatus.md | 36 ++++++++++++++++++ api_v3/model_approval_status_dto.go | 48 ++++++++++++++++++++++++ api_v3/model_requested_item_status.go | 39 +++++++++++++++++++ 15 files changed, 537 insertions(+) diff --git a/api_beta/api/openapi.yaml b/api_beta/api/openapi.yaml index c497eeeaa..e56b3109a 100644 --- a/api_beta/api/openapi.yaml +++ b/api_beta/api/openapi.yaml @@ -65217,6 +65217,7 @@ components: id: 2c3780a46faadee4016fb4e018c20652 type: IDENTITY modified: 2019-08-23T18:52:57.398Z + approvalId: 2c9180877b2b6ea4017b2c545f971429 comment: I approve this request forwarded: false status: PENDING @@ -65240,6 +65241,7 @@ components: id: 2c3780a46faadee4016fb4e018c20652 type: IDENTITY modified: 2019-08-23T18:52:57.398Z + approvalId: 2c9180877b2b6ea4017b2c545f971429 comment: I approve this request forwarded: false status: PENDING @@ -65259,6 +65261,9 @@ components: reviewer: John Doe description: This is the Engineering role that engineers are granted. type: ACCESS_PROFILE + approvalIds: + - 85f0cf482dd44327b593624c07906c21 + - fa57e1bfa36f41ee85e33ee59fcbeac5 errorMessages: - - localeOrigin: DEFAULT text: The request was syntactically correct but its content is semantically @@ -65454,6 +65459,15 @@ components: items: $ref: '#/components/schemas/ApprovalStatusDto' type: array + approvalIds: + description: List of approval IDs associated with the request. + example: + - 85f0cf482dd44327b593624c07906c21 + - fa57e1bfa36f41ee85e33ee59fcbeac5 + items: + type: string + nullable: true + type: array manualWorkItemDetails: description: Manual work items created for provisioning the item. items: @@ -82839,10 +82853,16 @@ components: id: 2c3780a46faadee4016fb4e018c20652 type: IDENTITY modified: 2019-08-23T18:52:57.398Z + approvalId: 2c9180877b2b6ea4017b2c545f971429 comment: I approve this request forwarded: false status: PENDING properties: + approvalId: + description: Unique identifier for the approval. + example: 2c9180877b2b6ea4017b2c545f971429 + nullable: true + type: string forwarded: default: false description: True if the request for this item was forwarded from one owner diff --git a/api_beta/docs/ApprovalStatusDto.md b/api_beta/docs/ApprovalStatusDto.md index 807e82a3a..654da764f 100644 --- a/api_beta/docs/ApprovalStatusDto.md +++ b/api_beta/docs/ApprovalStatusDto.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**ApprovalId** | Pointer to **NullableString** | Unique identifier for the approval. | [optional] **Forwarded** | Pointer to **bool** | True if the request for this item was forwarded from one owner to another. | [optional] [default to false] **OriginalOwner** | Pointer to [**ApprovalStatusDtoOriginalOwner**](ApprovalStatusDtoOriginalOwner.md) | | [optional] **CurrentOwner** | Pointer to [**ApprovalStatusDtoCurrentOwner**](ApprovalStatusDtoCurrentOwner.md) | | [optional] @@ -33,6 +34,41 @@ NewApprovalStatusDtoWithDefaults instantiates a new ApprovalStatusDto object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetApprovalId + +`func (o *ApprovalStatusDto) GetApprovalId() string` + +GetApprovalId returns the ApprovalId field if non-nil, zero value otherwise. + +### GetApprovalIdOk + +`func (o *ApprovalStatusDto) GetApprovalIdOk() (*string, bool)` + +GetApprovalIdOk returns a tuple with the ApprovalId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApprovalId + +`func (o *ApprovalStatusDto) SetApprovalId(v string)` + +SetApprovalId sets ApprovalId field to given value. + +### HasApprovalId + +`func (o *ApprovalStatusDto) HasApprovalId() bool` + +HasApprovalId returns a boolean if a field has been set. + +### SetApprovalIdNil + +`func (o *ApprovalStatusDto) SetApprovalIdNil(b bool)` + + SetApprovalIdNil sets the value for ApprovalId to be an explicit nil + +### UnsetApprovalId +`func (o *ApprovalStatusDto) UnsetApprovalId()` + +UnsetApprovalId ensures that no value is present for ApprovalId, not even an explicit nil ### GetForwarded `func (o *ApprovalStatusDto) GetForwarded() bool` diff --git a/api_beta/docs/RequestedItemStatus.md b/api_beta/docs/RequestedItemStatus.md index a8c5651ef..bc742b647 100644 --- a/api_beta/docs/RequestedItemStatus.md +++ b/api_beta/docs/RequestedItemStatus.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **ErrorMessages** | Pointer to [**[][]ErrorMessageDto**]([]ErrorMessageDto.md) | List of list of localized error messages, if any, encountered during the approval/provisioning process. | [optional] **State** | Pointer to [**RequestedItemStatusRequestState**](RequestedItemStatusRequestState.md) | | [optional] **ApprovalDetails** | Pointer to [**[]ApprovalStatusDto**](ApprovalStatusDto.md) | Approval details for each item. | [optional] +**ApprovalIds** | Pointer to **[]string** | List of approval IDs associated with the request. | [optional] **ManualWorkItemDetails** | Pointer to [**[]ManualWorkItemDetails**](ManualWorkItemDetails.md) | Manual work items created for provisioning the item. | [optional] **AccountActivityItemId** | Pointer to **string** | Id of associated account activity item. | [optional] **RequestType** | Pointer to [**NullableAccessRequestType**](AccessRequestType.md) | | [optional] @@ -227,6 +228,41 @@ SetApprovalDetails sets ApprovalDetails field to given value. HasApprovalDetails returns a boolean if a field has been set. +### GetApprovalIds + +`func (o *RequestedItemStatus) GetApprovalIds() []string` + +GetApprovalIds returns the ApprovalIds field if non-nil, zero value otherwise. + +### GetApprovalIdsOk + +`func (o *RequestedItemStatus) GetApprovalIdsOk() (*[]string, bool)` + +GetApprovalIdsOk returns a tuple with the ApprovalIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApprovalIds + +`func (o *RequestedItemStatus) SetApprovalIds(v []string)` + +SetApprovalIds sets ApprovalIds field to given value. + +### HasApprovalIds + +`func (o *RequestedItemStatus) HasApprovalIds() bool` + +HasApprovalIds returns a boolean if a field has been set. + +### SetApprovalIdsNil + +`func (o *RequestedItemStatus) SetApprovalIdsNil(b bool)` + + SetApprovalIdsNil sets the value for ApprovalIds to be an explicit nil + +### UnsetApprovalIds +`func (o *RequestedItemStatus) UnsetApprovalIds()` + +UnsetApprovalIds ensures that no value is present for ApprovalIds, not even an explicit nil ### GetManualWorkItemDetails `func (o *RequestedItemStatus) GetManualWorkItemDetails() []ManualWorkItemDetails` diff --git a/api_beta/model_approval_status_dto.go b/api_beta/model_approval_status_dto.go index a8e8ece4e..dc520a5ea 100644 --- a/api_beta/model_approval_status_dto.go +++ b/api_beta/model_approval_status_dto.go @@ -20,6 +20,8 @@ var _ MappedNullable = &ApprovalStatusDto{} // ApprovalStatusDto struct for ApprovalStatusDto type ApprovalStatusDto struct { + // Unique identifier for the approval. + ApprovalId NullableString `json:"approvalId,omitempty"` // True if the request for this item was forwarded from one owner to another. Forwarded *bool `json:"forwarded,omitempty"` OriginalOwner *ApprovalStatusDtoOriginalOwner `json:"originalOwner,omitempty"` @@ -60,6 +62,48 @@ func NewApprovalStatusDtoWithDefaults() *ApprovalStatusDto { return &this } +// GetApprovalId returns the ApprovalId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ApprovalStatusDto) GetApprovalId() string { + if o == nil || IsNil(o.ApprovalId.Get()) { + var ret string + return ret + } + return *o.ApprovalId.Get() +} + +// GetApprovalIdOk returns a tuple with the ApprovalId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ApprovalStatusDto) GetApprovalIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ApprovalId.Get(), o.ApprovalId.IsSet() +} + +// HasApprovalId returns a boolean if a field has been set. +func (o *ApprovalStatusDto) HasApprovalId() bool { + if o != nil && o.ApprovalId.IsSet() { + return true + } + + return false +} + +// SetApprovalId gets a reference to the given NullableString and assigns it to the ApprovalId field. +func (o *ApprovalStatusDto) SetApprovalId(v string) { + o.ApprovalId.Set(&v) +} +// SetApprovalIdNil sets the value for ApprovalId to be an explicit nil +func (o *ApprovalStatusDto) SetApprovalIdNil() { + o.ApprovalId.Set(nil) +} + +// UnsetApprovalId ensures that no value is present for ApprovalId, not even an explicit nil +func (o *ApprovalStatusDto) UnsetApprovalId() { + o.ApprovalId.Unset() +} + // GetForwarded returns the Forwarded field value if set, zero value otherwise. func (o *ApprovalStatusDto) GetForwarded() bool { if o == nil || IsNil(o.Forwarded) { @@ -389,6 +433,9 @@ func (o ApprovalStatusDto) MarshalJSON() ([]byte, error) { func (o ApprovalStatusDto) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.ApprovalId.IsSet() { + toSerialize["approvalId"] = o.ApprovalId.Get() + } if !IsNil(o.Forwarded) { toSerialize["forwarded"] = o.Forwarded } @@ -438,6 +485,7 @@ func (o *ApprovalStatusDto) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "approvalId") delete(additionalProperties, "forwarded") delete(additionalProperties, "originalOwner") delete(additionalProperties, "currentOwner") diff --git a/api_beta/model_requested_item_status.go b/api_beta/model_requested_item_status.go index 69163a1c5..b590aa842 100644 --- a/api_beta/model_requested_item_status.go +++ b/api_beta/model_requested_item_status.go @@ -30,6 +30,8 @@ type RequestedItemStatus struct { State *RequestedItemStatusRequestState `json:"state,omitempty"` // Approval details for each item. ApprovalDetails []ApprovalStatusDto `json:"approvalDetails,omitempty"` + // List of approval IDs associated with the request. + ApprovalIds []string `json:"approvalIds,omitempty"` // Manual work items created for provisioning the item. ManualWorkItemDetails []ManualWorkItemDetails `json:"manualWorkItemDetails,omitempty"` // Id of associated account activity item. @@ -296,6 +298,39 @@ func (o *RequestedItemStatus) SetApprovalDetails(v []ApprovalStatusDto) { o.ApprovalDetails = v } +// GetApprovalIds returns the ApprovalIds field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RequestedItemStatus) GetApprovalIds() []string { + if o == nil { + var ret []string + return ret + } + return o.ApprovalIds +} + +// GetApprovalIdsOk returns a tuple with the ApprovalIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RequestedItemStatus) GetApprovalIdsOk() ([]string, bool) { + if o == nil || IsNil(o.ApprovalIds) { + return nil, false + } + return o.ApprovalIds, true +} + +// HasApprovalIds returns a boolean if a field has been set. +func (o *RequestedItemStatus) HasApprovalIds() bool { + if o != nil && !IsNil(o.ApprovalIds) { + return true + } + + return false +} + +// SetApprovalIds gets a reference to the given []string and assigns it to the ApprovalIds field. +func (o *RequestedItemStatus) SetApprovalIds(v []string) { + o.ApprovalIds = v +} + // GetManualWorkItemDetails returns the ManualWorkItemDetails field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RequestedItemStatus) GetManualWorkItemDetails() []ManualWorkItemDetails { if o == nil { @@ -911,6 +946,9 @@ func (o RequestedItemStatus) ToMap() (map[string]interface{}, error) { if !IsNil(o.ApprovalDetails) { toSerialize["approvalDetails"] = o.ApprovalDetails } + if o.ApprovalIds != nil { + toSerialize["approvalIds"] = o.ApprovalIds + } if o.ManualWorkItemDetails != nil { toSerialize["manualWorkItemDetails"] = o.ManualWorkItemDetails } @@ -990,6 +1028,7 @@ func (o *RequestedItemStatus) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "errorMessages") delete(additionalProperties, "state") delete(additionalProperties, "approvalDetails") + delete(additionalProperties, "approvalIds") delete(additionalProperties, "manualWorkItemDetails") delete(additionalProperties, "accountActivityItemId") delete(additionalProperties, "requestType") diff --git a/api_v2024/api/openapi.yaml b/api_v2024/api/openapi.yaml index c70c433ae..13993950a 100644 --- a/api_v2024/api/openapi.yaml +++ b/api_v2024/api/openapi.yaml @@ -80126,6 +80126,7 @@ components: id: 2c3780a46faadee4016fb4e018c20652 type: IDENTITY modified: 2019-08-23T18:52:57.398Z + approvalId: 2c9180877b2b6ea4017b2c545f971429 comment: I approve this request forwarded: false status: PENDING @@ -80149,6 +80150,7 @@ components: id: 2c3780a46faadee4016fb4e018c20652 type: IDENTITY modified: 2019-08-23T18:52:57.398Z + approvalId: 2c9180877b2b6ea4017b2c545f971429 comment: I approve this request forwarded: false status: PENDING @@ -80168,6 +80170,9 @@ components: reviewer: John Doe description: This is the Engineering role that engineers are granted. type: ACCESS_PROFILE + approvalIds: + - 85f0cf482dd44327b593624c07906c21 + - fa57e1bfa36f41ee85e33ee59fcbeac5 errorMessages: - - localeOrigin: DEFAULT text: The request was syntactically correct but its content is semantically @@ -80363,6 +80368,15 @@ components: items: $ref: '#/components/schemas/ApprovalStatusDto' type: array + approvalIds: + description: List of approval IDs associated with the request. + example: + - 85f0cf482dd44327b593624c07906c21 + - fa57e1bfa36f41ee85e33ee59fcbeac5 + items: + type: string + nullable: true + type: array manualWorkItemDetails: description: Manual work items created for provisioning the item. items: @@ -100195,10 +100209,16 @@ components: id: 2c3780a46faadee4016fb4e018c20652 type: IDENTITY modified: 2019-08-23T18:52:57.398Z + approvalId: 2c9180877b2b6ea4017b2c545f971429 comment: I approve this request forwarded: false status: PENDING properties: + approvalId: + description: Unique identifier for the approval. + example: 2c9180877b2b6ea4017b2c545f971429 + nullable: true + type: string forwarded: default: false description: True if the request for this item was forwarded from one owner diff --git a/api_v2024/docs/ApprovalStatusDto.md b/api_v2024/docs/ApprovalStatusDto.md index 807e82a3a..654da764f 100644 --- a/api_v2024/docs/ApprovalStatusDto.md +++ b/api_v2024/docs/ApprovalStatusDto.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**ApprovalId** | Pointer to **NullableString** | Unique identifier for the approval. | [optional] **Forwarded** | Pointer to **bool** | True if the request for this item was forwarded from one owner to another. | [optional] [default to false] **OriginalOwner** | Pointer to [**ApprovalStatusDtoOriginalOwner**](ApprovalStatusDtoOriginalOwner.md) | | [optional] **CurrentOwner** | Pointer to [**ApprovalStatusDtoCurrentOwner**](ApprovalStatusDtoCurrentOwner.md) | | [optional] @@ -33,6 +34,41 @@ NewApprovalStatusDtoWithDefaults instantiates a new ApprovalStatusDto object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetApprovalId + +`func (o *ApprovalStatusDto) GetApprovalId() string` + +GetApprovalId returns the ApprovalId field if non-nil, zero value otherwise. + +### GetApprovalIdOk + +`func (o *ApprovalStatusDto) GetApprovalIdOk() (*string, bool)` + +GetApprovalIdOk returns a tuple with the ApprovalId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApprovalId + +`func (o *ApprovalStatusDto) SetApprovalId(v string)` + +SetApprovalId sets ApprovalId field to given value. + +### HasApprovalId + +`func (o *ApprovalStatusDto) HasApprovalId() bool` + +HasApprovalId returns a boolean if a field has been set. + +### SetApprovalIdNil + +`func (o *ApprovalStatusDto) SetApprovalIdNil(b bool)` + + SetApprovalIdNil sets the value for ApprovalId to be an explicit nil + +### UnsetApprovalId +`func (o *ApprovalStatusDto) UnsetApprovalId()` + +UnsetApprovalId ensures that no value is present for ApprovalId, not even an explicit nil ### GetForwarded `func (o *ApprovalStatusDto) GetForwarded() bool` diff --git a/api_v2024/docs/RequestedItemStatus.md b/api_v2024/docs/RequestedItemStatus.md index a8c5651ef..bc742b647 100644 --- a/api_v2024/docs/RequestedItemStatus.md +++ b/api_v2024/docs/RequestedItemStatus.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **ErrorMessages** | Pointer to [**[][]ErrorMessageDto**]([]ErrorMessageDto.md) | List of list of localized error messages, if any, encountered during the approval/provisioning process. | [optional] **State** | Pointer to [**RequestedItemStatusRequestState**](RequestedItemStatusRequestState.md) | | [optional] **ApprovalDetails** | Pointer to [**[]ApprovalStatusDto**](ApprovalStatusDto.md) | Approval details for each item. | [optional] +**ApprovalIds** | Pointer to **[]string** | List of approval IDs associated with the request. | [optional] **ManualWorkItemDetails** | Pointer to [**[]ManualWorkItemDetails**](ManualWorkItemDetails.md) | Manual work items created for provisioning the item. | [optional] **AccountActivityItemId** | Pointer to **string** | Id of associated account activity item. | [optional] **RequestType** | Pointer to [**NullableAccessRequestType**](AccessRequestType.md) | | [optional] @@ -227,6 +228,41 @@ SetApprovalDetails sets ApprovalDetails field to given value. HasApprovalDetails returns a boolean if a field has been set. +### GetApprovalIds + +`func (o *RequestedItemStatus) GetApprovalIds() []string` + +GetApprovalIds returns the ApprovalIds field if non-nil, zero value otherwise. + +### GetApprovalIdsOk + +`func (o *RequestedItemStatus) GetApprovalIdsOk() (*[]string, bool)` + +GetApprovalIdsOk returns a tuple with the ApprovalIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApprovalIds + +`func (o *RequestedItemStatus) SetApprovalIds(v []string)` + +SetApprovalIds sets ApprovalIds field to given value. + +### HasApprovalIds + +`func (o *RequestedItemStatus) HasApprovalIds() bool` + +HasApprovalIds returns a boolean if a field has been set. + +### SetApprovalIdsNil + +`func (o *RequestedItemStatus) SetApprovalIdsNil(b bool)` + + SetApprovalIdsNil sets the value for ApprovalIds to be an explicit nil + +### UnsetApprovalIds +`func (o *RequestedItemStatus) UnsetApprovalIds()` + +UnsetApprovalIds ensures that no value is present for ApprovalIds, not even an explicit nil ### GetManualWorkItemDetails `func (o *RequestedItemStatus) GetManualWorkItemDetails() []ManualWorkItemDetails` diff --git a/api_v2024/model_approval_status_dto.go b/api_v2024/model_approval_status_dto.go index e3e41e47d..fd76fb209 100644 --- a/api_v2024/model_approval_status_dto.go +++ b/api_v2024/model_approval_status_dto.go @@ -20,6 +20,8 @@ var _ MappedNullable = &ApprovalStatusDto{} // ApprovalStatusDto struct for ApprovalStatusDto type ApprovalStatusDto struct { + // Unique identifier for the approval. + ApprovalId NullableString `json:"approvalId,omitempty"` // True if the request for this item was forwarded from one owner to another. Forwarded *bool `json:"forwarded,omitempty"` OriginalOwner *ApprovalStatusDtoOriginalOwner `json:"originalOwner,omitempty"` @@ -60,6 +62,48 @@ func NewApprovalStatusDtoWithDefaults() *ApprovalStatusDto { return &this } +// GetApprovalId returns the ApprovalId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ApprovalStatusDto) GetApprovalId() string { + if o == nil || IsNil(o.ApprovalId.Get()) { + var ret string + return ret + } + return *o.ApprovalId.Get() +} + +// GetApprovalIdOk returns a tuple with the ApprovalId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ApprovalStatusDto) GetApprovalIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ApprovalId.Get(), o.ApprovalId.IsSet() +} + +// HasApprovalId returns a boolean if a field has been set. +func (o *ApprovalStatusDto) HasApprovalId() bool { + if o != nil && o.ApprovalId.IsSet() { + return true + } + + return false +} + +// SetApprovalId gets a reference to the given NullableString and assigns it to the ApprovalId field. +func (o *ApprovalStatusDto) SetApprovalId(v string) { + o.ApprovalId.Set(&v) +} +// SetApprovalIdNil sets the value for ApprovalId to be an explicit nil +func (o *ApprovalStatusDto) SetApprovalIdNil() { + o.ApprovalId.Set(nil) +} + +// UnsetApprovalId ensures that no value is present for ApprovalId, not even an explicit nil +func (o *ApprovalStatusDto) UnsetApprovalId() { + o.ApprovalId.Unset() +} + // GetForwarded returns the Forwarded field value if set, zero value otherwise. func (o *ApprovalStatusDto) GetForwarded() bool { if o == nil || IsNil(o.Forwarded) { @@ -389,6 +433,9 @@ func (o ApprovalStatusDto) MarshalJSON() ([]byte, error) { func (o ApprovalStatusDto) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.ApprovalId.IsSet() { + toSerialize["approvalId"] = o.ApprovalId.Get() + } if !IsNil(o.Forwarded) { toSerialize["forwarded"] = o.Forwarded } @@ -438,6 +485,7 @@ func (o *ApprovalStatusDto) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "approvalId") delete(additionalProperties, "forwarded") delete(additionalProperties, "originalOwner") delete(additionalProperties, "currentOwner") diff --git a/api_v2024/model_requested_item_status.go b/api_v2024/model_requested_item_status.go index 0fc5c7ad7..2ab8ab91c 100644 --- a/api_v2024/model_requested_item_status.go +++ b/api_v2024/model_requested_item_status.go @@ -30,6 +30,8 @@ type RequestedItemStatus struct { State *RequestedItemStatusRequestState `json:"state,omitempty"` // Approval details for each item. ApprovalDetails []ApprovalStatusDto `json:"approvalDetails,omitempty"` + // List of approval IDs associated with the request. + ApprovalIds []string `json:"approvalIds,omitempty"` // Manual work items created for provisioning the item. ManualWorkItemDetails []ManualWorkItemDetails `json:"manualWorkItemDetails,omitempty"` // Id of associated account activity item. @@ -296,6 +298,39 @@ func (o *RequestedItemStatus) SetApprovalDetails(v []ApprovalStatusDto) { o.ApprovalDetails = v } +// GetApprovalIds returns the ApprovalIds field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RequestedItemStatus) GetApprovalIds() []string { + if o == nil { + var ret []string + return ret + } + return o.ApprovalIds +} + +// GetApprovalIdsOk returns a tuple with the ApprovalIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RequestedItemStatus) GetApprovalIdsOk() ([]string, bool) { + if o == nil || IsNil(o.ApprovalIds) { + return nil, false + } + return o.ApprovalIds, true +} + +// HasApprovalIds returns a boolean if a field has been set. +func (o *RequestedItemStatus) HasApprovalIds() bool { + if o != nil && !IsNil(o.ApprovalIds) { + return true + } + + return false +} + +// SetApprovalIds gets a reference to the given []string and assigns it to the ApprovalIds field. +func (o *RequestedItemStatus) SetApprovalIds(v []string) { + o.ApprovalIds = v +} + // GetManualWorkItemDetails returns the ManualWorkItemDetails field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RequestedItemStatus) GetManualWorkItemDetails() []ManualWorkItemDetails { if o == nil { @@ -911,6 +946,9 @@ func (o RequestedItemStatus) ToMap() (map[string]interface{}, error) { if !IsNil(o.ApprovalDetails) { toSerialize["approvalDetails"] = o.ApprovalDetails } + if o.ApprovalIds != nil { + toSerialize["approvalIds"] = o.ApprovalIds + } if o.ManualWorkItemDetails != nil { toSerialize["manualWorkItemDetails"] = o.ManualWorkItemDetails } @@ -990,6 +1028,7 @@ func (o *RequestedItemStatus) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "errorMessages") delete(additionalProperties, "state") delete(additionalProperties, "approvalDetails") + delete(additionalProperties, "approvalIds") delete(additionalProperties, "manualWorkItemDetails") delete(additionalProperties, "accountActivityItemId") delete(additionalProperties, "requestType") diff --git a/api_v3/api/openapi.yaml b/api_v3/api/openapi.yaml index fb2ed92ed..86ec32651 100644 --- a/api_v3/api/openapi.yaml +++ b/api_v3/api/openapi.yaml @@ -47262,6 +47262,7 @@ components: id: 2c3780a46faadee4016fb4e018c20652 type: IDENTITY modified: 2019-08-23T18:52:57.398Z + approvalId: 2c9180877b2b6ea4017b2c545f971429 comment: I approve this request forwarded: false status: PENDING @@ -47285,6 +47286,7 @@ components: id: 2c3780a46faadee4016fb4e018c20652 type: IDENTITY modified: 2019-08-23T18:52:57.398Z + approvalId: 2c9180877b2b6ea4017b2c545f971429 comment: I approve this request forwarded: false status: PENDING @@ -47304,6 +47306,9 @@ components: reviewer: John Doe description: This is the Engineering role that engineers are granted. type: ACCESS_PROFILE + approvalIds: + - 85f0cf482dd44327b593624c07906c21 + - fa57e1bfa36f41ee85e33ee59fcbeac5 errorMessages: - - localeOrigin: DEFAULT text: The request was syntactically correct but its content is semantically @@ -47499,6 +47504,15 @@ components: items: $ref: '#/components/schemas/ApprovalStatusDto' type: array + approvalIds: + description: List of approval IDs associated with the request. + example: + - 85f0cf482dd44327b593624c07906c21 + - fa57e1bfa36f41ee85e33ee59fcbeac5 + items: + type: string + nullable: true + type: array manualWorkItemDetails: description: Manual work items created for provisioning the item. items: @@ -58620,10 +58634,16 @@ components: id: 2c3780a46faadee4016fb4e018c20652 type: IDENTITY modified: 2019-08-23T18:52:57.398Z + approvalId: 2c9180877b2b6ea4017b2c545f971429 comment: I approve this request forwarded: false status: PENDING properties: + approvalId: + description: Unique identifier for the approval. + example: 2c9180877b2b6ea4017b2c545f971429 + nullable: true + type: string forwarded: default: false description: True if the request for this item was forwarded from one owner diff --git a/api_v3/docs/ApprovalStatusDto.md b/api_v3/docs/ApprovalStatusDto.md index 807e82a3a..654da764f 100644 --- a/api_v3/docs/ApprovalStatusDto.md +++ b/api_v3/docs/ApprovalStatusDto.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**ApprovalId** | Pointer to **NullableString** | Unique identifier for the approval. | [optional] **Forwarded** | Pointer to **bool** | True if the request for this item was forwarded from one owner to another. | [optional] [default to false] **OriginalOwner** | Pointer to [**ApprovalStatusDtoOriginalOwner**](ApprovalStatusDtoOriginalOwner.md) | | [optional] **CurrentOwner** | Pointer to [**ApprovalStatusDtoCurrentOwner**](ApprovalStatusDtoCurrentOwner.md) | | [optional] @@ -33,6 +34,41 @@ NewApprovalStatusDtoWithDefaults instantiates a new ApprovalStatusDto object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetApprovalId + +`func (o *ApprovalStatusDto) GetApprovalId() string` + +GetApprovalId returns the ApprovalId field if non-nil, zero value otherwise. + +### GetApprovalIdOk + +`func (o *ApprovalStatusDto) GetApprovalIdOk() (*string, bool)` + +GetApprovalIdOk returns a tuple with the ApprovalId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApprovalId + +`func (o *ApprovalStatusDto) SetApprovalId(v string)` + +SetApprovalId sets ApprovalId field to given value. + +### HasApprovalId + +`func (o *ApprovalStatusDto) HasApprovalId() bool` + +HasApprovalId returns a boolean if a field has been set. + +### SetApprovalIdNil + +`func (o *ApprovalStatusDto) SetApprovalIdNil(b bool)` + + SetApprovalIdNil sets the value for ApprovalId to be an explicit nil + +### UnsetApprovalId +`func (o *ApprovalStatusDto) UnsetApprovalId()` + +UnsetApprovalId ensures that no value is present for ApprovalId, not even an explicit nil ### GetForwarded `func (o *ApprovalStatusDto) GetForwarded() bool` diff --git a/api_v3/docs/RequestedItemStatus.md b/api_v3/docs/RequestedItemStatus.md index a8c5651ef..bc742b647 100644 --- a/api_v3/docs/RequestedItemStatus.md +++ b/api_v3/docs/RequestedItemStatus.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **ErrorMessages** | Pointer to [**[][]ErrorMessageDto**]([]ErrorMessageDto.md) | List of list of localized error messages, if any, encountered during the approval/provisioning process. | [optional] **State** | Pointer to [**RequestedItemStatusRequestState**](RequestedItemStatusRequestState.md) | | [optional] **ApprovalDetails** | Pointer to [**[]ApprovalStatusDto**](ApprovalStatusDto.md) | Approval details for each item. | [optional] +**ApprovalIds** | Pointer to **[]string** | List of approval IDs associated with the request. | [optional] **ManualWorkItemDetails** | Pointer to [**[]ManualWorkItemDetails**](ManualWorkItemDetails.md) | Manual work items created for provisioning the item. | [optional] **AccountActivityItemId** | Pointer to **string** | Id of associated account activity item. | [optional] **RequestType** | Pointer to [**NullableAccessRequestType**](AccessRequestType.md) | | [optional] @@ -227,6 +228,41 @@ SetApprovalDetails sets ApprovalDetails field to given value. HasApprovalDetails returns a boolean if a field has been set. +### GetApprovalIds + +`func (o *RequestedItemStatus) GetApprovalIds() []string` + +GetApprovalIds returns the ApprovalIds field if non-nil, zero value otherwise. + +### GetApprovalIdsOk + +`func (o *RequestedItemStatus) GetApprovalIdsOk() (*[]string, bool)` + +GetApprovalIdsOk returns a tuple with the ApprovalIds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetApprovalIds + +`func (o *RequestedItemStatus) SetApprovalIds(v []string)` + +SetApprovalIds sets ApprovalIds field to given value. + +### HasApprovalIds + +`func (o *RequestedItemStatus) HasApprovalIds() bool` + +HasApprovalIds returns a boolean if a field has been set. + +### SetApprovalIdsNil + +`func (o *RequestedItemStatus) SetApprovalIdsNil(b bool)` + + SetApprovalIdsNil sets the value for ApprovalIds to be an explicit nil + +### UnsetApprovalIds +`func (o *RequestedItemStatus) UnsetApprovalIds()` + +UnsetApprovalIds ensures that no value is present for ApprovalIds, not even an explicit nil ### GetManualWorkItemDetails `func (o *RequestedItemStatus) GetManualWorkItemDetails() []ManualWorkItemDetails` diff --git a/api_v3/model_approval_status_dto.go b/api_v3/model_approval_status_dto.go index f351638af..5518a21ef 100644 --- a/api_v3/model_approval_status_dto.go +++ b/api_v3/model_approval_status_dto.go @@ -20,6 +20,8 @@ var _ MappedNullable = &ApprovalStatusDto{} // ApprovalStatusDto struct for ApprovalStatusDto type ApprovalStatusDto struct { + // Unique identifier for the approval. + ApprovalId NullableString `json:"approvalId,omitempty"` // True if the request for this item was forwarded from one owner to another. Forwarded *bool `json:"forwarded,omitempty"` OriginalOwner *ApprovalStatusDtoOriginalOwner `json:"originalOwner,omitempty"` @@ -60,6 +62,48 @@ func NewApprovalStatusDtoWithDefaults() *ApprovalStatusDto { return &this } +// GetApprovalId returns the ApprovalId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ApprovalStatusDto) GetApprovalId() string { + if o == nil || IsNil(o.ApprovalId.Get()) { + var ret string + return ret + } + return *o.ApprovalId.Get() +} + +// GetApprovalIdOk returns a tuple with the ApprovalId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ApprovalStatusDto) GetApprovalIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ApprovalId.Get(), o.ApprovalId.IsSet() +} + +// HasApprovalId returns a boolean if a field has been set. +func (o *ApprovalStatusDto) HasApprovalId() bool { + if o != nil && o.ApprovalId.IsSet() { + return true + } + + return false +} + +// SetApprovalId gets a reference to the given NullableString and assigns it to the ApprovalId field. +func (o *ApprovalStatusDto) SetApprovalId(v string) { + o.ApprovalId.Set(&v) +} +// SetApprovalIdNil sets the value for ApprovalId to be an explicit nil +func (o *ApprovalStatusDto) SetApprovalIdNil() { + o.ApprovalId.Set(nil) +} + +// UnsetApprovalId ensures that no value is present for ApprovalId, not even an explicit nil +func (o *ApprovalStatusDto) UnsetApprovalId() { + o.ApprovalId.Unset() +} + // GetForwarded returns the Forwarded field value if set, zero value otherwise. func (o *ApprovalStatusDto) GetForwarded() bool { if o == nil || IsNil(o.Forwarded) { @@ -389,6 +433,9 @@ func (o ApprovalStatusDto) MarshalJSON() ([]byte, error) { func (o ApprovalStatusDto) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.ApprovalId.IsSet() { + toSerialize["approvalId"] = o.ApprovalId.Get() + } if !IsNil(o.Forwarded) { toSerialize["forwarded"] = o.Forwarded } @@ -438,6 +485,7 @@ func (o *ApprovalStatusDto) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "approvalId") delete(additionalProperties, "forwarded") delete(additionalProperties, "originalOwner") delete(additionalProperties, "currentOwner") diff --git a/api_v3/model_requested_item_status.go b/api_v3/model_requested_item_status.go index 955556ddc..302d3ee23 100644 --- a/api_v3/model_requested_item_status.go +++ b/api_v3/model_requested_item_status.go @@ -30,6 +30,8 @@ type RequestedItemStatus struct { State *RequestedItemStatusRequestState `json:"state,omitempty"` // Approval details for each item. ApprovalDetails []ApprovalStatusDto `json:"approvalDetails,omitempty"` + // List of approval IDs associated with the request. + ApprovalIds []string `json:"approvalIds,omitempty"` // Manual work items created for provisioning the item. ManualWorkItemDetails []ManualWorkItemDetails `json:"manualWorkItemDetails,omitempty"` // Id of associated account activity item. @@ -296,6 +298,39 @@ func (o *RequestedItemStatus) SetApprovalDetails(v []ApprovalStatusDto) { o.ApprovalDetails = v } +// GetApprovalIds returns the ApprovalIds field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RequestedItemStatus) GetApprovalIds() []string { + if o == nil { + var ret []string + return ret + } + return o.ApprovalIds +} + +// GetApprovalIdsOk returns a tuple with the ApprovalIds field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RequestedItemStatus) GetApprovalIdsOk() ([]string, bool) { + if o == nil || IsNil(o.ApprovalIds) { + return nil, false + } + return o.ApprovalIds, true +} + +// HasApprovalIds returns a boolean if a field has been set. +func (o *RequestedItemStatus) HasApprovalIds() bool { + if o != nil && !IsNil(o.ApprovalIds) { + return true + } + + return false +} + +// SetApprovalIds gets a reference to the given []string and assigns it to the ApprovalIds field. +func (o *RequestedItemStatus) SetApprovalIds(v []string) { + o.ApprovalIds = v +} + // GetManualWorkItemDetails returns the ManualWorkItemDetails field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RequestedItemStatus) GetManualWorkItemDetails() []ManualWorkItemDetails { if o == nil { @@ -911,6 +946,9 @@ func (o RequestedItemStatus) ToMap() (map[string]interface{}, error) { if !IsNil(o.ApprovalDetails) { toSerialize["approvalDetails"] = o.ApprovalDetails } + if o.ApprovalIds != nil { + toSerialize["approvalIds"] = o.ApprovalIds + } if o.ManualWorkItemDetails != nil { toSerialize["manualWorkItemDetails"] = o.ManualWorkItemDetails } @@ -990,6 +1028,7 @@ func (o *RequestedItemStatus) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "errorMessages") delete(additionalProperties, "state") delete(additionalProperties, "approvalDetails") + delete(additionalProperties, "approvalIds") delete(additionalProperties, "manualWorkItemDetails") delete(additionalProperties, "accountActivityItemId") delete(additionalProperties, "requestType")