Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OPAL-11014] Remove spurious TF plan changelogs #63

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ id: b5c8bf75-06e1-47c8-b9ae-ce49ba56069d
management:
docChecksum: e3cb6b93e32e12628dfa380bb884b5bb
docVersion: "1.0"
speakeasyVersion: 1.295.2
generationVersion: 2.335.5
releaseVersion: 0.20.3
configChecksum: d97df565a07f4d28a63e894c68a76bc0
speakeasyVersion: 1.299.3
generationVersion: 2.338.7
releaseVersion: 0.20.4
configChecksum: dc89fa21ba32dd1e7400e48db61f033a
repoURL: https://github.com/opalsecurity/terraform-provider-opal.git
repoSubDirectory: .
published: true
Expand All @@ -15,7 +15,7 @@ features:
additionalDependencies: 0.1.0
additionalProperties: 0.1.2
constsAndDefaults: 0.1.4
core: 3.21.0
core: 3.21.1
deprecations: 2.81.1
globalSecurity: 2.81.6
globalServerURLs: 2.82.1
Expand Down
11 changes: 5 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
speakeasyVersion: 1.295.2
speakeasyVersion: 1.299.3
sources:
opal-terraform-provider:
sourceNamespace: opal-terraform-provider
sourceRevisionDigest: sha256:4607aac498872df8ebaeafe6a96cd40a30fbb6fa4ca216953db3f9eec7309867
sourceBlobDigest: sha256:1d6d2919b0f91c1722050a4f6ea1cc45f356a51fec3ac8b6167fa963d59e6080
sourceRevisionDigest: sha256:797f36bf99bd287ba390531ea15490eabd31f8f0b5a894e51e401e60b13bdff3
sourceBlobDigest: sha256:b5a9fb0beae696e9ed9f3db5c45055b056b59d080c2a6697588de18398f06904
tags:
- latest
- main
targets:
terraform:
source: opal-terraform-provider
sourceNamespace: opal-terraform-provider
sourceRevisionDigest: sha256:4607aac498872df8ebaeafe6a96cd40a30fbb6fa4ca216953db3f9eec7309867
sourceBlobDigest: sha256:1d6d2919b0f91c1722050a4f6ea1cc45f356a51fec3ac8b6167fa963d59e6080
sourceRevisionDigest: sha256:797f36bf99bd287ba390531ea15490eabd31f8f0b5a894e51e401e60b13bdff3
sourceBlobDigest: sha256:b5a9fb0beae696e9ed9f3db5c45055b056b59d080c2a6697588de18398f06904
outLocation: .
workflow:
workflowVersion: 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ terraform {
required_providers {
opal = {
source = "opalsecurity/opal"
version = "0.20.3"
version = "0.20.4"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ terraform {
required_providers {
opal = {
source = "opalsecurity/opal"
version = "0.20.3"
version = "0.20.4"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/provider/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
opal = {
source = "opalsecurity/opal"
version = "0.20.3"
version = "0.20.4"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
baseServerURL: ""
flattenGlobalSecurity: true
terraform:
version: 0.20.3
version: 0.20.4
additionalDataSources: []
additionalDependencies: {}
additionalResources: []
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module github.com/opalsecurity/terraform-provider-opal

go 1.21

toolchain go1.21.10
toolchain go1.21.1

require (
github.com/cenkalti/backoff/v4 v4.2.0
Expand Down
1 change: 1 addition & 0 deletions internal/provider/apps_data_source_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (

func (r *AppsDataSourceModel) RefreshFromSharedAppsList(resp *shared.AppsList) {
if resp != nil {
r.Apps = []tfTypes.App{}
if len(r.Apps) > len(resp.Apps) {
r.Apps = r.Apps[:len(resp.Apps)]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (

func (r *ConfigurationTemplateListDataSourceModel) RefreshFromSharedPaginatedConfigurationTemplateList(resp *shared.PaginatedConfigurationTemplateList) {
if resp != nil {
r.Results = []tfTypes.ConfigurationTemplate{}
if len(r.Results) > len(resp.Results) {
r.Results = r.Results[:len(resp.Results)]
}
Expand Down
2 changes: 2 additions & 0 deletions internal/provider/events_data_source_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ func (r *EventsDataSourceModel) RefreshFromSharedPaginatedEventList(resp *shared
if resp != nil {
r.Next = types.StringPointerValue(resp.Next)
r.Previous = types.StringPointerValue(resp.Previous)
r.Results = []tfTypes.Event{}
if len(r.Results) > len(resp.Results) {
r.Results = r.Results[:len(resp.Results)]
}
Expand All @@ -29,6 +30,7 @@ func (r *EventsDataSourceModel) RefreshFromSharedPaginatedEventList(resp *shared
results1.CreatedAt = types.StringValue(resultsItem.CreatedAt.Format(time.RFC3339Nano))
results1.EventID = types.StringValue(resultsItem.EventID)
results1.EventType = types.StringValue(resultsItem.EventType)
results1.SubEvents = []tfTypes.SubEvent{}
for subEventsCount, subEventsItem := range resultsItem.SubEvents {
var subEvents1 tfTypes.SubEvent
if subEventsItem.AdditionalProperties == nil {
Expand Down
3 changes: 3 additions & 0 deletions internal/provider/group_data_source_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ func (r *GroupDataSourceModel) RefreshFromSharedGroup(resp *shared.Group) {
}
}
r.RemoteName = types.StringPointerValue(resp.RemoteName)
r.RequestConfigurations = []tfTypes.RequestConfiguration{}
if len(r.RequestConfigurations) > len(resp.RequestConfigurations) {
r.RequestConfigurations = r.RequestConfigurations[:len(resp.RequestConfigurations)]
}
Expand All @@ -112,6 +113,7 @@ func (r *GroupDataSourceModel) RefreshFromSharedGroup(resp *shared.Group) {
requestConfigurations1.RequestTemplateID = types.StringPointerValue(requestConfigurationsItem.RequestTemplateID)
requestConfigurations1.RequireMfaToRequest = types.BoolValue(requestConfigurationsItem.RequireMfaToRequest)
requestConfigurations1.RequireSupportTicket = types.BoolValue(requestConfigurationsItem.RequireSupportTicket)
requestConfigurations1.ReviewerStages = []tfTypes.ReviewerStage{}
for reviewerStagesCount, reviewerStagesItem := range requestConfigurationsItem.ReviewerStages {
var reviewerStages1 tfTypes.ReviewerStage
if reviewerStagesItem.Operator != nil {
Expand Down Expand Up @@ -155,6 +157,7 @@ func (r *GroupDataSourceModel) RefreshFromSharedGroup(resp *shared.Group) {

func (r *GroupDataSourceModel) RefreshFromOperationsGetGroupMessageChannelsResponseBody(resp *operations.GetGroupMessageChannelsResponseBody) {
if resp != nil {
r.MessageChannels.Channels = []tfTypes.MessageChannel{}
if len(r.MessageChannels.Channels) > len(resp.Channels) {
r.MessageChannels.Channels = r.MessageChannels.Channels[:len(resp.Channels)]
}
Expand Down
3 changes: 3 additions & 0 deletions internal/provider/group_list_data_source_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (

func (r *GroupListDataSourceModel) RefreshFromSharedPaginatedGroupsList(resp *shared.PaginatedGroupsList) {
if resp != nil {
r.Results = []tfTypes.Group{}
if len(r.Results) > len(resp.Results) {
r.Results = r.Results[:len(resp.Results)]
}
Expand Down Expand Up @@ -90,6 +91,7 @@ func (r *GroupListDataSourceModel) RefreshFromSharedPaginatedGroupsList(resp *sh
}
}
results1.RemoteName = types.StringPointerValue(resultsItem.RemoteName)
results1.RequestConfigurations = []tfTypes.RequestConfiguration{}
for requestConfigurationsCount, requestConfigurationsItem := range resultsItem.RequestConfigurations {
var requestConfigurations1 tfTypes.RequestConfiguration
requestConfigurations1.AllowRequests = types.BoolValue(requestConfigurationsItem.AllowRequests)
Expand All @@ -113,6 +115,7 @@ func (r *GroupListDataSourceModel) RefreshFromSharedPaginatedGroupsList(resp *sh
requestConfigurations1.RequestTemplateID = types.StringPointerValue(requestConfigurationsItem.RequestTemplateID)
requestConfigurations1.RequireMfaToRequest = types.BoolValue(requestConfigurationsItem.RequireMfaToRequest)
requestConfigurations1.RequireSupportTicket = types.BoolValue(requestConfigurationsItem.RequireSupportTicket)
requestConfigurations1.ReviewerStages = []tfTypes.ReviewerStage{}
for reviewerStagesCount, reviewerStagesItem := range requestConfigurationsItem.ReviewerStages {
var reviewerStages1 tfTypes.ReviewerStage
if reviewerStagesItem.Operator != nil {
Expand Down
5 changes: 5 additions & 0 deletions internal/provider/group_resource_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ func (r *GroupResourceModel) RefreshFromSharedGroup(resp *shared.Group) {
}
}
r.RemoteName = types.StringPointerValue(resp.RemoteName)
r.RequestConfigurations = []tfTypes.RequestConfiguration{}
if len(r.RequestConfigurations) > len(resp.RequestConfigurations) {
r.RequestConfigurations = r.RequestConfigurations[:len(resp.RequestConfigurations)]
}
Expand All @@ -209,6 +210,7 @@ func (r *GroupResourceModel) RefreshFromSharedGroup(resp *shared.Group) {
requestConfigurations1.RequestTemplateID = types.StringPointerValue(requestConfigurationsItem.RequestTemplateID)
requestConfigurations1.RequireMfaToRequest = types.BoolValue(requestConfigurationsItem.RequireMfaToRequest)
requestConfigurations1.RequireSupportTicket = types.BoolValue(requestConfigurationsItem.RequireSupportTicket)
requestConfigurations1.ReviewerStages = []tfTypes.ReviewerStage{}
for reviewerStagesCount, reviewerStagesItem := range requestConfigurationsItem.ReviewerStages {
var reviewerStages1 tfTypes.ReviewerStage
if reviewerStagesItem.Operator != nil {
Expand Down Expand Up @@ -385,6 +387,7 @@ func (r *GroupResourceModel) RefreshFromSharedUpdateGroupInfo(resp shared.Update
}
r.ID = types.StringPointerValue(resp.ID)
r.Name = types.StringPointerValue(resp.Name)
r.RequestConfigurations = []tfTypes.RequestConfiguration{}
if len(r.RequestConfigurations) > len(resp.RequestConfigurations) {
r.RequestConfigurations = r.RequestConfigurations[:len(resp.RequestConfigurations)]
}
Expand All @@ -411,6 +414,7 @@ func (r *GroupResourceModel) RefreshFromSharedUpdateGroupInfo(resp shared.Update
requestConfigurations1.RequestTemplateID = types.StringPointerValue(requestConfigurationsItem.RequestTemplateID)
requestConfigurations1.RequireMfaToRequest = types.BoolValue(requestConfigurationsItem.RequireMfaToRequest)
requestConfigurations1.RequireSupportTicket = types.BoolValue(requestConfigurationsItem.RequireSupportTicket)
requestConfigurations1.ReviewerStages = []tfTypes.ReviewerStage{}
for reviewerStagesCount, reviewerStagesItem := range requestConfigurationsItem.ReviewerStages {
var reviewerStages1 tfTypes.ReviewerStage
if reviewerStagesItem.Operator != nil {
Expand Down Expand Up @@ -477,6 +481,7 @@ func (r *GroupResourceModel) ToSharedVisibilityInfo() *shared.VisibilityInfo {

func (r *GroupResourceModel) RefreshFromOperationsGetGroupMessageChannelsResponseBody(resp *operations.GetGroupMessageChannelsResponseBody) {
if resp != nil {
r.MessageChannels.Channels = []tfTypes.MessageChannel{}
if len(r.MessageChannels.Channels) > len(resp.Channels) {
r.MessageChannels.Channels = r.MessageChannels.Channels[:len(resp.Channels)]
}
Expand Down
1 change: 1 addition & 0 deletions internal/provider/groupresourcelist_data_source_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (

func (r *GroupResourceListDataSourceModel) RefreshFromSharedGroupResourceList(resp *shared.GroupResourceList) {
if resp != nil {
r.GroupResources = []tfTypes.GroupResource1{}
if len(r.GroupResources) > len(resp.GroupResources) {
r.GroupResources = r.GroupResources[:len(resp.GroupResources)]
}
Expand Down
1 change: 1 addition & 0 deletions internal/provider/groupresourcelist_resource_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ func (r *GroupResourceListResourceModel) ToSharedUpdateGroupResourcesInfo() *sha

func (r *GroupResourceListResourceModel) RefreshFromSharedGroupResourceList(resp *shared.GroupResourceList) {
if resp != nil {
r.GroupResources = []tfTypes.GroupResource1{}
if len(r.GroupResources) > len(resp.GroupResources) {
r.GroupResources = r.GroupResources[:len(resp.GroupResources)]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
)

func (r *GroupReviewersStagesListDataSourceModel) RefreshFromSharedReviewerStage(resp []shared.ReviewerStage) {
r.Data = []tfTypes.ReviewerStage{}
if len(r.Data) > len(resp) {
r.Data = r.Data[:len(resp)]
}
Expand Down
1 change: 1 addition & 0 deletions internal/provider/grouptags_data_source_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (

func (r *GroupTagsDataSourceModel) RefreshFromSharedTagsList(resp *shared.TagsList) {
if resp != nil {
r.Tags = []tfTypes.Tag{}
if len(r.Tags) > len(resp.Tags) {
r.Tags = r.Tags[:len(resp.Tags)]
}
Expand Down
1 change: 1 addition & 0 deletions internal/provider/groupusers_data_source_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (

func (r *GroupUsersDataSourceModel) RefreshFromSharedGroupUserList(resp *shared.GroupUserList) {
if resp != nil {
r.Results = []tfTypes.GroupUser{}
if len(r.Results) > len(resp.Results) {
r.Results = r.Results[:len(resp.Results)]
}
Expand Down
1 change: 1 addition & 0 deletions internal/provider/messagechannellist_data_source_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (

func (r *MessageChannelListDataSourceModel) RefreshFromSharedMessageChannelList(resp *shared.MessageChannelList) {
if resp != nil {
r.Channels = []tfTypes.MessageChannel{}
if len(r.Channels) > len(resp.Channels) {
r.Channels = r.Channels[:len(resp.Channels)]
}
Expand Down
1 change: 1 addition & 0 deletions internal/provider/oncallschedule_list_data_source_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (

func (r *OnCallScheduleListDataSourceModel) RefreshFromSharedOnCallScheduleList(resp *shared.OnCallScheduleList) {
if resp != nil {
r.OnCallSchedules = []tfTypes.GetGroupOnCallSchedulesResponseBody{}
if len(r.OnCallSchedules) > len(resp.OnCallSchedules) {
r.OnCallSchedules = r.OnCallSchedules[:len(resp.OnCallSchedules)]
}
Expand Down
1 change: 1 addition & 0 deletions internal/provider/owners_data_source_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ func (r *OwnersDataSourceModel) RefreshFromSharedPaginatedOwnersList(resp *share
if resp != nil {
r.Next = types.StringPointerValue(resp.Next)
r.Previous = types.StringPointerValue(resp.Previous)
r.Results = []tfTypes.Owner{}
if len(r.Results) > len(resp.Results) {
r.Results = r.Results[:len(resp.Results)]
}
Expand Down
3 changes: 3 additions & 0 deletions internal/provider/requests_data_source_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ import (
func (r *RequestsDataSourceModel) RefreshFromSharedRequestList(resp *shared.RequestList) {
if resp != nil {
r.Cursor = types.StringPointerValue(resp.Cursor)
r.Requests = []tfTypes.Request{}
if len(r.Requests) > len(resp.Requests) {
r.Requests = r.Requests[:len(resp.Requests)]
}
for requestsCount, requestsItem := range resp.Requests {
var requests1 tfTypes.Request
requests1.CreatedAt = types.StringValue(requestsItem.CreatedAt.Format(time.RFC3339Nano))
requests1.CustomFieldsResponses = []tfTypes.RequestCustomFieldResponse{}
for customFieldsResponsesCount, customFieldsResponsesItem := range requestsItem.CustomFieldsResponses {
var customFieldsResponses1 tfTypes.RequestCustomFieldResponse
customFieldsResponses1.FieldName = types.StringValue(customFieldsResponsesItem.FieldName)
Expand All @@ -39,6 +41,7 @@ func (r *RequestsDataSourceModel) RefreshFromSharedRequestList(resp *shared.Requ
requests1.DurationMinutes = types.Int64PointerValue(requestsItem.DurationMinutes)
requests1.ID = types.StringValue(requestsItem.ID)
requests1.Reason = types.StringValue(requestsItem.Reason)
requests1.RequestedItemsList = []tfTypes.RequestedItem{}
for requestedItemsListCount, requestedItemsListItem := range requestsItem.RequestedItemsList {
var requestedItemsList1 tfTypes.RequestedItem
requestedItemsList1.AccessLevelName = types.StringPointerValue(requestedItemsListItem.AccessLevelName)
Expand Down
2 changes: 2 additions & 0 deletions internal/provider/resource_data_source_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ func (r *ResourceDataSourceModel) RefreshFromSharedResource(resp *shared.Resourc
r.RemoteInfo.TeleportRole.RoleName = types.StringValue(resp.RemoteInfo.TeleportRole.RoleName)
}
}
r.RequestConfigurations = []tfTypes.RequestConfiguration{}
if len(r.RequestConfigurations) > len(resp.RequestConfigurations) {
r.RequestConfigurations = r.RequestConfigurations[:len(resp.RequestConfigurations)]
}
Expand All @@ -212,6 +213,7 @@ func (r *ResourceDataSourceModel) RefreshFromSharedResource(resp *shared.Resourc
requestConfigurations1.RequestTemplateID = types.StringPointerValue(requestConfigurationsItem.RequestTemplateID)
requestConfigurations1.RequireMfaToRequest = types.BoolValue(requestConfigurationsItem.RequireMfaToRequest)
requestConfigurations1.RequireSupportTicket = types.BoolValue(requestConfigurationsItem.RequireSupportTicket)
requestConfigurations1.ReviewerStages = []tfTypes.ReviewerStage{}
for reviewerStagesCount, reviewerStagesItem := range requestConfigurationsItem.ReviewerStages {
var reviewerStages1 tfTypes.ReviewerStage
if reviewerStagesItem.Operator != nil {
Expand Down
4 changes: 4 additions & 0 deletions internal/provider/resource_resource_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,7 @@ func (r *ResourceResourceModel) RefreshFromSharedResource(resp *shared.Resource)
r.RemoteInfo.TeleportRole.RoleName = types.StringValue(resp.RemoteInfo.TeleportRole.RoleName)
}
}
r.RequestConfigurations = []tfTypes.RequestConfiguration{}
if len(r.RequestConfigurations) > len(resp.RequestConfigurations) {
r.RequestConfigurations = r.RequestConfigurations[:len(resp.RequestConfigurations)]
}
Expand All @@ -487,6 +488,7 @@ func (r *ResourceResourceModel) RefreshFromSharedResource(resp *shared.Resource)
requestConfigurations1.RequestTemplateID = types.StringPointerValue(requestConfigurationsItem.RequestTemplateID)
requestConfigurations1.RequireMfaToRequest = types.BoolValue(requestConfigurationsItem.RequireMfaToRequest)
requestConfigurations1.RequireSupportTicket = types.BoolValue(requestConfigurationsItem.RequireSupportTicket)
requestConfigurations1.ReviewerStages = []tfTypes.ReviewerStage{}
for reviewerStagesCount, reviewerStagesItem := range requestConfigurationsItem.ReviewerStages {
var reviewerStages1 tfTypes.ReviewerStage
if reviewerStagesItem.Operator != nil {
Expand Down Expand Up @@ -667,6 +669,7 @@ func (r *ResourceResourceModel) RefreshFromSharedUpdateResourceInfo(resp shared.
r.Description = types.StringPointerValue(resp.Description)
r.ID = types.StringPointerValue(resp.ID)
r.Name = types.StringPointerValue(resp.Name)
r.RequestConfigurations = []tfTypes.RequestConfiguration{}
if len(r.RequestConfigurations) > len(resp.RequestConfigurations) {
r.RequestConfigurations = r.RequestConfigurations[:len(resp.RequestConfigurations)]
}
Expand All @@ -693,6 +696,7 @@ func (r *ResourceResourceModel) RefreshFromSharedUpdateResourceInfo(resp shared.
requestConfigurations1.RequestTemplateID = types.StringPointerValue(requestConfigurationsItem.RequestTemplateID)
requestConfigurations1.RequireMfaToRequest = types.BoolValue(requestConfigurationsItem.RequireMfaToRequest)
requestConfigurations1.RequireSupportTicket = types.BoolValue(requestConfigurationsItem.RequireSupportTicket)
requestConfigurations1.ReviewerStages = []tfTypes.ReviewerStage{}
for reviewerStagesCount, reviewerStagesItem := range requestConfigurationsItem.ReviewerStages {
var reviewerStages1 tfTypes.ReviewerStage
if reviewerStagesItem.Operator != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (

func (r *ResourceMessageChannelListDataSourceModel) RefreshFromSharedMessageChannelList(resp *shared.MessageChannelList) {
if resp != nil {
r.Channels = []tfTypes.MessageChannel{}
if len(r.Channels) > len(resp.Channels) {
r.Channels = r.Channels[:len(resp.Channels)]
}
Expand Down
3 changes: 3 additions & 0 deletions internal/provider/resources_list_data_source_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ func (r *ResourcesListDataSourceModel) RefreshFromSharedPaginatedResourcesList(r
if resp != nil {
r.Next = types.StringPointerValue(resp.Next)
r.Previous = types.StringPointerValue(resp.Previous)
r.Results = []tfTypes.Resource{}
if len(r.Results) > len(resp.Results) {
r.Results = r.Results[:len(resp.Results)]
}
Expand Down Expand Up @@ -193,6 +194,7 @@ func (r *ResourcesListDataSourceModel) RefreshFromSharedPaginatedResourcesList(r
results1.RemoteInfo.TeleportRole.RoleName = types.StringValue(resultsItem.RemoteInfo.TeleportRole.RoleName)
}
}
results1.RequestConfigurations = []tfTypes.RequestConfiguration{}
for requestConfigurationsCount, requestConfigurationsItem := range resultsItem.RequestConfigurations {
var requestConfigurations1 tfTypes.RequestConfiguration
requestConfigurations1.AllowRequests = types.BoolValue(requestConfigurationsItem.AllowRequests)
Expand All @@ -216,6 +218,7 @@ func (r *ResourcesListDataSourceModel) RefreshFromSharedPaginatedResourcesList(r
requestConfigurations1.RequestTemplateID = types.StringPointerValue(requestConfigurationsItem.RequestTemplateID)
requestConfigurations1.RequireMfaToRequest = types.BoolValue(requestConfigurationsItem.RequireMfaToRequest)
requestConfigurations1.RequireSupportTicket = types.BoolValue(requestConfigurationsItem.RequireSupportTicket)
requestConfigurations1.ReviewerStages = []tfTypes.ReviewerStage{}
for reviewerStagesCount, reviewerStagesItem := range requestConfigurationsItem.ReviewerStages {
var reviewerStages1 tfTypes.ReviewerStage
if reviewerStagesItem.Operator != nil {
Expand Down
1 change: 1 addition & 0 deletions internal/provider/resourcesusers_list_data_source_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (

func (r *ResourcesUsersListDataSourceModel) RefreshFromSharedResourceAccessUserList(resp *shared.ResourceAccessUserList) {
if resp != nil {
r.Results = []tfTypes.ResourceAccessUser{}
if len(r.Results) > len(resp.Results) {
r.Results = r.Results[:len(resp.Results)]
}
Expand Down
1 change: 1 addition & 0 deletions internal/provider/resourcetags_data_source_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (

func (r *ResourceTagsDataSourceModel) RefreshFromSharedTagsList(resp *shared.TagsList) {
if resp != nil {
r.Tags = []tfTypes.Tag{}
if len(r.Tags) > len(resp.Tags) {
r.Tags = r.Tags[:len(resp.Tags)]
}
Expand Down
Loading
Loading